public abstract class UIElementZKBase extends UIElementBase
autoEnable, autoHide, log, maxChildren| Constructor and Description |
|---|
UIElementZKBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(boolean activate)
Checks for a pending mask operation when a UI element is activated.
|
protected void |
afterMoveTo(int index)
Provides a default behavior for resequencing this element relative to its siblings.
|
protected void |
applyColor(Object cmpt)
Applies the current color setting to the target component.
|
protected void |
applyHint(Object cmpt)
Applies the current hint text to the target component.
|
void |
associateComponent(org.zkoss.zk.ui.Component component)
Associates the specified ZK component with this UI element.
|
protected void |
bind()
Override to bind wrapped components to the UI.
|
protected org.zkoss.zk.ui.Component |
createFromTemplate()
Create wrapped component(s) from a template (a zul page).
|
protected org.zkoss.zk.ui.Component |
createFromTemplate(String template)
Create wrapped component(s) from specified template (a zul page).
|
protected org.zkoss.zk.ui.Component |
createFromTemplate(String template,
org.zkoss.zk.ui.Component parent,
Object controller)
Create wrapped component(s) from specified template (a zul page).
|
void |
editProperties()
Invokes the property grid with this element as its target.
|
protected void |
fullSize(org.zkoss.zk.ui.HtmlBasedComponent cmpt)
Set width and height of a component to 100%.
|
static UIElementBase |
getAssociatedUIElement(org.zkoss.zk.ui.Component component)
Returns the UI element that registered the ZK component.
|
protected boolean |
getEnableDesignModeMask()
Returns true if the design mode mask is to be used.
|
org.zkoss.zk.ui.Component |
getInnerComponent()
Returns the innermost wrapped ZK component.
|
org.zkoss.zk.ui.Component |
getOuterComponent()
Returns the outermost wrapped ZK component.
|
UIElementZKBase |
getParent()
Returns the parent of this element.
|
protected String |
getTemplateUrl()
Returns the URL of the default template to use in createFromTemplate.
|
protected boolean |
hasVisibleElements(org.zkoss.zk.ui.Component comp)
Returns true if any associated UI elements in the component subtree are visible.
|
protected void |
moveChild(org.zkoss.zk.ui.Component child,
int index)
Moves a child to the position specified by an index.
|
protected void |
setDesignContextMenu(org.zkoss.zk.ui.Component component,
org.zkoss.zul.Menupopup contextMenu)
Apply/remove the design context menu to/from the specified component.
|
protected void |
setDesignContextMenu(org.zkoss.zul.Menupopup contextMenu)
Apply/remove the design context menu to/from ZK components.
|
void |
setDesignMode(boolean designMode)
Augments the parent method by activating the associated design context menu when design mode
is activated.
|
protected void |
setEnableDesignModeMask(boolean value)
Sets whether to use the design mode mask.
|
void |
setInnerComponent(Object value)
Augments the parent method by automatically associating the component with this UI element.
|
void |
setOuterComponent(Object value)
Augments the parent method by automatically associating the component with this UI element.
|
protected void |
swapChildren(org.zkoss.zk.ui.Component child1,
org.zkoss.zk.ui.Component child2)
Swaps the position of the two child components.
|
protected void |
unbind()
Override to unbind wrapped components from the UI.
|
protected void |
updateVisibility(boolean visible,
boolean activated)
Provides a default implementation for ZK-derived UI components by setting the visibility of
the outer component.
|
about, activateChildren, addChild, addChild, afterAddChild, afterInitialize, afterParentChanged, afterRemoveChild, applyColor, applyHint, beforeAddChild, beforeInitialize, beforeParentChanged, beforeRemoveChild, bringToFront, canAcceptChild, canAcceptChild, canAcceptChild, canAcceptChild, canAcceptParent, canAcceptParent, canAcceptParent, canAcceptParent, destroy, findChildElement, getAncestor, getChild, getChild, getChildCount, getChildren, getColor, getDefinition, getDisplayName, getEventManager, getFirstChild, getFirstVisibleChild, getHint, getIndex, getInstanceName, getLastChild, getLastVisibleChild, getNextSibling, getPropEditClass, getRejectReason, getRoot, getSerializableChildren, hasAncestor, hasChild, indexOfChild, isActivated, isContainer, isDesignMode, isEnabled, isLocked, isVisible, raise, raise, registerAllowedChildClass, registerAllowedParentClass, remove, removeChild, removeChildren, setColor, setDefinition, setDefinition, setEnabled, setHint, setIndex, setLocked, setParent, setRejectReason, setVisible, updateParentState, updateState, updateVisibilitypublic static UIElementBase getAssociatedUIElement(org.zkoss.zk.ui.Component component)
component - The ZK component of interest.public void associateComponent(org.zkoss.zk.ui.Component component)
component - ZK component to associate.public void setOuterComponent(Object value)
setOuterComponent in class UIElementBasevalue - The outermost wrapped UI component.public void setInnerComponent(Object value)
setInnerComponent in class UIElementBasevalue - The innermost wrapped UI component.protected void updateVisibility(boolean visible,
boolean activated)
updateVisibility in class UIElementBasevisible - The current visibility state.activated - The current activation state.protected String getTemplateUrl()
protected org.zkoss.zk.ui.Component createFromTemplate()
protected org.zkoss.zk.ui.Component createFromTemplate(String template)
template - URL of zul page that will serve as a template. If a path is not specified, it
is derived from the package. If the URL is not specified, the template name is
obtained from getTemplateUrl.protected org.zkoss.zk.ui.Component createFromTemplate(String template, org.zkoss.zk.ui.Component parent, Object controller)
template - URL of zul page that will serve as a template. If the URL is not specified,
the template name is obtained from getTemplateUrl.parent - The component that will become the parent.controller - If specified, events and variables are autowired to the controller.protected void moveChild(org.zkoss.zk.ui.Component child,
int index)
child - Child to moveindex - Move child to this position.protected void swapChildren(org.zkoss.zk.ui.Component child1,
org.zkoss.zk.ui.Component child2)
child1 - The first child.child2 - The second child.protected void afterMoveTo(int index)
afterMoveTo in class UIElementBaseindex - New position for element.protected void fullSize(org.zkoss.zk.ui.HtmlBasedComponent cmpt)
cmpt - Componentpublic void activate(boolean activate)
activate in class UIElementBaseactivate - The activate status.public void setDesignMode(boolean designMode)
setDesignMode in class UIElementBasedesignMode - If true, design mode is activated.protected void setDesignContextMenu(org.zkoss.zul.Menupopup contextMenu)
contextMenu - The design menu if design mode is activated, or null if it is not.protected void setDesignContextMenu(org.zkoss.zk.ui.Component component,
org.zkoss.zul.Menupopup contextMenu)
component - Component to which to apply/remove the design context menu.contextMenu - The design menu if design mode is activated, or null if it is not.protected void bind()
UIElementBasebind in class UIElementBaseprotected void unbind()
UIElementBaseunbind in class UIElementBasepublic void editProperties()
editProperties in class UIElementBasepublic org.zkoss.zk.ui.Component getInnerComponent()
getInnerComponent in class UIElementBasepublic org.zkoss.zk.ui.Component getOuterComponent()
getOuterComponent in class UIElementBasepublic UIElementZKBase getParent()
UIElementBasegetParent in class UIElementBaseprotected void applyColor(Object cmpt)
applyColor in class UIElementBasecmpt - Component to receive the color setting.protected void applyHint(Object cmpt)
applyHint in class UIElementBasecmpt - Component to receive the hint text.protected boolean getEnableDesignModeMask()
protected void setEnableDesignModeMask(boolean value)
value - True to enable the design mode mask.protected boolean hasVisibleElements(org.zkoss.zk.ui.Component comp)
comp - Component subtree to examine.Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.