Class CmsListColumnDefinition

java.lang.Object
org.opencms.workplace.list.CmsListColumnDefinition
Direct Known Subclasses:
CmsListExplorerColumn, CmsListItemDetails, CmsListResourceLinkRelationExplorerColumn

public class CmsListColumnDefinition extends Object
Html list column definition.

Since:
6.0.0
  • Field Details

  • Constructor Details

  • Method Details

    • addDefaultAction

      public void addDefaultAction(CmsListDefaultAction defaultAction)
      Adds a default Action.

      A column could have more than one default action if the visibilities are complementary.

      Parameters:
      defaultAction - the default Action to add
    • addDirectAction

      public void addDirectAction(I_CmsListDirectAction listAction)
      Adds a new action to the column.

      Parameters:
      listAction - the action to add
    • csvCell

      public String csvCell(CmsListItem item)
      returns the csv output for a cell.

      Parameters:
      item - the item to render the cell for
      Returns:
      csv output
    • csvHeader

      public String csvHeader()
      Returns the csv output for a column header.

      Returns:
      csv header
    • getAlign

      Returns the align.

      Returns:
      the align
    • getDefaultAction

      Returns a default action by id.

      Parameters:
      actionId - the id of the action
      Returns:
      the action if found or null
    • getDefaultActionIds

      Returns the default Action Ids list.

      Returns:
      the default Action Ids list
    • getDefaultActions

      Returns the default Actions list.

      Returns:
      a list of CmsListDefaultAction objects
    • getDirectAction

      Returns a direct action by id.

      Parameters:
      actionId - the id of the action
      Returns:
      the action if found or null
    • getDirectActionIds

      Returns the direct Action Ids list.

      Returns:
      the direct Action Ids list
    • getDirectActions

      Returns all direct actions.

      Returns:
      a list of I_CmsListDirectActions.
    • getFormatter

      Returns the data formatter.

      Returns:
      the data formatter
    • getHelpText

      public org.opencms.i18n.CmsMessageContainer getHelpText()
      Returns the customized help Text.

      if null a default help text indicating the sort actions is used.

      Returns:
      the customized help Text
    • getId

      public String getId()
      Returns the id.

      Returns:
      the id
    • getListItemComparator

      Returns the comparator, used for sorting.

      if no comparator was set, the default list item comparator is used.

      Returns:
      the comparator
      See Also:
    • getName

      public org.opencms.i18n.CmsMessageContainer getName()
      Returns the name.

      Returns:
      the name
    • getWidth

      public String getWidth()
      Returns the width.

      Returns:
      the width
    • getWp

      Returns the workplace dialog object.

      Returns:
      the workplace dialog object
    • htmlCell

      public String htmlCell(CmsListItem item, boolean isPrintable)
      returns the html for a cell.

      Parameters:
      item - the item to render the cell for
      isPrintable - if the list is to be printed
      Returns:
      html code
    • htmlHeader

      public String htmlHeader(CmsHtmlList list)
      Returns the html code for a column header.

      Parameters:
      list - the list to generate the header code for
      Returns:
      html code
    • isPrintable

      public boolean isPrintable()
      Returns the printable .

      Returns:
      the printable flag
    • isSorteable

      public boolean isSorteable()
      Returns the sorteable.

      Returns:
      the sorteable
    • isTextWrapping

      public boolean isTextWrapping()
      Returns the text Wrapping flag.

      Returns:
      the text Wrapping flag
    • isVisible

      public boolean isVisible()
      Returns the visible.

      Returns:
      the visible
    • removeDefaultAction

      Removes the default action from this column by id.

      Parameters:
      actionId - the id of the action to remove
      Returns:
      the action if found or null
    • removeDirectAction

      Removes a direct action from this column by id.

      Parameters:
      actionId - the id of the action to remove
      Returns:
      the action if found or null
    • setAlign

      public void setAlign(CmsListColumnAlignEnum align)
      Sets the align.

      Parameters:
      align - the align to set
    • setFormatter

      public void setFormatter(I_CmsListFormatter formatter)
      Sets the data formatter.

      Parameters:
      formatter - the data formatter to set
    • setHelpText

      public void setHelpText(org.opencms.i18n.CmsMessageContainer helpText)
      Sets the customized help Text.

      if null a default help text indicating the sort actions is used.

      Parameters:
      helpText - the customized help Text to set
    • setListItemComparator

      Sets the comparator, used for sorting.

      Parameters:
      comparator - the comparator to set
    • setName

      public void setName(org.opencms.i18n.CmsMessageContainer name)
      Sets the name.

      Parameters:
      name - the name to set
    • setPrintable

      public void setPrintable(boolean printable)
      Sets the printable flag.

      Parameters:
      printable - the printable flag to set
    • setSorteable

      public void setSorteable(boolean sorteable)
      Indicates if the current column is sorteable or not.

      if true a default list item comparator is used.

      if false any previously set list item comparator is removed.

      Parameters:
      sorteable - the sorteable flag
    • setTextWrapping

      public void setTextWrapping(boolean textWrapping)
      Sets the text Wrapping flag.

      Parameters:
      textWrapping - the text Wrapping flag to set
    • setVisible

      public void setVisible(boolean visible)
      Sets the visible.

      This will set also the printable flag to false.

      Parameters:
      visible - the visible to set
    • setWidth

      public void setWidth(String width)
      Sets the width.

      Parameters:
      width - the width to set
    • setWp

      public void setWp(A_CmsListDialog wp)
      Sets the workplace dialog object.

      Parameters:
      wp - the workplace dialog object to set