public interface CockpitAdminService
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMINMODE_SCLASS |
static String |
ADMINMODE_SYMBOLIC_SCLASS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReceiveFrom(WidgetSocket inputSocket,
WidgetSocket outputSocket)
Checks if outputSocket from srcWidget can be connected with inputSocket from targetWidget according to data type.
|
boolean |
canReceiveFrom(WidgetSocket inputSocket,
Widget targetWidget,
WidgetSocket outputSocket,
Widget srcWidget)
Checks if outputSocket from srcWidget can be connected with inputSocket from targetWidget according to data type.
|
org.zkoss.zul.Window |
createSettingsWizard(org.zkoss.zk.ui.Component parent,
Widgetslot widgetslot,
Widget widget,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> closeCallback)
Creates a popup of settings for given widget
|
String |
getWidgetToolbarColor() |
boolean |
isAdminMode() |
boolean |
isAdminModePermitted() |
boolean |
isInClipboard(Widget widget)
Checks if given widget is already in the clipboard
|
boolean |
isShowConnectionsFlagEnabled()
Checks showConnections flag status
|
boolean |
isSymbolicAdminFlagEnabled() |
boolean |
isSymbolicAdminMode() |
void |
moveWidgetToClipboard(Widget widget)
Adds the specified widget to the clipboard and removes it from the widget tree.
|
void |
refreshCockpit()
Clears the widget session cache, which results in recalculating the widget tree after the next page refresh.
|
void |
removeWidgetFromClipboard(Widget widget)
Removes a widget from the widget clipboard, if it's present there.
|
void |
renderWidgetClipboard(org.zkoss.zk.ui.Component clipboardComponent,
org.zkoss.zul.Caption caption)
Render content of widget clipboard.
|
org.zkoss.zk.ui.Component |
renderWidgetDefinitionInfo(org.zkoss.zk.ui.Component parent,
WidgetDefinition wiDef)
Renders an area of widget definition information
|
void |
setAdminMode(boolean adminMode,
org.zkoss.zk.ui.Component ref)
Enable or disable the admin mode.
|
void |
setShowConnectionsFlagEnabled(boolean enabled)
Sets showConnections flag.
|
void |
setSymbolicAdminFlag(boolean enabled)
Sets symbolic adminmode flag.
|
void |
setWidgetToolbarColor(String color,
org.zkoss.zk.ui.Component ref)
Sets a new Color to the toolbar.
|
void |
showAddWidgetWizard(org.zkoss.zk.ui.Component ref,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> selectListener)
Opens a wizard for adding a widget to a slot.
|
void |
showGroupWidgetWizard(Widget widget,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> onCloseListener)
Opens a wizard where the admin user can group a widget and its children into one single widget.
|
void |
showWidgetConnectionWizard(Widget source,
Widget target,
org.zkoss.zk.ui.Component ref)
Opens a wizard where a user can connect two widgets.
|
void |
showWidgetMultiConnectionWizard(Widget widget,
org.zkoss.zk.ui.Component ref)
Shows a wizard for configuration of input/output sockets.
|
void |
toggleAdminMode(org.zkoss.zk.ui.Component ref)
Toggles backoffice's admin mode
|
static final String ADMINMODE_SCLASS
static final String ADMINMODE_SYMBOLIC_SCLASS
void setAdminMode(boolean adminMode,
org.zkoss.zk.ui.Component ref)
adminMode - True, if adminmode should be enable, false otherwise.ref - An arbitrary Component which is attached to the current page.boolean isAdminMode()
boolean isAdminModePermitted()
boolean isSymbolicAdminMode()
boolean isSymbolicAdminFlagEnabled()
void setSymbolicAdminFlag(boolean enabled)
enabled - indicates whether symbolic admin mode should be enabledvoid removeWidgetFromClipboard(Widget widget)
widget - The widget that should be removed.boolean isInClipboard(Widget widget)
widget - The widget that should be checkedvoid moveWidgetToClipboard(Widget widget)
widget - which should be moved to clipboardString getWidgetToolbarColor()
void showAddWidgetWizard(org.zkoss.zk.ui.Component ref,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> selectListener)
ref - An arbitrary Component which is attached to the current page.selectListener - An EventListener which is called when a widget has been selected in the wizard.void renderWidgetClipboard(org.zkoss.zk.ui.Component clipboardComponent,
org.zkoss.zul.Caption caption)
clipboardComponent - clipborad componentcaption - clipborad captionvoid showGroupWidgetWizard(Widget widget, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> onCloseListener)
widget - The root widget of the new widget group.onCloseListener - An EventListener which is called when the wizard is closed by the user.void showWidgetConnectionWizard(Widget source, Widget target, org.zkoss.zk.ui.Component ref)
source - The source widget, i.e. the widget that may fire the event.target - The target widget, i.e. the widget that should receive the event.ref - An arbitrary Component which is attached to the current page.void setWidgetToolbarColor(String color, org.zkoss.zk.ui.Component ref)
color - the new colorref - An arbitrary Component which is attached to the current page.boolean canReceiveFrom(WidgetSocket inputSocket, Widget targetWidget, WidgetSocket outputSocket, Widget srcWidget)
inputSocket - - WidgetSocket represents input socketoutputSocket - - WidgetSocket represents output socketsrcWidget - - (@link Widget represents source widgettargetWidget - - (@link Widget represents target widgetboolean canReceiveFrom(WidgetSocket inputSocket, WidgetSocket outputSocket)
inputSocket - - WidgetSocket represents input socketoutputSocket - - WidgetSocket represents output socketvoid refreshCockpit()
org.zkoss.zul.Window createSettingsWizard(org.zkoss.zk.ui.Component parent,
Widgetslot widgetslot,
Widget widget,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> closeCallback)
parent - a component parent to which a component is appendedwidgetslot - a slot of the widgetwidget - a widget from which settings to display are takencloseCallback - a function which is called when settings popup is being closevoid showWidgetMultiConnectionWizard(Widget widget, org.zkoss.zk.ui.Component ref)
widget - widget under configurationref - parent componentorg.zkoss.zk.ui.Component renderWidgetDefinitionInfo(org.zkoss.zk.ui.Component parent,
WidgetDefinition wiDef)
parent - a component parent to which a component is appendedwiDef - a widget definition containing information to displayvoid setShowConnectionsFlagEnabled(boolean enabled)
enabled - - value for showConnections flagboolean isShowConnectionsFlagEnabled()
void toggleAdminMode(org.zkoss.zk.ui.Component ref)
ref - parent componentCopyright © 2018. All rights reserved.