Class CmsListColumnDefinition

    • Constructor Detail

      • CmsListColumnDefinition

        public CmsListColumnDefinition​(java.lang.String id)
        Default Constructor.

        Parameters:
        id - the unique id
    • Method Detail

      • 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
      • csvCell

        public java.lang.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 java.lang.String csvHeader()
        Returns the csv output for a column header.

        Returns:
        csv header
      • getDefaultAction

        public CmsListDefaultAction getDefaultAction​(java.lang.String actionId)
        Returns a default action by id.

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

        public java.util.List<java.lang.String> getDefaultActionIds()
        Returns the default Action Ids list.

        Returns:
        the default Action Ids list
      • getDirectAction

        public I_CmsListDirectAction getDirectAction​(java.lang.String actionId)
        Returns a direct action by id.

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

        public java.util.List<java.lang.String> getDirectActionIds()
        Returns the direct Action Ids list.

        Returns:
        the direct Action Ids list
      • 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 java.lang.String getId()
        Returns the id.

        Returns:
        the id
      • getName

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

        Returns:
        the name
      • getWidth

        public java.lang.String getWidth()
        Returns the width.

        Returns:
        the width
      • getWp

        public A_CmsListDialog getWp()
        Returns the workplace dialog object.

        Returns:
        the workplace dialog object
      • htmlCell

        public java.lang.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 java.lang.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

        public CmsListDefaultAction removeDefaultAction​(java.lang.String actionId)
        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

        public I_CmsListDirectAction removeDirectAction​(java.lang.String actionId)
        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
      • 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
      • 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​(java.lang.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