public class DesignContextMenu
extends org.zkoss.zul.Menupopup
implements org.zkoss.zk.ui.IdSpace
| Constructor and Description |
|---|
DesignContextMenu() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Avoid exception if menu not attached to a desktop.
|
static DesignContextMenu |
create()
Creates an instance of the design context menu.
|
static DesignContextMenu |
getInstance()
Returns an instance of the design context menu.
|
void |
onClick$mnuAbout()
Invoke owner's about dialog.
|
void |
onClick$mnuAdd()
Present Add Component dialog containing valid choices for this owner.
|
void |
onClick$mnuCopy()
Copies the XML layout with the owner as the root node to the clipboard.
|
void |
onClick$mnuCut()
Copies the XML layout with the owner as the root node to the clipboard, then deletes the
owner.
|
void |
onClick$mnuDelete()
Remove owner from the layout.
|
void |
onClick$mnuPaste()
Paste the XML layout in the clipboard into the layout with the owner as the parent node.
|
void |
onClick$mnuProperties()
Invoke owner's property editor.
|
void |
onClick$mnuView()
Display the clipboard viewer.
|
void |
onClipboardChange()
Called when clipboard contents changes.
|
void |
onOpen(org.zkoss.zk.ui.event.Event event)
Sets the context menu's owner based on the UI element that invoked the menu.
|
void |
setListener(org.zkoss.zk.ui.Component listener)
Sets the component that is to receive layout change events.
|
void |
setOwner(UIElementBase owner)
Sets the context menu's owner.
|
static void |
updateStates(UIElementBase ele,
org.zkoss.zk.ui.ext.Disable add,
org.zkoss.zk.ui.ext.Disable delete,
org.zkoss.zk.ui.ext.Disable copy,
org.zkoss.zk.ui.ext.Disable cut,
org.zkoss.zk.ui.ext.Disable paste,
org.zkoss.zk.ui.ext.Disable properties,
org.zkoss.zk.ui.ext.Disable about)
Updates states on input elements (typically buttons or menu items) according to state of the
specified UI element.
|
clone, getContext, getCtrlKeys, getPopup, getTooltip, renderProperties, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltipfocus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, willPassivate, willPassivate, willSerialize, willSerializefinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static DesignContextMenu getInstance()
public static DesignContextMenu create()
public static void updateStates(UIElementBase ele, org.zkoss.zk.ui.ext.Disable add, org.zkoss.zk.ui.ext.Disable delete, org.zkoss.zk.ui.ext.Disable copy, org.zkoss.zk.ui.ext.Disable cut, org.zkoss.zk.ui.ext.Disable paste, org.zkoss.zk.ui.ext.Disable properties, org.zkoss.zk.ui.ext.Disable about)
ele - A UI element.add - Add input element.delete - Delete input element.copy - Copy input element.cut - Cut input element.paste - Paste input element.properties - Properties input element.about - About input element.public void close()
close in class org.zkoss.zul.Popuppublic void setOwner(UIElementBase owner)
owner - Menu's owner.public void setListener(org.zkoss.zk.ui.Component listener)
listener - Event listener.public void onOpen(org.zkoss.zk.ui.event.Event event)
event - The open event.public void onClick$mnuProperties()
public void onClick$mnuAbout()
throws Exception
Exception - Unspecified exception.public void onClick$mnuDelete()
public void onClick$mnuAdd()
public void onClick$mnuCopy()
throws Exception
Exception - Unspecified exception.public void onClick$mnuCut()
throws Exception
Exception - Unspecified exception.public void onClick$mnuPaste()
throws Exception
Exception - Unspecified exception.public void onClick$mnuView()
throws Exception
Exception - Unspecified exception.public void onClipboardChange()
Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.