org.exoplatform.wiki.webui.commons
Class UIWikiDraftGrid

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.wiki.webui.commons.UIWikiDraftGrid

public class UIWikiDraftGrid
extends org.exoplatform.webui.core.UIComponent


Field Summary
protected  String[] action_
          An array of String representing the actions on each bean
protected  String[] beanField_
          An array of String representing the fields in each bean
protected  String beanIdField_
          The bean field that holds the id of this bean
protected  int displayedChars_
           
protected  String label_
           
static String SORT_ASC
           
static String SORT_DESC
           
protected  org.exoplatform.webui.core.UIPageIterator uiIterator_
          The page iterator
protected  boolean useAjax
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIWikiDraftGrid()
           
 
Method Summary
 void clearBreadcrum()
           
 UIWikiDraftGrid configure(String beanIdField, String[] beanField, String[] action)
           
 String createActionLink(org.exoplatform.wiki.service.BreadcrumbData breadCumbData)
           
 org.exoplatform.webui.core.UIComponent findComponentById(String lookupId)
           
 String getActionForField(String field)
           
 String[] getBeanActions()
           
 String[] getBeanFields()
           
 String getBeanIdField()
           
 String getBeanIdFor(Object bean)
           
 List<?> getBeans()
           
 String getBreadCrumb(String key)
           
 int getDisplayedChars()
           
 String getFieldToDisplayBreadCrumb()
           
 Object getFieldValue(Object bean, String field)
           
 String getLabel()
           
 org.exoplatform.wiki.service.WikiPageParams getPageParam(String key)
           
 String getSortField()
           
 org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
           
 String getWikiName(String key)
           
 boolean isASC()
           
 boolean isUseAjax()
           
 void putBreadCrumbDatas(String key, List<org.exoplatform.wiki.service.BreadcrumbData> breakCrumbDatas)
           
 void setActionForField(String field, String action)
           
 void setASC(boolean isASC)
           
 void setDisplayedChars(int displayedChars)
           
 void setFieldToDisplayBreadCrumb(String fieldToDisplayBreadCrumb)
           
 void setLabel(String label)
           
 void setSortField(String sortField)
           
 void setUseAjax(boolean value)
           
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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_
Constructor Detail

UIWikiDraftGrid

public UIWikiDraftGrid()
                throws Exception
Throws:
Exception
Method Detail

clearBreadcrum

public void clearBreadcrum()

getUIPageIterator

public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()

setActionForField

public void setActionForField(String field,
                              String action)

getActionForField

public String getActionForField(String field)

putBreadCrumbDatas

public void putBreadCrumbDatas(String key,
                               List<org.exoplatform.wiki.service.BreadcrumbData> breakCrumbDatas)
                        throws Exception
Throws:
Exception

getBreadCrumb

public String getBreadCrumb(String key)

getPageParam

public org.exoplatform.wiki.service.WikiPageParams getPageParam(String key)
                                                         throws Exception
Throws:
Exception

getFieldToDisplayBreadCrumb

public String getFieldToDisplayBreadCrumb()

setFieldToDisplayBreadCrumb

public void setFieldToDisplayBreadCrumb(String fieldToDisplayBreadCrumb)

getWikiName

public String getWikiName(String key)
                   throws Exception
Throws:
Exception

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()

getBeans

public List<?> getBeans()
                 throws Exception
Throws:
Exception

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getFieldValue

public Object getFieldValue(Object bean,
                            String field)
                     throws Exception
Throws:
Exception

getBeanIdFor

public String getBeanIdFor(Object bean)
                    throws Exception
Throws:
Exception

findComponentById

public org.exoplatform.webui.core.UIComponent findComponentById(String lookupId)
Overrides:
findComponentById in class org.exoplatform.webui.core.UIComponent

isUseAjax

public boolean isUseAjax()

setUseAjax

public void setUseAjax(boolean value)

getDisplayedChars

public int getDisplayedChars()

setDisplayedChars

public void setDisplayedChars(int displayedChars)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.