public class PropertyEditorCustom extends PropertyEditorBase implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
| Modifier and Type | Field and Description |
|---|---|
protected org.zkoss.zul.Bandbox |
bandbox |
protected org.zkoss.zul.Bandpopup |
bandpopup |
component| Modifier | Constructor and Description |
|---|---|
protected |
PropertyEditorCustom() |
protected |
PropertyEditorCustom(String template) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose()
Invoked when the associated bandbox is closed;
|
protected void |
doOpen()
Invoked when the associated bandbox is opened.
|
protected Object |
getValue()
Logic to return the value from the editor component.
|
protected void |
init(UIElementBase target,
PropertyInfo propInfo,
PropertyGrid propGrid)
For custom property editors, if a property getter is specified, the value returned by the
getter is the real target.
|
void |
onEvent(org.zkoss.zk.ui.event.Event event)
Capture the bandbox onOpen event and invokes doOpen or doClose depending on the bandbox
state.
|
void |
setFocus()
Sets focus to the editor component.
|
protected void |
setValue(Object value)
Logic to set the value in the editor component.
|
commit, getComponent, getPropInfo, getTarget, hasChanged, revert, setWrongValueException, setWrongValueMessage, updateValueprotected final org.zkoss.zul.Bandbox bandbox
protected final org.zkoss.zul.Bandpopup bandpopup
protected void doOpen()
protected void doClose()
protected void init(UIElementBase target, PropertyInfo propInfo, PropertyGrid propGrid)
init in class PropertyEditorBasetarget - Target element.propInfo - The property information.propGrid - The parent property grid.public void setFocus()
PropertyEditorBasesetFocus in class PropertyEditorBaseprotected Object getValue()
PropertyEditorBasegetValue in class PropertyEditorBaseprotected void setValue(Object value)
PropertyEditorBasesetValue in class PropertyEditorBasevalue - Value for the editor component.Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.