public class WebUIConfig
extends Container
Modifier and Type | Method and Description |
---|---|
void |
addToolbarButton(java.lang.String mode,
java.lang.String group,
java.lang.String buttonId,
boolean visible)
Adds a button in the toolbar.
|
void |
addToolbarButton(java.lang.String mode,
java.lang.String group,
java.lang.String buttonId,
java.util.HashMap<java.lang.String,java.lang.Object> attrs)
Adds a button in the toolbar.
|
void |
deleteToolbarButton(java.lang.String mode,
java.lang.String buttonId)
Deletes a button in the toolbar.
|
void |
deleteVToolbarButton(java.lang.String mode,
java.lang.String buttonId)
Deletes a button in the vtoolbar.
|
static WebUIConfig |
getDefaultWebUIConfig()
Gets the default WebUIConfig.
|
java.lang.String |
getObjectClass() |
static void |
getWebUIConfig(KVMapDef profileMap,
KVMapDef preferMap)
Gets the WebUIConfig according to profileMap and preferMap.
|
static WebUIConfig |
parse(JSONObject o) |
void |
setMenuGroupVisible(java.lang.String mode,
java.lang.String group,
boolean visible)
Sets whether the menu item by group name is visible.
|
void |
setMenuItemVisible(java.lang.String mode,
java.lang.String menuId,
boolean visible)
Sets whether the menu item is visible.
|
void |
setPanelVisible(java.lang.String mode,
java.lang.String panelId,
boolean visible)
Sets whether the panel is visible.
|
void |
setSideAreaVisible(java.lang.String mode,
boolean visible)
Sets whether the SideArea is visible.
|
void |
setToolbarButtonVisible(java.lang.String mode,
java.lang.String[] buttonIds,
boolean visible)
Sets whether the toolbar button is visible.
|
void |
setToolbarButtonVisible(java.lang.String mode,
java.lang.String buttonId,
boolean visible)
Sets whether the toolbar button is visible.
|
void |
setToolbarVisible(java.lang.String mode,
boolean visible)
Sets whether the toolbar is visible.
|
void |
setVisible(java.lang.String mode,
java.lang.String containerId,
java.lang.String id,
boolean visible)
Sets whether the UI object is visible.
|
void |
setVToolbarVisible(java.lang.String mode,
boolean visible)
Sets whether the vtoolbar is visible.
|
java.lang.Object |
toJSONObject() |
java.lang.String |
toString()
Gets the WebUIConfig String for UI
|
java.lang.Object |
toUIJSONObject()
Gets the WebUIConfig JSONObject for UI
|
public void addToolbarButton(java.lang.String mode, java.lang.String group, java.lang.String buttonId, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:group
- the group name in the toolbar. If group is null it means inserting a button in the toolbar.buttonId
- the button name in the toolbar.visible
- the visible status of the button.WRException
public void addToolbarButton(java.lang.String mode, java.lang.String group, java.lang.String buttonId, java.util.HashMap<java.lang.String,java.lang.Object> attrs) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:group
- the group name in the toolbar. If group is null it means inserting a button in the toolbar.buttonId
- the button name in the toolbar.attrs
- the button attributes. The key is defined in WebUIConfigConstant.java:WRException
public void setToolbarButtonVisible(java.lang.String mode, java.lang.String buttonId, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:buttonId
- the button name in the toolbar.visible
- the visible status of the button.WRException
public void setToolbarButtonVisible(java.lang.String mode, java.lang.String[] buttonIds, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:buttonIds
- the button names in the toolbar.visible
- the visible status of the button.WRException
public void setToolbarVisible(java.lang.String mode, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:visible
- the visible status of the toolbar.WRException
public void setVToolbarVisible(java.lang.String mode, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:visible
- the visible status of the vtoolbar.WRException
public void setMenuItemVisible(java.lang.String mode, java.lang.String menuId, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:menuId
- the menu name in the menu.visible
- the visible status of the item.WRException
public void setMenuGroupVisible(java.lang.String mode, java.lang.String group, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:group
- the menu group name in the menu.visible
- the visible status of the item.WRException
public void setPanelVisible(java.lang.String mode, java.lang.String panelId, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:panelId
- the panel name in the sideArea.visible
- the visible status of the item.WRException
public void setVisible(java.lang.String mode, java.lang.String containerId, java.lang.String id, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:containerId
- the UI ojbect container name. id
- the UI object name.visible
- the visible status of the item.WRException
public void deleteToolbarButton(java.lang.String mode, java.lang.String buttonId) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:buttonId
- the button name in the toolbar.WRException
public void deleteVToolbarButton(java.lang.String mode, java.lang.String buttonId) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:buttonId
- the button name in the vtoolbar.WRException
public void setSideAreaVisible(java.lang.String mode, boolean visible) throws WRException
mode
- the mode name which is defined in WebUIConfigConstant.java:visible
- the visible status of the SideArea.WRException
public static WebUIConfig parse(JSONObject o)
public java.lang.Object toJSONObject() throws JSONException
JSONException
public static WebUIConfig getDefaultWebUIConfig()
public java.lang.String getObjectClass()
public java.lang.Object toUIJSONObject() throws JSONException
JSONException
public java.lang.String toString()
public static void getWebUIConfig(KVMapDef profileMap, KVMapDef preferMap)
profileMap
- preferMap
-