|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.swing.form.JvAbstractField
org.jurvis.swing.form.JvEnumeratorField
public class JvEnumeratorField
A JvField that displays the enumerated values of a JvEnumerator
class. The values are displayed in a non-editable JComboBox.
JvField| Field Summary | |
|---|---|
protected Class |
enumeratorClass
The JvEnumerator class. |
| Fields inherited from class org.jurvis.swing.form.JvAbstractField |
|---|
component, label, log |
| Constructor Summary | |
|---|---|
JvEnumeratorField(Class enumeratorClass,
JLabel label,
JComboBox comboBox)
Construct a new JvEnumeratorField for the specified JvEnumerator class. |
|
JvEnumeratorField(JvEnumerator enumerator,
JLabel label,
JComboBox comboBox)
Construct a new JvEnumeratorField for the specified JvEnumerator. |
|
| Method Summary | |
|---|---|
Object |
getValue()
Gets the field value. |
void |
setValue(Object value)
Set (or change) the object that is to be edited. |
| Methods inherited from class org.jurvis.swing.form.JvAbstractField |
|---|
getAsText, getComponent, getLabel, getMessage, getName, getWrapper, isEditable, isEnabled, setEditable, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Class enumeratorClass
JvEnumerator class.
| Constructor Detail |
|---|
public JvEnumeratorField(JvEnumerator enumerator,
JLabel label,
JComboBox comboBox)
JvEnumeratorField for the specified JvEnumerator. The JComboBox will be populated with the
enumerators of the JvEnumerator unless the
JComboBox is already populated.
enumerator - an instance of an JvEnumeratorlabel - the JLabel used to identify this fieldcomboBox - the actual GUI field editor
public JvEnumeratorField(Class enumeratorClass,
JLabel label,
JComboBox comboBox)
JvEnumeratorField for the specified JvEnumerator class. The JComboBox will be populated with
the enumerators of the JvEnumerator unless the
JComboBox is already populated.
enumeratorClass - the Enumerator classlabel - the JLabel used to identify this fieldcomboBox - the actual GUI field editor| Method Detail |
|---|
public Object getValue()
public void setValue(Object value)
value - The new target object to be edited. Note that this
object is not modified during editing, rather a new object is
created to hold the modified value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||