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 HighlightComponent extends NullComponent
Support component to highlight a form section with a colored bar. Is used in the outcome container to highlight the outcome sections that presents some troubles during the validation
Since:
9.2
See Also:
GCApi:
component
  • Field Details

    • color

      protected String color
    • borderwidth

      protected String borderwidth
    • side

      protected String side
    • highlight

      protected boolean highlight
    • highlightlabel

      protected String highlightlabel
  • Constructor Details

    • HighlightComponent

      public HighlightComponent()
  • Method Details

    • setCOLOR

      public void setCOLOR(String color)
      Sets the highlight bar color
      Parameters:
      color - the CSS color of the highlight bar
    • setBORDERWIDTH

      public void setBORDERWIDTH(String borderwidth)
      Sets the highlight bar width in pixels
      Parameters:
      borderwidth - the highlight bar in pixels
    • setSIDE

      public void setSIDE(String side)
      Sets which side of the section should presents the highlight bar
      Parameters:
      side - the side of the section that should presents the highlight bar
      See Also:
    • setHIGHLIGHT

      public void setHIGHLIGHT(String h)
      Sets the highlight status of the container.
      Parameters:
      h - A string that represents a boolean value ("true" or "1", "false" or "0")
    • isHiglighted

      public boolean isHiglighted()
      Say if the component is highlighted or not
      Returns:
      true if the component is highlighted, false otherwise.
    • setHIGHLIGHTLABEL

      public void setHIGHLIGHTLABEL(String highlightlabel)
      Sets an alternative label to show when the component is highlighted
      Parameters:
      highlightlabel - the label to show when the component is highlighted
    • getRegistryName

      public String getRegistryName()
      Gets the registry name of this component
      Overrides:
      getRegistryName in class Component
      Returns:
      the registry name of this component
    • 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
      Overrides:
      getHtml in class NullComponent
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html of the Component