Class UIWikiDraftGrid
- java.lang.Object
-
- org.exoplatform.webui.core.UIComponent
-
- org.exoplatform.wiki.webui.commons.UIWikiDraftGrid
-
public class UIWikiDraftGrid extends org.exoplatform.webui.core.UIComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]action_An array of String representing the actions on each beanprotected String[]beanField_An array of String representing the fields in each beanprotected StringbeanIdField_The bean field that holds the id of this beanprotected intdisplayedChars_protected Stringlabel_static StringSORT_ASCstatic StringSORT_DESCprotected org.exoplatform.webui.core.UIPageIteratoruiIterator_The page iteratorprotected booleanuseAjax
-
Constructor Summary
Constructors Constructor Description UIWikiDraftGrid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBreadcrum()UIWikiDraftGridconfigure(String beanIdField, String[] beanField, String[] action)StringcreateActionLink(org.exoplatform.wiki.service.BreadcrumbData breadCumbData)org.exoplatform.webui.core.UIComponentfindComponentById(String lookupId)StringgetActionForField(String field)String[]getBeanActions()String[]getBeanFields()StringgetBeanIdField()StringgetBeanIdFor(Object bean)List<?>getBeans()StringgetBreadCrumb(String key)intgetDisplayedChars()StringgetFieldToDisplayBreadCrumb()ObjectgetFieldValue(Object bean, String field)StringgetLabel()org.exoplatform.wiki.service.WikiPageParamsgetPageParam(String key)StringgetSortField()org.exoplatform.webui.core.UIPageIteratorgetUIPageIterator()StringgetWikiName(String key)booleanisASC()booleanisUseAjax()voidputBreadCrumbDatas(String key, List<org.exoplatform.wiki.service.BreadcrumbData> breakCrumbDatas)voidsetActionForField(String field, String action)voidsetASC(boolean isASC)voidsetDisplayedChars(int displayedChars)voidsetFieldToDisplayBreadCrumb(String fieldToDisplayBreadCrumb)voidsetLabel(String label)voidsetSortField(String sortField)voidsetUseAjax(boolean value)-
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, findComponentOfType, findFirstComponentOfType, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
-
-
-
-
Field Detail
-
SORT_ASC
public static final String SORT_ASC
- See Also:
- Constant Field Values
-
SORT_DESC
public static final String SORT_DESC
- See Also:
- Constant Field Values
-
uiIterator_
protected org.exoplatform.webui.core.UIPageIterator uiIterator_
The page iterator
-
beanIdField_
protected String beanIdField_
The bean field that holds the id of this bean
-
beanField_
protected String[] beanField_
An array of String representing the fields in each bean
-
action_
protected String[] action_
An array of String representing the actions on each bean
-
label_
protected String label_
-
useAjax
protected boolean useAjax
-
displayedChars_
protected int displayedChars_
-
-
Method Detail
-
clearBreadcrum
public void clearBreadcrum()
-
getUIPageIterator
public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
-
putBreadCrumbDatas
public void putBreadCrumbDatas(String key, List<org.exoplatform.wiki.service.BreadcrumbData> breakCrumbDatas) throws Exception
- Throws:
Exception
-
getPageParam
public org.exoplatform.wiki.service.WikiPageParams getPageParam(String key) throws Exception
- Throws:
Exception
-
getFieldToDisplayBreadCrumb
public String getFieldToDisplayBreadCrumb()
-
setFieldToDisplayBreadCrumb
public void setFieldToDisplayBreadCrumb(String fieldToDisplayBreadCrumb)
-
getSortField
public String getSortField()
-
setSortField
public void setSortField(String sortField)
-
isASC
public boolean isASC()
-
setASC
public void setASC(boolean isASC)
-
createActionLink
public String createActionLink(org.exoplatform.wiki.service.BreadcrumbData breadCumbData) throws Exception
- Throws:
Exception
-
configure
public UIWikiDraftGrid configure(String beanIdField, String[] beanField, String[] action)
-
getBeanIdField
public String getBeanIdField()
-
getBeanFields
public String[] getBeanFields()
-
getBeanActions
public String[] getBeanActions()
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getFieldValue
public Object getFieldValue(Object bean, String field) throws Exception
- Throws:
Exception
-
findComponentById
public org.exoplatform.webui.core.UIComponent findComponentById(String lookupId)
- Overrides:
findComponentByIdin classorg.exoplatform.webui.core.UIComponent
-
isUseAjax
public boolean isUseAjax()
-
setUseAjax
public void setUseAjax(boolean value)
-
getDisplayedChars
public int getDisplayedChars()
-
setDisplayedChars
public void setDisplayedChars(int displayedChars)
-
-