Package org.opencms.workplace.list
Class CmsListColumnDefinition
java.lang.Object
org.opencms.workplace.list.CmsListColumnDefinition
- Direct Known Subclasses:
CmsListExplorerColumn
,CmsListItemDetails
,CmsListResourceLinkRelationExplorerColumn
Html list column definition.
- Since:
- 6.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultAction
(CmsListDefaultAction defaultAction) Adds a default Action.void
addDirectAction
(I_CmsListDirectAction listAction) Adds a new action to the column.csvCell
(CmsListItem item) returns the csv output for a cell.Returns the csv output for a column header.getAlign()
Returns the align.getDefaultAction
(String actionId) Returns a default action by id.Returns the default Action Ids list.Returns the default Actions list.getDirectAction
(String actionId) Returns a direct action by id.Returns the direct Action Ids list.Returns all direct actions.Returns the data formatter.org.opencms.i18n.CmsMessageContainer
Returns the customized help Text.getId()
Returns the id.Returns the comparator, used for sorting.org.opencms.i18n.CmsMessageContainer
getName()
Returns the name.getWidth()
Returns the width.getWp()
Returns the workplace dialog object.htmlCell
(CmsListItem item, boolean isPrintable) returns the html for a cell.htmlHeader
(CmsHtmlList list) Returns the html code for a column header.boolean
Returns the printable .boolean
Returns the sorteable.boolean
Returns the text Wrapping flag.boolean
Returns the visible.removeDefaultAction
(String actionId) Removes the default action from this column by id.removeDirectAction
(String actionId) Removes a direct action from this column by id.void
setAlign
(CmsListColumnAlignEnum align) Sets the align.void
setFormatter
(I_CmsListFormatter formatter) Sets the data formatter.void
setHelpText
(org.opencms.i18n.CmsMessageContainer helpText) Sets the customized help Text.void
setListItemComparator
(I_CmsListItemComparator comparator) Sets the comparator, used for sorting.void
setName
(org.opencms.i18n.CmsMessageContainer name) Sets the name.void
setPrintable
(boolean printable) Sets the printable flag.void
setSorteable
(boolean sorteable) Indicates if the current column is sorteable or not.void
setTextWrapping
(boolean textWrapping) Sets the text Wrapping flag.void
setVisible
(boolean visible) Sets the visible.void
Sets the width.void
setWp
(A_CmsListDialog wp) Sets the workplace dialog object.
-
Field Details
-
ICON_DOWN
Standard list button location.- See Also:
-
ICON_UP
Standard list button location.- See Also:
-
-
Constructor Details
-
CmsListColumnDefinition
Default Constructor.- Parameters:
id
- the unique id
-
-
Method Details
-
addDefaultAction
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
Adds a new action to the column.- Parameters:
listAction
- the action to add
-
csvCell
returns the csv output for a cell.- Parameters:
item
- the item to render the cell for- Returns:
- csv output
-
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
s.I_CmsListDirectAction
-
getFormatter
Returns the data formatter.- Returns:
- the data formatter
-
getHelpText
Returns the customized help Text.if
null
a default help text indicating the sort actions is used.- Returns:
- the customized help Text
-
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
Returns the name.- Returns:
- the name
-
getWidth
Returns the width.- Returns:
- the width
-
getWp
Returns the workplace dialog object.- Returns:
- the workplace dialog object
-
htmlCell
returns the html for a cell.- Parameters:
item
- the item to render the cell forisPrintable
- if the list is to be printed- Returns:
- html code
-
htmlHeader
Returns the html code for a column header.- Parameters:
list
- the list to generate the header code for- Returns:
- html code
-
isPrintable
Returns the printable .- Returns:
- the printable flag
-
isSorteable
Returns the sorteable.- Returns:
- the sorteable
-
isTextWrapping
Returns the text Wrapping flag.- Returns:
- the text Wrapping flag
-
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
Sets the align.- Parameters:
align
- the align to set
-
setFormatter
Sets the data formatter.- Parameters:
formatter
- the data formatter to set
-
setHelpText
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
Sets the name.- Parameters:
name
- the name to set
-
setPrintable
Sets the printable flag.- Parameters:
printable
- the printable flag to set
-
setSorteable
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
Sets the text Wrapping flag.- Parameters:
textWrapping
- the text Wrapping flag to set
-
setVisible
Sets the visible.This will set also the printable flag to
false
.- Parameters:
visible
- the visible to set
-
setWidth
Sets the width.- Parameters:
width
- the width to set
-
setWp
Sets the workplace dialog object.- Parameters:
wp
- the workplace dialog object to set
-