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

@Component @Configurable public class CardLayout extends Component
Simple component for defining HTML templates for CardView. Contains only the HTML template that will be processed by CardLayoutProcessor. Example:

 <CardLayout name="normal">
     <![CDATA[
     <div>{{mainTitle}} {{address}}</div>
     ]]>
 </CardLayout>
 
Since:
21.0
See Also:
GCApi:
component
  • Constructor Details

    • CardLayout

      public CardLayout()
      Default constructor
  • Method Details

    • setNAME

      public void setNAME(String name)
      Sets the layout name
      Overrides:
      setNAME in class Component
      Parameters:
      name - The name of the component, used for the submit actions
    • addChildText

      public void addChildText(String text)
      Collects CDATA content
      Overrides:
      addChildText in class UINode
      Parameters:
      text - Not used
    • getLayoutName

      public String getLayoutName()
      Gets the layout name
      Overrides:
      getLayoutName in class Component
      Returns:
      The string that corresponds to the layoutName of the column
    • getLayoutType

      public LayoutType getLayoutType()
      Gets the layout type
    • getHtmlTemplate

      public String getHtmlTemplate()
      Gets the HTML template
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Standard Component method for generating HTML (not used)
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html of the Component
    • isLayoutType

      public boolean isLayoutType(LayoutType type)
      Checks if this layout matches the specified type
    • isLayoutName

      public boolean isLayoutName(String name)
      Checks if this layout matches the specified name