Package org.loboevolution.gui
Class FormField
java.lang.Object
org.loboevolution.gui.FormField
The Class FormField.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new form field.Instantiates a new form field.Instantiates a new form field.Instantiates a new form field. -
Method Summary
Modifier and TypeMethodDescriptionGets the caption.Gets the field editor.getLabel()Gets the loboLabel.Gets the tool tip.getValue()Gets the value.booleanChecks if is editable.voidsetCaption(String caption) Sets the caption.voidsetEditable(boolean editable) Sets the editable.voidsetToolTip(String tooltip) Sets the tool tip.voidSets the value.
-
Field Details
-
type
The type.
-
-
Constructor Details
-
FormField
Instantiates a new form field.- Parameters:
type- the type
-
FormField
Instantiates a new form field.- Parameters:
type- the typeeditable- the editable
-
FormField
Instantiates a new form field.- Parameters:
type- the typecaption- the caption
-
FormField
Instantiates a new form field.- Parameters:
type- the typecaption- the captioneditable- the editable
-
-
Method Details
-
getCaption
Gets the caption.- Returns:
- the caption
-
getFieldEditor
Gets the field editor.- Returns:
- the field editor
-
getLabel
Gets the loboLabel.- Returns:
- the loboLabel
-
getToolTip
Gets the tool tip.- Returns:
- the tool tip
-
getValue
Gets the value.- Returns:
- the value
-
isEditable
public boolean isEditable()Checks if is editable.- Returns:
- true, if is editable
-
setCaption
Sets the caption.- Parameters:
caption- the new caption
-
setEditable
public void setEditable(boolean editable) Sets the editable.- Parameters:
editable- the new editable
-
setToolTip
Sets the tool tip.- Parameters:
tooltip- the new tool tip
-
setValue
Sets the value.- Parameters:
value- the new value
-