|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.swing.form.JvAbstractField
public abstract class JvAbstractField
This abstract class provides default implementation for many of the methods
in the JvField interface.
| Field Summary | |
|---|---|
protected JComponent |
component
The JComponent displaying the value of this field. |
protected JLabel |
label
The JLabel identifying this field on the panel. |
protected static org.apache.commons.logging.Log |
log
Log specific to this class. |
| Constructor Summary | |
|---|---|
protected |
JvAbstractField(JLabel label,
JComponent component)
Construct a new JvAbstractField. |
| 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 |
getMessage(String key)
Gets the error message related to this field. |
String |
getName()
Return the name of this field. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jurvis.swing.form.JvField |
|---|
getValue, setValue |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected JComponent component
JComponent displaying the value of this field.
protected JLabel label
JLabel identifying this field on the panel.
| Constructor Detail |
|---|
protected JvAbstractField(JLabel label,
JComponent component)
JvAbstractField.
label - the JLabel used to identify this fieldcomponent - the component displaying the value of this field| Method Detail |
|---|
public String getName()
getName in interface JvFieldpublic boolean isEnabled()
isEnabled in interface JvFieldJvField.setEnabled(boolean)public void setEnabled(boolean enabled)
setEnabled in interface JvFieldenabled - the boolean to be setpublic boolean isEditable()
isEditable in interface JvFieldpublic void setEditable(boolean editable)
setEditable in interface JvFieldeditable - the boolean to be setpublic JLabel getLabel()
getLabel in interface JvFieldpublic String getAsText()
getAsText in interface JvFieldpublic JComponent getComponent()
getComponent in interface JvFieldpublic JComponent getWrapper()
JScrollPane. If no wrapping component is
needed, this method returns the component.
getWrapper in interface JvFieldpublic String getMessage(String key)
key - the key of the desired error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||