|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.workplace.list.CmsListMetadata
This is class contains all the information for defining a whole html list.
| Constructor Summary | |
CmsListMetadata(String listId)
Default Constructor. |
|
| Method Summary | |
void |
addColumn(CmsListColumnDefinition listColumn)
Adds a new column definition at the end. |
void |
addColumn(CmsListColumnDefinition listColumn,
int position)
Adds a new column definition at the given position. |
void |
addIndependentAction(I_CmsListAction action)
Adds a list item independent action. |
void |
addItemDetails(CmsListItemDetails itemDetail)
Adds a new item detail definition at the end. |
void |
addItemDetails(CmsListItemDetails itemDetail,
int position)
Adds a new item detail definition at the given position. |
void |
addMultiAction(CmsListMultiAction multiAction)
Adds an action applicable to more than one list item at once. |
CmsListColumnDefinition |
getColumnDefinition(String columnId)
Returns a column definition object for a given column id. |
List |
getIndependentActions()
Returns the list of independent actions. |
CmsListItemDetails |
getItemDetailDefinition(String itemDetailId)
Returns a list item details definition object for a given id. |
List |
getListColumns()
Returns all columns definitions. |
List |
getListDetails()
Returns all detail definitions. |
String |
getListId()
Returns the id of the list. |
List |
getMultiActions()
Returns the list of multi actions. |
CmsListSearchAction |
getSearchAction()
Returns the search action. |
int |
getWidth()
Returns the total number of displayed columns. |
boolean |
hasActions()
Returns true if the list definition contains an action. |
boolean |
hasMultiActions()
Returns true if the list definition contains a multi action. |
boolean |
hasSingleActions()
Returns true if any column definition contains a single action. |
String |
htmlActionBar(CmsWorkplace wp)
Returns the html code for the action bar. |
String |
htmlEmptyTable(Locale locale)
Generates the hml code for an empty table. |
String |
htmlHeader(CmsHtmlList list,
CmsWorkplace wp)
Returns the html code for the header of the list. |
String |
htmlItem(CmsListItem item,
CmsWorkplace wp,
boolean odd)
Returns the html code for a list item. |
String |
htmlMultiActionBar(CmsWorkplace wp)
Returns the html code for the multi action bar. |
String |
htmlSearchBar(CmsWorkplace wp)
Generates the html code for the search bar. |
boolean |
isSearchable()
Returns true if the list is searchable. |
boolean |
isSorteable()
Returns true if any column is sorteable. |
void |
setSearchAction(CmsListSearchAction searchAction)
Sets the search action. |
void |
toogleDetailState(String itemDetailId)
Toggles the given item detail state from visible to hidden or from hidden to visible. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsListMetadata(String listId)
listId - the id of the list| Method Detail |
public void addColumn(CmsListColumnDefinition listColumn)
listColumn - the column definitionCmsIdentifiableObjectContainer
public void addColumn(CmsListColumnDefinition listColumn,
int position)
listColumn - the column definitionposition - the positionCmsIdentifiableObjectContainerpublic void addIndependentAction(I_CmsListAction action)
action - the actionpublic void addItemDetails(CmsListItemDetails itemDetail)
itemDetail - the item detail definitionCmsIdentifiableObjectContainer
public void addItemDetails(CmsListItemDetails itemDetail,
int position)
itemDetail - the item detail definitionposition - the positionCmsIdentifiableObjectContainerpublic void addMultiAction(CmsListMultiAction multiAction)
It will be executed with a list of s.CmsListItem
multiAction - the actionpublic CmsListColumnDefinition getColumnDefinition(String columnId)
columnId - the column id
null if not presentpublic List getIndependentActions()
I_CmsListActionspublic CmsListItemDetails getItemDetailDefinition(String itemDetailId)
itemDetailId - the id
null if not presentpublic List getListColumns()
CmsListColumnDefinitions.public List getListDetails()
CmsListItemDetails.public String getListId()
public List getMultiActions()
CmsListMultiActionspublic CmsListSearchAction getSearchAction()
public int getWidth()
public boolean hasActions()
true if the list definition contains an action.
true if the list definition contains an actionpublic boolean hasMultiActions()
true if the list definition contains a multi action.
true if the list definition contains a multi actionpublic boolean hasSingleActions()
true if any column definition contains a single action.
true if any column definition contains a single actionpublic String htmlActionBar(CmsWorkplace wp)
wp - the workplace context
public String htmlEmptyTable(Locale locale)
locale - for localization
public String htmlHeader(CmsHtmlList list,
CmsWorkplace wp)
list - the list to generate the code forwp - the workplace instance
public String htmlItem(CmsListItem item,
CmsWorkplace wp,
boolean odd)
item - the list item to renderwp - the workplace contextodd - if the position is odd or even
public String htmlMultiActionBar(CmsWorkplace wp)
wp - the workplace context
public String htmlSearchBar(CmsWorkplace wp)
wp - the workplace context
public boolean isSearchable()
true if the list is searchable.
true if the list is searchablepublic boolean isSorteable()
true if any column is sorteable.
true if any column is sorteablepublic void setSearchAction(CmsListSearchAction searchAction)
searchAction - the search action to setpublic void toogleDetailState(String itemDetailId)
itemDetailId - the item detail id
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||