public interface ComponentMarkingUtils
| Modifier and Type | Method and Description |
|---|---|
void |
markComponent(org.zkoss.zk.ui.Component parent,
org.zkoss.zk.ui.Component component,
String markName)
Whenever a component created by renderer that widget controller is not aware of, but there is a logic related with
it, a renderer may mark it, so that then controller may assign a logic to it.
|
void |
markComponent(org.zkoss.zk.ui.Component parent,
org.zkoss.zk.ui.Component component,
String markName,
Object markData)
Whenever a component created by renderer that widget controller is not aware of, but there is a logic related with
it, a renderer may mark it, so that then controller may assign a logic to it.
|
void |
moveMarkedComponents(org.zkoss.zk.ui.Component source,
org.zkoss.zk.ui.Component target)
Copies the marked components data structure from source component to target component and removes it from the source
component
|
void |
registerMarkedComponentsListener(org.zkoss.zk.ui.Component parent,
String markName,
String eventName,
MarkedEventListener listener)
Whenever a component created by renderer that widget controller is not aware of, but there is a logic related with
it, a renderer may mark it, so that then controller may assign a logic to it.
|
void markComponent(org.zkoss.zk.ui.Component parent,
org.zkoss.zk.ui.Component component,
String markName)
parent - parent component which will get a data structure of all marked components for every mark; it should be the
same object as the one passed as parent to render methodcomponent - component to be markedmarkName - name of the mark - this value should be known by controllerregisterMarkedComponentsListener(Component, String, String, MarkedEventListener)void markComponent(org.zkoss.zk.ui.Component parent,
org.zkoss.zk.ui.Component component,
String markName,
Object markData)
parent - parent component which will get a data structure of all marked components for every mark; it should be the
same object as the one passed as parent to render methodcomponent - component to be markedmarkName - name of the mark - this value should be known by controllermarkData - any data object that may be needed by controller to perform a logicregisterMarkedComponentsListener(Component, String, String, MarkedEventListener)void registerMarkedComponentsListener(org.zkoss.zk.ui.Component parent,
String markName,
String eventName,
MarkedEventListener listener)
To assure that a particular logic is registered as listener is registered only once, it may be wrapped with
Identifiable interface. If a listener provided is of type
Identifiable and a listener with same id is already registered, then the old
one will be removed before new is registered.
parent - parent component to which marked children logic should be assignedmarkName - name of the markeventName - UI event name which should trigger the logiclistener - whenever an event takes place, a consumer will be asked with initial event and with data retrieved from a
componentIdentifiablevoid moveMarkedComponents(org.zkoss.zk.ui.Component source,
org.zkoss.zk.ui.Component target)
source - component from which the marked components should be copied and removedtarget - component to which the marked components should be copied toCopyright © 2018. All rights reserved.