Class OutputColor

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

@Component public class OutputColor extends Control
This class implements an output object that is used to display a certain color. In particular, it consists of a rectangle, placed next to the label, which assumes the corresponding color indicated by the value.
See Also:
GCApi:
component
  • Field Details

    • _value

      protected String _value
    • _height

      protected String _height
    • _width

      protected String _width
  • Constructor Details

    • OutputColor

      public OutputColor()
      Creates an OutputColor
  • Method Details

    • setHEIGHT

      public void setHEIGHT(String s)
      Sets the height of the output
      Parameters:
      s - The height expressed in pixel. The default value is 16
    • setWIDTH

      public void setWIDTH(String s)
      Sets the width of the output
      Parameters:
      s - The width expressed in pixel. The default value is 16
    • setVALUE

      public void setVALUE(String s)
      Sets the value of the output.
      Parameters:
      s - A string that defines a color in rgb format (like #ffffff that is the default one)
    • prepareValue

      protected String prepareValue()
    • getHtmlValue

      protected org.apache.ecs.Element getHtmlValue(EntitySet es)
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Component
      Abstract method that must be extended and returns the html code of the Component
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html of the Component