java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocallapp.utilities.ux.ui.container.cardview.CardIcon
All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified, Tool, HTMLRenderable

@Component @Configurable public class CardIcon extends Component implements HTMLRenderable
CardView component for displaying Material Design icons. Can be positioned freely in the layout XML.
Since:
21.0
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • CardIcon

      public CardIcon()
  • Method Details

    • getDataContext

      public HashGetter getDataContext()
      Gets the current data context
      Returns:
      The current data container, or null if not set
    • getHtml

      public String getHtml()
      Implementation of HTMLRenderable interface
      Specified by:
      getHtml in interface HTMLRenderable
      Returns:
      The HTML string representation of the component
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Implementation of Component's abstract method. Delegates to HTMLRenderable.getHtml() and wraps the result in a StringElement.
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet (not used, data context is injected separately)
      Returns:
      Element containing the HTML string
    • setNAME

      public void setNAME(String iconName)
      Sets the icon name (Material Design icon with md: prefix)
      Overrides:
      setNAME in class Component
      Parameters:
      iconName - The name of the component, used for the submit actions
    • setSIZE

      public void setSIZE(String size)
      Sets the icon size in pixels