|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.dashboard.webui.component.UIDashboardContainer
public class UIDashboardContainer
| Nested Class Summary | |
|---|---|
static class |
UIDashboardContainer.AddNewGadgetActionListener
|
static class |
UIDashboardContainer.DeleteGadgetActionListener
|
static class |
UIDashboardContainer.MoveGadgetActionListener
|
static class |
UIDashboardContainer.SetShowSelectFormActionListener
|
| Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
|---|
UIContainer.SelectTabActionListener |
| Field Summary | |
|---|---|
static java.lang.String |
COLINDEX
|
static java.lang.String |
COLUMN_CONTAINER
Column Type of Container |
static int |
MAX_COLUMN
Specify max number of columns in dashboard container Default value is 4 |
static java.lang.String |
ROOT_CONTAINER
Root Type of Container |
static java.lang.String |
ROW_CONTAINER
Row Type of Container |
static java.lang.String |
ROWINDEX
|
| Fields inherited from class org.exoplatform.webui.core.UIComponent |
|---|
config, OBJECTID, UICOMPONENT, uiparent |
| Constructor Summary | |
|---|---|
UIDashboardContainer(InitParams initParams)
Constructs new UIDashboardContainer which belongs to a UIDashboardPortlet |
|
| Method Summary | |
|---|---|
void |
addUIGadget(UIGadget gadget,
int col,
int row)
Adds an UIGadget into UIDashboardContainer in specified position |
Container |
createContainer(java.lang.String type,
java.lang.String id)
Creates a Container that representation of row or column in this UIDashboardContainer |
UIContainer |
getColumn(int col)
Gets an UIContainer representation of a column at specified index |
java.util.List<UIContainer> |
getColumns()
Returns a List of the UIContainers of this UIDashboardContainer which representation of list of columns. |
java.lang.String |
getContainerTemplate()
|
UIGadget |
getUIGadget(int col,
int row)
Gets an UIGadget at specified position |
UIGadget |
getUIGadget(java.lang.String gadgetId)
Gets an UIGadget which has applicationInstanceUniqueId_ according to specified Id |
java.lang.String |
getWindowId()
Get windowId of UIPortlet |
boolean |
hasUIGadget()
Tests if this UIDashboardContainer has UIGadget |
void |
moveUIGadget(java.lang.String gadgetId,
int col,
int row)
Moves an UIGadget which has specified applicationInstanceUniqueId_ to specified position |
void |
processRender(WebuiRequestContext context)
|
UIGadget |
removeUIGadget(int col,
int row)
Removes an UIGadget at specified position |
UIGadget |
removeUIGadget(java.lang.String gadgetId)
Removes an UIGadget belongs to this which has specified applicationInstanceUniqueId_ |
void |
save()
Saves all UIComponent of this UIDashboardContainer to database |
UIDashboardContainer |
setColumns(int num)
Sets total of columns of this UIDashboardContainer, total of columns is between 1 and MAX_COLUMN |
void |
setContainerTemplate(java.lang.String template)
|
| Methods inherited from class org.exoplatform.webui.core.UIContainer |
|---|
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit |
| Methods inherited from class org.exoplatform.webui.core.UIComponent |
|---|
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url, url |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_COLUMN
public static final java.lang.String COLUMN_CONTAINER
public static final java.lang.String ROW_CONTAINER
public static final java.lang.String ROOT_CONTAINER
public static final java.lang.String COLINDEX
public static final java.lang.String ROWINDEX
| Constructor Detail |
|---|
public UIDashboardContainer(InitParams initParams)
throws java.lang.Exception
initParams - initial parameters
java.lang.Exception - if can't create UIDashboardContainerDashboardParent,
InitParams| Method Detail |
|---|
public void processRender(WebuiRequestContext context)
throws java.lang.Exception
processRender in class UIComponentjava.lang.Exception
public void addUIGadget(UIGadget gadget,
int col,
int row)
gadget - UIGadget to add in UIDashboardContainercol - index of column to addrow - index of row to addUIGadget
public UIGadget getUIGadget(int col,
int row)
col - index of columnrow - index of row
null if specified position doesn't exist
UIGadget otherwiseUIGadgetpublic UIGadget getUIGadget(java.lang.String gadgetId)
gadgetId - applicationInstanceUniqueId_ of UIGadget
null if UIGadget doesn't existUIGadget otherwise- See Also:
UIGadgetpublic UIGadget removeUIGadget(java.lang.String gadgetId)
gadgetId - applicationInstanceUniqueId_ of UIGadget
UIGadget which deletednull otherwiseUIGadget
public UIGadget removeUIGadget(int col,
int row)
col - index of the columnrow - index of the row
UIGadget which deletednull otherwiseUIGadget
public void moveUIGadget(java.lang.String gadgetId,
int col,
int row)
gadgetId - applicationInstanceUniqueId_ of UIGadgetcol - index of destination columnrow - index of destination rowUIGadgetpublic UIContainer getColumn(int col)
col - index of column
UIContainer if the column existnull otherwiseUIContainerpublic boolean hasUIGadget()
false if and only if this UIDashboardContainer has no UIGadgettrue otherwise
public UIDashboardContainer setColumns(int num)
throws java.lang.Exception
num - total of columns
null if totals of columns is less than 1 or greater than MAX_COLUMN
this UIDashboardContainer otherwise
java.lang.Exception - if this UIDashboardContainer can not create new UIComponentpublic java.util.List<UIContainer> getColumns()
List of UIContainerList,
UIContainer
public Container createContainer(java.lang.String type,
java.lang.String id)
throws java.lang.Exception
type - type of Container, that is ROW_CONTAINER or COLUMN_CONTAINERid - id of Container
Container if UIDashboardContainer has specified type
null otherwise
java.lang.Exception - if toContainer(String) method throws an ExceptionContainer,
toContainer(String)public java.lang.String getWindowId()
UIPortlet
UIPortletpublic void setContainerTemplate(java.lang.String template)
public java.lang.String getContainerTemplate()
public void save()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||