Class ColumnSelector

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 ColumnSelector extends Column implements Badgeable
This component extends Column and can be used to select a single row or multiple row in a ServerTableView or TableView. Multiple row can be selected through checkboxes if the value of the field multiple is true, otherwise if is false only a row at a time can be selected through radio buttons. If the attribute name is not specified this component will use the default event of the TableView to perform a selection based on the value of multiple. It's mandatory to declare a selectName in the ServerTableView (or TableView) to be able to perform a selection.
See Also:
GCApi:
component
  • Field Details

    • multiple

      protected boolean multiple
    • event

      protected String event
    • headName

      protected String headName
  • Constructor Details

    • ColumnSelector

      public ColumnSelector()
  • Method Details

    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Column
    • connect

      protected void connect()
      Overrides:
      connect in class Component
    • setHEADNAME

      public void setHEADNAME(String headName)
      Sets the name of the event for the head cell (not the row's cells)
      Parameters:
      headName - A string containing the name of the event for the head cell
    • setBADGEVALUE

      public void setBADGEVALUE(String badge)
      Sets badge value of this element.
      Any values different than "" wil be rendered at a corner of the underlying icon, if any such icon exists.
      Overrides:
      setBADGEVALUE in class Control
      Parameters:
      badge - A string that represents the message to be displayed as a badge
    • setBADGEFORMAT

      public void setBADGEFORMAT(String badgeformat)
      Sets badge definiing format of this element.
      Overrides:
      setBADGEFORMAT in class Control
      Parameters:
      badgeformat - The value can be c[x] ir d[y] respectively for x characters or y digits
    • getBadgeValue

      public String getBadgeValue()
      Description copied from interface: Badgeable
      Returns the current badge value of this element.
      Specified by:
      getBadgeValue in interface Badgeable
      Overrides:
      getBadgeValue in class Control
      Returns:
      The string that represents the current value of the badge
    • getBadgeFormat

      public String getBadgeFormat()
      Description copied from interface: Badgeable
      Returns the current badge format of this element.
      Specified by:
      getBadgeFormat in interface Badgeable
      Overrides:
      getBadgeFormat in class Control
      Returns:
      The string that represents the current format of the badge
    • setMULTIPLE

      public void setMULTIPLE(String s)
      Sets the value of the field multiple. If the value is true multiple selection is enabled and through checkboxes multiple row can be selected, if its false multiple selection is disabled and only a row at a time can be selected through radio buttons.
      Parameters:
      s - The boolean value of multiple
    • getHtml

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

      public void buildSetupScript(StringBuilder sb)
      Description copied from class: Component
      Every component can add a script to the StringBuilder, script executed when the component is created.
      Overrides:
      buildSetupScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script
    • getHtmlRow

      public org.apache.ecs.Element getHtmlRow(EntitySet es, int row, int pagerow, ArrayList al)
      Creates the ColumnSelector element
      Overrides:
      getHtmlRow in class Column
      Parameters:
      es - The EntitySet
      row - The row
      pagerow - The page row
      al - The ArrayList
      Returns:
      The html of the field
    • getIcon

      protected IconHD getIcon(boolean selected)
      Get the icon to use
      Parameters:
      selected - Boolean value that indicates if the row is selected or not
      Returns:
      The icon to use
    • getDefaultLayoutLabel

      public String getDefaultLayoutLabel()
      Overrides:
      getDefaultLayoutLabel in class Column