|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JvField
Interface defining a field within a form. Input fields may be represented by
JTextFields, JEditorPanes, JComboBoxes,
JCheckBoxes, or any third-party GUI control. The purpose of this
interface is to abstract a common interface for all this controls.
JvFields are expected to be displayed on a input form (probably
JvForm). They are identified to the user via some text displayed
within a JLabel.
| Method Summary | |
|---|---|
String |
getAsText()
Gets the property value as text. |
JComponent |
getComponent()
Gets the component used to implement this field. |
JLabel |
getLabel()
Gets the label used for this field. |
String |
getName()
Return the name of this field. |
Object |
getValue()
Gets the field value. |
JComponent |
getWrapper()
Gets the component used to wrap the component implementing this field. |
boolean |
isEditable()
Returns the boolean indicating whether this field is editable or not. |
boolean |
isEnabled()
Determines whether this field is enabled. |
void |
setEditable(boolean editable)
Sets the specified boolean to indicate whether or not this field should be editable. |
void |
setEnabled(boolean enabled)
Sets whether or not this field is enabled. |
void |
setValue(Object value)
Set (or change) the object that is to be edited. |
| Method Detail |
|---|
String getName()
Object getValue()
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.String getAsText()
boolean isEnabled()
setEnabled(boolean)void setEnabled(boolean enabled)
enabled - the new enabled valueboolean isEditable()
void setEditable(boolean editable)
editable - the new editable valueJLabel getLabel()
JComponent getComponent()
JComponent getWrapper()
JScrollPane. If no wrapping component is
needed, this method returns the component.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||