|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.workplace.list.CmsListColumnDefinition
Html list column definition.
| Field Summary | |
static String |
ICON_DOWN
Standard list button location. |
static String |
ICON_UP
Standard list button location. |
| Constructor Summary | |
CmsListColumnDefinition(String id)
Default Constructor. |
|
| Method Summary | |
void |
addDirectAction(I_CmsListDirectAction listAction)
Adds a new action to the column. |
CmsListColumnAlignEnum |
getAlign()
Returns the align. |
I_CmsListDirectAction |
getDefaultAction()
Returns the default Action. |
I_CmsListDirectAction |
getDirectAction(String actionId)
Returns a direct action by id. |
List |
getDirectActions()
Returns all direct actions. |
I_CmsListFormatter |
getFormatter()
Returns the data formatter. |
CmsMessageContainer |
getHelpText()
Returns the customized help Text. |
String |
getId()
Returns the id. |
I_CmsListItemComparator |
getListItemComparator()
Returns the comparator, used for sorting. |
CmsMessageContainer |
getName()
Returns the name. |
String |
getWidth()
Returns the width. |
String |
htmlCell(CmsListItem item,
CmsWorkplace wp)
returns the html for a cell. |
String |
htmlHeader(CmsHtmlList list,
CmsWorkplace wp)
Returns the html code for a column header. |
boolean |
isSorteable()
Returns the sorteable. |
boolean |
isTextWrapping()
Returns the text Wrapping flag. |
boolean |
isVisible()
Returns the visible. |
void |
setAlign(CmsListColumnAlignEnum align)
Sets the align. |
void |
setDefaultAction(CmsListDefaultAction defaultAction)
Sets the default Action. |
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 |
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(String width)
Sets the width. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ICON_DOWN
public static final String ICON_UP
| Constructor Detail |
public CmsListColumnDefinition(String id)
id - the unique id| Method Detail |
public void addDirectAction(I_CmsListDirectAction listAction)
listAction - the action to addpublic CmsListColumnAlignEnum getAlign()
public I_CmsListDirectAction getDefaultAction()
public I_CmsListDirectAction getDirectAction(String actionId)
actionId - the id of the action
public List getDirectActions()
I_CmsListDirectActions.public I_CmsListFormatter getFormatter()
public CmsMessageContainer getHelpText()
if null a default help text indicating the sort actions is used.
public String getId()
public I_CmsListItemComparator getListItemComparator()
if no comparator was set, the default list item comparator is used.
CmsListItemDefaultComparatorpublic CmsMessageContainer getName()
public String getWidth()
public String htmlCell(CmsListItem item,
CmsWorkplace wp)
item - the item to render the cell forwp - the workplace context
public String htmlHeader(CmsHtmlList list,
CmsWorkplace wp)
list - the list to generate the header code forwp - the workplace instance
public boolean isSorteable()
public boolean isTextWrapping()
public boolean isVisible()
public void setAlign(CmsListColumnAlignEnum align)
align - the align to setpublic void setDefaultAction(CmsListDefaultAction defaultAction)
defaultAction - the default Action 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 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)
visible - the visible to setpublic void setWidth(String width)
width - the width to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||