public class PropertyGrid
extends org.zkoss.zul.Window
| Constructor and Description |
|---|
PropertyGrid() |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyEditorBase |
addPropertyEditor(PropertyInfo propInfo,
boolean append)
Adds a property editor to the grid for the specified property definition.
|
protected boolean |
commitChanges(boolean commit)
Commit or revert all pending changes to the target object.
|
static PropertyGrid |
create(UIElementBase target,
org.zkoss.zk.ui.Component parent)
Creates a property grid for the given target UI element.
|
static PropertyGrid |
create(UIElementBase target,
org.zkoss.zk.ui.Component parent,
boolean embedded)
Creates a property grid for the given target UI element.
|
protected PropertyEditorBase |
findEditor(String propName)
Returns the editor associated with the named property, or null if none found.
|
boolean |
getPropertiesModified() |
UIElementBase |
getTarget()
Returns the target UI element.
|
boolean |
hasPendingChanges()
Returns true if there are uncommitted edits.
|
void |
onChange(org.zkoss.zk.ui.event.Event event)
Handles change events from property editors.
|
void |
onClick$btnApply()
Clicking the apply button commits any pending edits.
|
void |
onClick$btnCancel()
Clicking the cancel button cancels any pending edits and, if embedded mode is not active,
closes the dialog.
|
void |
onClick$btnOK()
Clicking the OK button commits any pending edits and closes the dialog.
|
void |
onClick$btnRestore()
Clicking the restore button cancels any pending edits.
|
void |
onClose()
Overrides the onClose method to prevent dialog closure when in embedded mode.
|
void |
onSelect(org.zkoss.zk.ui.event.Event event)
Handles the selection of a row in the property grid.
|
void |
setTarget(UIElementBase target)
Sets the target UI element for the property grid.
|
beforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onModal, onPageDetached, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisiblegetContext, getCtrlKeys, getPopup, getTooltip, 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, 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, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, 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 PropertyGrid create(UIElementBase target, org.zkoss.zk.ui.Component parent) throws Exception
target - UI element whose properties are to be edited.parent - Parent component for property grid (may be null).Exception - Unspecified exception.public static PropertyGrid create(UIElementBase target, org.zkoss.zk.ui.Component parent, boolean embedded) throws Exception
target - UI element whose properties are to be edited.parent - Parent component for property grid (may be null).embedded - If true, the property grid is embedded within another component.Exception - Unspecified exception.public void setTarget(UIElementBase target)
target - UI element whose properties are to be edited.protected PropertyEditorBase addPropertyEditor(PropertyInfo propInfo, boolean append)
propInfo - Property definition information.append - If true, the property editor is appended to the end of the grid. Otherwise, it
is inserted at the beginning.protected boolean commitChanges(boolean commit)
commit - True to commit. False to revert.protected PropertyEditorBase findEditor(String propName)
propName - The property name.public boolean hasPendingChanges()
public boolean getPropertiesModified()
public UIElementBase getTarget()
public void onClick$btnCancel()
public void onClick$btnApply()
public void onClick$btnRestore()
public void onClick$btnOK()
public void onClose()
onClose in class org.zkoss.zul.Windowpublic void onSelect(org.zkoss.zk.ui.event.Event event)
event - Row selection event.public void onChange(org.zkoss.zk.ui.event.Event event)
event - Change event.Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.