public class CmsListColumnDefinition
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ICON_DOWN
Standard list button location.
|
static java.lang.String |
ICON_UP
Standard list button location.
|
构造器和说明 |
---|
CmsListColumnDefinition(java.lang.String id)
Default Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addDefaultAction(CmsListDefaultAction defaultAction)
Adds a default Action.
|
void |
addDirectAction(I_CmsListDirectAction listAction)
Adds a new action to the column.
|
java.lang.String |
csvCell(CmsListItem item)
returns the csv output for a cell.
|
java.lang.String |
csvHeader()
Returns the csv output for a column header.
|
CmsListColumnAlignEnum |
getAlign()
Returns the align.
|
CmsListDefaultAction |
getDefaultAction(java.lang.String actionId)
Returns a default action by id.
|
java.util.List<java.lang.String> |
getDefaultActionIds()
Returns the default Action Ids list.
|
java.util.List<CmsListDefaultAction> |
getDefaultActions()
Returns the default Actions list.
|
I_CmsListDirectAction |
getDirectAction(java.lang.String actionId)
Returns a direct action by id.
|
java.util.List<java.lang.String> |
getDirectActionIds()
Returns the direct Action Ids list.
|
java.util.List<I_CmsListDirectAction> |
getDirectActions()
Returns all direct actions.
|
I_CmsListFormatter |
getFormatter()
Returns the data formatter.
|
CmsMessageContainer |
getHelpText()
Returns the customized help Text.
|
java.lang.String |
getId()
Returns the id.
|
I_CmsListItemComparator |
getListItemComparator()
Returns the comparator, used for sorting.
|
CmsMessageContainer |
getName()
Returns the name.
|
java.lang.String |
getWidth()
Returns the width.
|
A_CmsListDialog |
getWp()
Returns the workplace dialog object.
|
java.lang.String |
htmlCell(CmsListItem item,
boolean isPrintable)
returns the html for a cell.
|
java.lang.String |
htmlHeader(CmsHtmlList list)
Returns the html code for a column header.
|
boolean |
isPrintable()
Returns the printable .
|
boolean |
isSorteable()
Returns the sorteable.
|
boolean |
isTextWrapping()
Returns the text Wrapping flag.
|
boolean |
isVisible()
Returns the visible.
|
CmsListDefaultAction |
removeDefaultAction(java.lang.String actionId)
Removes the default action from this column by id.
|
I_CmsListDirectAction |
removeDirectAction(java.lang.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(CmsMessageContainer helpText)
Sets the customized help Text.
|
void |
setListItemComparator(I_CmsListItemComparator comparator)
Sets the comparator, used for sorting.
|
void |
setName(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 |
setWidth(java.lang.String width)
Sets the width.
|
void |
setWp(A_CmsListDialog wp)
Sets the workplace dialog object.
|
public static final java.lang.String ICON_DOWN
public static final java.lang.String ICON_UP
public CmsListColumnDefinition(java.lang.String id)
id
- the unique idpublic void addDefaultAction(CmsListDefaultAction defaultAction)
A column could have more than one default action if the visibilities are complementary.
defaultAction
- the default Action to addpublic void addDirectAction(I_CmsListDirectAction listAction)
listAction
- the action to addpublic java.lang.String csvCell(CmsListItem item)
item
- the item to render the cell forpublic java.lang.String csvHeader()
public CmsListColumnAlignEnum getAlign()
public CmsListDefaultAction getDefaultAction(java.lang.String actionId)
actionId
- the id of the actionpublic java.util.List<java.lang.String> getDefaultActionIds()
public java.util.List<CmsListDefaultAction> getDefaultActions()
CmsListDefaultAction
objectspublic I_CmsListDirectAction getDirectAction(java.lang.String actionId)
actionId
- the id of the actionpublic java.util.List<java.lang.String> getDirectActionIds()
public java.util.List<I_CmsListDirectAction> getDirectActions()
I_CmsListDirectAction
s.public I_CmsListFormatter getFormatter()
public CmsMessageContainer getHelpText()
if null
a default help text indicating the sort actions is used.
public java.lang.String getId()
public I_CmsListItemComparator getListItemComparator()
if no comparator was set, the default list item comparator is used.
CmsListItemDefaultComparator
public CmsMessageContainer getName()
public java.lang.String getWidth()
public A_CmsListDialog getWp()
public java.lang.String htmlCell(CmsListItem item, boolean isPrintable)
item
- the item to render the cell forisPrintable
- if the list is to be printedpublic java.lang.String htmlHeader(CmsHtmlList list)
list
- the list to generate the header code forpublic boolean isPrintable()
public boolean isSorteable()
public boolean isTextWrapping()
public boolean isVisible()
public CmsListDefaultAction removeDefaultAction(java.lang.String actionId)
actionId
- the id of the action to removenull
public I_CmsListDirectAction removeDirectAction(java.lang.String actionId)
actionId
- the id of the action to removenull
public void setAlign(CmsListColumnAlignEnum align)
align
- the align to setpublic void setFormatter(I_CmsListFormatter formatter)
formatter
- the data formatter to setpublic void setHelpText(CmsMessageContainer helpText)
if null
a default help text indicating the sort actions is used.
helpText
- the customized help Text to setpublic void setListItemComparator(I_CmsListItemComparator comparator)
comparator
- the comparator to setpublic void setName(CmsMessageContainer name)
name
- the name to setpublic void setPrintable(boolean printable)
printable
- the printable flag to setpublic void setSorteable(boolean sorteable)
if true
a default list item comparator is used.
if false
any previously set list item comparator is removed.
sorteable
- the sorteable flagpublic void setTextWrapping(boolean textWrapping)
textWrapping
- the text Wrapping flag to setpublic void setVisible(boolean visible)
This will set also the printable flag to false
.
visible
- the visible to setpublic void setWidth(java.lang.String width)
width
- the width to setpublic void setWp(A_CmsListDialog wp)
wp
- the workplace dialog object to set