Class ColumnSwitch

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 @Configurable public class ColumnSwitch extends Column
This component extends Column and can be used to insert different columns based on the received value. The column to show must be children of the ColumnSwitch in the xml. They are Column components or components that extend the Column component.
See Also:
GCApi:
component
  • Field Details

    • _switch

      protected HashMap _switch
    • _childCols

      protected Column[] _childCols
    • _innertf

      protected TextFormat _innertf
  • Constructor Details

    • ColumnSwitch

      public ColumnSwitch()
  • Method Details

    • setSWITCH

      public void setSWITCH(String s)
      Sets the allowed values used to select the column to show.
      Parameters:
      s - The string that rappresents the allowed values, separated by commas.
    • setINNERTITLEFORMAT

      public void setINNERTITLEFORMAT(String s)
      Sets the string to show on the hover of the field. It's possible to set it with a static label or by combining the innerTitleFormat labels of the child columns that have this attribute like ColumnStaticView or a ColumnLookup. To know how to create a format, see TextFormat.
      Parameters:
      s - String represent the format to be set.
    • _calcChildCols

      protected void _calcChildCols()
    • setupMetaData

      public void setupMetaData(DBView dbv)
      Description copied from class: Column
      Called to init all the field starting form the DBView
      Overrides:
      setupMetaData in class Column
      Parameters:
      dbv - The DBView with all the field used in the init
    • freeResources

      public void freeResources()
      Overrides:
      freeResources in class Column
    • getHtmlRow

      public org.apache.ecs.Element getHtmlRow(EntitySet es, int row, int pagerow, ArrayList al)
      Description copied from class: Column
      Returns the html element that defines the row
      Overrides:
      getHtmlRow in class Column
      Parameters:
      es - The EntitySet to which the element belongs
      row - The number of the row
      pagerow - The number ofd the page
      al - The list of values of the row
      Returns:
      The html element that defines the row
    • setupTitle

      protected void setupTitle(org.apache.ecs.html.TD td, ArrayList al)
      Overrides:
      setupTitle in class Column
    • getTitleString

      protected String getTitleString(ArrayList al)