Class ColumnSpan

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 ColumnSpan extends Column
This component extends Column and can be used to insert a column built from the combination of several columns. The columns to use to build the ColumnSpan must be inserted as its child nodes. The child columns must be a Column component or derived components. The child columns are numbered by 0 in the order of insertion in the xml so that they can be called in the costruction of the ColumnSpan.
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • ColumnSpan

      public ColumnSpan()
      Creates a new instance of ColumnSpan
  • Method Details

    • setFORMAT

      public void setFORMAT(String s)
      Sets the label of the ColumnSpan. It's possible to set it with a static label or by combining the labels of the child columns.
      Parameters:
      s - The string used to set the label of the ColumnSpan. To retrieve the child column labels, you must enter the number corresponding to the column in brace (for example, to retrieve the label of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static label with the labels of the child columns (for example "{0} - {1}"). To get more information see TextFormat.
    • setROWFORMAT

      public void setROWFORMAT(String s)
      Sets how to build the value of each row. It's possible to set it with a static label or by combining the values of the child columns.
      Parameters:
      s - The string used to set the values of the ColumnSpan. To retrieve the child column values, you must enter the number corresponding to the column in brace (for example, to retrieve the value of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static value with the values of the child columns (for example "{0} - {1}"). To get more information see TextFormat.
    • setHFORMAT

      public void setHFORMAT(String s)
      Sets the label of the ColumnSpan facilitating the insertion of html tags. It's possible to set it with a static label or by combining the labels of the child columns.
      Parameters:
      s - The string used to set the label of the ColumnSpan. To retrieve the child column labels, you must enter the number corresponding to the column in brace (for example, to retrieve the label of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static label with the labels of the child columns (for example "{0} - {1}"). To insert a tag xml you can use the characters "«" and "»" instead of "<" and ">".
      To get more information see TextFormat.
    • setROWHFORMAT

      public void setROWHFORMAT(String s)
      Sets how to build the value of each row facilitating the insertion of html tags. It's possible to set it with a static label or by combining the values of the child columns.
      Parameters:
      s - The string used to set the values of the ColumnSpan. To retrieve the child column values, you must enter the number corresponding to the column in brace (for example, to retrieve the value of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static value with the values of the child columns (for example "{0} - {1}"). To insert a tag xml you can use the characters "«" and "»" instead of "<" and ">".
      To get more information see TextFormat.
    • isUserHideable

      public boolean isUserHideable()
      Description copied from class: Column
      Checks if the column will be present in the menu that appear when the user clicks on the icon in the upper left corner of the table and it can be used to rearrange the visibility and the position of the columns. The column is user hideable, and so it will appears in the menu, if it has a not null name (see Component.getNAME()) and label (see Control.getLABEL()), if it is visible (see Column.isVisible()) and has labelspan attribute set to 'n' (see Column.setLABELSPAN(java.lang.String)).
      Overrides:
      isUserHideable in class Column
      Returns:
      true if the column is user hideable and will appear in the menu, false otherwise
    • isUserDraggable

      public boolean isUserDraggable()
      Description copied from class: Column
      Checks if the column is draggable, ie if the user can change the positioning of the column with respect to the others in the table by dragging it. The column is draggable if is hideable (see Column.isUserHideable()) and has a label (see Control.getLABEL()) that is not an empty string.
      Overrides:
      isUserDraggable in class Column
      Returns:
      true if the user can drag the column to change its position, false otherwise
    • 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 labels of the child columns that have an inner title format like ColumnStaticView and ColumnLookup. To know how to create a format, see TextFormat.
      Parameters:
      s - String represent the format to be set.
    • 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
    • getHeadLabel

      public org.apache.ecs.Element getHeadLabel(EntitySet es)
      Overrides:
      getHeadLabel 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
    • groupable

      protected boolean groupable()
      Overrides:
      groupable in class Column
    • setupTitle

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

      protected String getTitleString(ArrayList al)