|
RADi Runtime Library v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSpinner
de.muntjak.radiloader.RadiSpinner
public class RadiSpinner
RadiSpinner
is a JSpinner
with
some additional properties allowing you to manipulate the
appearance of the editor's text field.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JSpinner |
---|
JSpinner.AccessibleJSpinner, JSpinner.DateEditor, JSpinner.DefaultEditor, JSpinner.ListEditor, JSpinner.NumberEditor |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
RadiSpinner()
|
|
RadiSpinner(SpinnerModel model)
|
Method Summary | |
---|---|
Color |
getFieldBackground()
Returns the background color of the editor's text field. |
Color |
getFieldCaretColor()
Returns the caret color of the editor's text field. |
int |
getFieldColumns()
Returns the number of columns in the editor's text field. |
Font |
getFieldFont()
Returns the font of the editor's text field. |
Color |
getFieldForeground()
Returns the foreground color of the editor's text field. |
int |
getFieldHorizontalAlignment()
Returns the horizontal alignment of the editor's text field. |
Color |
getFieldSelectionBackground()
Returns the color used to render the editor's text field's selection. |
Color |
getFieldSelectionForeground()
Returns the color used to render the editor's text field's selected text. |
void |
setFieldBackground(Color bg)
Sets the background color of the editor's text field. |
void |
setFieldCaretColor(Color bg)
Sets the caret color of the editor's text field. |
void |
setFieldColumns(int columns)
Sets the number of columns in the editor's text field. |
void |
setFieldFont(Font font)
Sets the font of the editor's text field. |
void |
setFieldForeground(Color fg)
Sets the foreground color of the editor's text field. |
void |
setFieldHorizontalAlignment(int alignment)
Sets the horizontal alignment of the editor's text field. |
void |
setFieldSelectionBackground(Color bg)
Sets the color used to render the editor's text field's selection. |
void |
setFieldSelectionForeground(Color fg)
Sets the color used to render the editor's text field's selected text. |
Methods inherited from class javax.swing.JSpinner |
---|
addChangeListener, commitEdit, createEditor, fireStateChanged, getAccessibleContext, getChangeListeners, getEditor, getModel, getNextValue, getPreviousValue, getUI, getUIClassID, getValue, removeChangeListener, setEditor, setModel, setUI, setValue, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RadiSpinner()
public RadiSpinner(SpinnerModel model)
Method Detail |
---|
public Color getFieldBackground()
public Color getFieldCaretColor()
public int getFieldColumns()
public Font getFieldFont()
public Color getFieldForeground()
public int getFieldHorizontalAlignment()
JTextField.LEFT
JTextField.CENTER
JTextField.RIGHT
JTextField.LEADING
JTextField.TRAILING
public Color getFieldSelectionBackground()
public Color getFieldSelectionForeground()
public void setFieldBackground(Color bg)
bg
- the new background color of the editor's text fieldpublic void setFieldCaretColor(Color bg)
bg
- the new caret color of the editor's text fieldpublic void setFieldColumns(int columns)
columns
- the new number of columns in the editor's text fieldpublic void setFieldFont(Font font)
font
- the new font of the editor's text fieldpublic void setFieldForeground(Color fg)
fg
- the new foreground color of the editor's text fieldpublic void setFieldHorizontalAlignment(int alignment)
JTextField.LEFT
JTextField.CENTER
JTextField.RIGHT
JTextField.LEADING
JTextField.TRAILING
alignment
- the new horizontal alignment of the editor's text fieldpublic void setFieldSelectionBackground(Color bg)
bg
- the color to use to render the editor's text field's selectionpublic void setFieldSelectionForeground(Color fg)
fg
- the color to use to render the editor's text field's selected text
|
RADi Runtime Library v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |