Class FormField

java.lang.Object
org.loboevolution.gui.FormField

public class FormField extends Object
The Class FormField.
  • Field Details

    • type

      public final FieldType type
      The type.
  • Constructor Details

    • FormField

      public FormField(FieldType type)
      Instantiates a new form field.
      Parameters:
      type - the type
    • FormField

      public FormField(FieldType type, boolean editable)
      Instantiates a new form field.
      Parameters:
      type - the type
      editable - the editable
    • FormField

      public FormField(FieldType type, String caption)
      Instantiates a new form field.
      Parameters:
      type - the type
      caption - the caption
    • FormField

      public FormField(FieldType type, String caption, boolean editable)
      Instantiates a new form field.
      Parameters:
      type - the type
      caption - the caption
      editable - the editable
  • Method Details

    • getCaption

      public String getCaption()
      Gets the caption.
      Returns:
      the caption
    • getFieldEditor

      public JComponent getFieldEditor()
      Gets the field editor.
      Returns:
      the field editor
    • getLabel

      public LoboLabel getLabel()
      Gets the loboLabel.
      Returns:
      the loboLabel
    • getToolTip

      public String getToolTip()
      Gets the tool tip.
      Returns:
      the tool tip
    • getValue

      public String getValue()
      Gets the value.
      Returns:
      the value
    • isEditable

      public boolean isEditable()
      Checks if is editable.
      Returns:
      true, if is editable
    • setCaption

      public void setCaption(String caption)
      Sets the caption.
      Parameters:
      caption - the new caption
    • setEditable

      public void setEditable(boolean editable)
      Sets the editable.
      Parameters:
      editable - the new editable
    • setToolTip

      public void setToolTip(String tooltip)
      Sets the tool tip.
      Parameters:
      tooltip - the new tool tip
    • setValue

      public void setValue(String value)
      Sets the value.
      Parameters:
      value - the new value