public class WebUIConfig
extends com.jinfonet.web.ui.config.Container
| Modifier and Type | Method and Description |
|---|---|
void |
addToolbarButton(String mode,
String group,
String buttonId,
boolean visible)
Adds a button in the toolbar.
|
void |
addToolbarButton(String mode,
String group,
String buttonId,
HashMap<String,Object> attrs)
Adds a button in the toolbar.
|
void |
deleteToolbarButton(String mode,
String buttonId)
Deletes a button in the toolbar.
|
void |
deleteVToolbarButton(String mode,
String buttonId)
Deletes a button in the vtoolbar.
|
static WebUIConfig |
getDefaultWebUIConfig()
Gets the default WebUIConfig.
|
String |
getObjectClass() |
static void |
getWebUIConfig(com.jinfonet.web.beans.KVMapDef profileMap,
com.jinfonet.web.beans.KVMapDef preferMap)
Gets the WebUIConfig according to profileMap and preferMap.
|
static WebUIConfig |
parse(com.jinfonet.web.util.json.JSONObject o) |
void |
setMenuGroupVisible(String mode,
String group,
boolean visible)
Sets whether the menu item by group name is visible.
|
void |
setMenuItemVisible(String mode,
String menuId,
boolean visible)
Sets whether the menu item is visible.
|
void |
setPanelVisible(String mode,
String panelId,
boolean visible)
Sets whether the panel is visible.
|
void |
setSideAreaVisible(String mode,
boolean visible)
Sets whether the SideArea is visible.
|
void |
setToolbarButtonVisible(String mode,
String[] buttonIds,
boolean visible)
Sets whether the toolbar button is visible.
|
void |
setToolbarButtonVisible(String mode,
String buttonId,
boolean visible)
Sets whether the toolbar button is visible.
|
void |
setToolbarVisible(String mode,
boolean visible)
Sets whether the toolbar is visible.
|
void |
setVisible(String mode,
String containerId,
String id,
boolean visible)
Sets whether the UI object is visible.
|
void |
setVToolbarVisible(String mode,
boolean visible)
Sets whether the vtoolbar is visible.
|
Object |
toJSONObject() |
String |
toString()
Gets the WebUIConfig String for UI
|
Object |
toUIJSONObject()
Gets the WebUIConfig JSONObject for UI
|
public void addToolbarButton(String mode, String group, String buttonId, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void addToolbarButton(String mode, String group, String buttonId, HashMap<String,Object> attrs) throws com.jinfonet.web.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:com.jinfonet.web.WRExceptionpublic void setToolbarButtonVisible(String mode, String buttonId, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void setToolbarButtonVisible(String mode, String[] buttonIds, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void setToolbarVisible(String mode, boolean visible) throws com.jinfonet.web.WRException
mode - the mode name which is defined in WebUIConfigConstant.java:visible - the visible status of the toolbar.com.jinfonet.web.WRExceptionpublic void setVToolbarVisible(String mode, boolean visible) throws com.jinfonet.web.WRException
mode - the mode name which is defined in WebUIConfigConstant.java:visible - the visible status of the vtoolbar.com.jinfonet.web.WRExceptionpublic void setMenuItemVisible(String mode, String menuId, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void setMenuGroupVisible(String mode, String group, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void setPanelVisible(String mode, String panelId, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void setVisible(String mode, String containerId, String id, boolean visible) throws com.jinfonet.web.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.com.jinfonet.web.WRExceptionpublic void deleteToolbarButton(String mode, String buttonId) throws com.jinfonet.web.WRException
mode - the mode name which is defined in WebUIConfigConstant.java:buttonId - the button name in the toolbar.com.jinfonet.web.WRExceptionpublic void deleteVToolbarButton(String mode, String buttonId) throws com.jinfonet.web.WRException
mode - the mode name which is defined in WebUIConfigConstant.java:buttonId - the button name in the vtoolbar.com.jinfonet.web.WRExceptionpublic void setSideAreaVisible(String mode, boolean visible) throws com.jinfonet.web.WRException
mode - the mode name which is defined in WebUIConfigConstant.java:visible - the visible status of the SideArea.com.jinfonet.web.WRExceptionpublic static WebUIConfig parse(com.jinfonet.web.util.json.JSONObject o)
public Object toJSONObject() throws com.jinfonet.web.util.json.JSONException
toJSONObject in interface com.jinfonet.web.util.json.JSONObject.JSONObjectabletoJSONObject in class com.jinfonet.web.ui.config.Containercom.jinfonet.web.util.json.JSONExceptionpublic static WebUIConfig getDefaultWebUIConfig()
public String getObjectClass()
public Object toUIJSONObject() throws com.jinfonet.web.util.json.JSONException
toUIJSONObject in interface com.jinfonet.web.ui.config.UIObjecttoUIJSONObject in class com.jinfonet.web.ui.config.Containercom.jinfonet.web.util.json.JSONExceptionpublic String toString()
public static void getWebUIConfig(com.jinfonet.web.beans.KVMapDef profileMap,
com.jinfonet.web.beans.KVMapDef preferMap)
profileMap - preferMap - © insightsoftware. All rights reserved.