Class TextButton

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class TextButton extends ExitButton
This component extends ExitButton and must be used to add an input element in read only mode to the left of the button (it is always visible). The input element can be filled either with a static value or with the value of a field present in the HashGetter passed to the form to which it belongs (see Control.getValues()).
Moreover it is possible add above this element a label that is subject to translation.
In case the ICON attribute is not set (see setICON()), this element provides the "ok" icon as default.
See Also:
GCApi:
component
  • Field Details

    • _value

      protected String _value
    • _size

      protected String _size
    • _field

      protected String _field
    • _textlabel

      protected String _textlabel
  • Constructor Details

    • TextButton

      public TextButton()
      Creates a new instance of TextButton
  • Method Details

    • setSIZE

      public void setSIZE(String s)
      Sets the width of the input field next to the element.
      Parameters:
      s - String containing the value to set as width.
    • setFIELD

      public void setFIELD(String s)
      Sets the name of field that must be used to get the value to set on input field
      Parameters:
      s - String representing the name of the field
    • setVALUE

      public void setVALUE(String s)
      Sets the static value that must be used to set on input field in the case of the FIELD attribute is not set (see setFIELD()).
      Parameters:
      s - String representing the value
    • setTEXTLABEL

      public void setTEXTLABEL(String s)
      Sets the label to show above the field.
      Parameters:
      s - String to show as label.
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Button
      Returns the html code of the Button
      Overrides:
      getHtml in class Button
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html code of the Button