|
||||||||||
| 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.JPanel
org.crosswire.common.config.swing.ColorField
public class ColorField
A color selection.
for license details.
The copyright to this program is held by it's authors.,
Serialized Form| Nested Class Summary | |
|---|---|
(package private) class |
ColorField.CustomIcon
The CustomIcon that shows the selected color |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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 | |
|---|---|
private ActionFactory |
actions
The action factory for the buttons |
protected Color |
color
The current Color |
private static String |
EDIT
|
private static long |
serialVersionUID
Serialization ID |
private static int |
SIZE
The icon square size |
| 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 | |
|---|---|
ColorField()
Create a new FileField |
|
| Method Summary | |
|---|---|
void |
doEditColor()
Do the edit action |
JComponent |
getComponent()
Get the actual component that we can add to a Panel. |
String |
getValue()
Return a string version of the current value |
private void |
readObject(ObjectInputStream is)
Serialization support. |
void |
setChoice(Choice param)
Some fields will need some extra info to display properly like the options in an options field. |
void |
setValue(String value)
Set the current value. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String EDIT
private transient ActionFactory actions
protected Color color
private static final int SIZE
private static final long serialVersionUID
| Constructor Detail |
|---|
public ColorField()
| Method Detail |
|---|
public void doEditColor()
public void setChoice(Choice param)
Field
setChoice in interface Fieldparam - The options provided by the Choicepublic String getValue()
Field
getValue in interface Fieldpublic void setValue(String value)
Field
setValue in interface Fieldvalue - The new textpublic JComponent getComponent()
Fieldthis in an implementation).
getComponent in interface Field
private void readObject(ObjectInputStream is)
throws IOException,
ClassNotFoundException
is -
IOException
ClassNotFoundException
|
Copyright ยจ 2003-2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||