A skeletal implementation of Component. Though it is OK to implement Component from scratch, this class simplifies some of the chores.
Name |
Description |
Return Data Type |
---|---|---|
|
Associates an annotation to this component. |
|
|
Adds an annotation to the specified proeprty of this component. |
|
|
Adds an event handler. |
|
|
Adds an event listener to specified event for this component. |
|
|
Add a map of annotations which is shared by other components. |
|
|
Adds a map of event handlers which is shared by other components. |
|
|
Appends a child to the end of all children. |
|
|
Initializes the properties (aka. members) and custom-attributes based on what are defined in the component definition. |
|
|
Clones the component. |
|
|
Returns whether the specified variable is defined. |
|
|
Detaches this component such that it won't belong to any page. |
|
|
Returns a read-only list of the name (String) of properties that are associated at least one annotation (never null). |
|
|
Returns a read-only list of the names (String) of the properties that are associated with the specified annotation (never null). |
|
|
Returns the annotation associated with the component, or null if not available. |
|
|
Returns the annotation associated with the definition of the specified property, or null if not available. |
|
|
Returns a read-only collection of all annotations associated with this component (never null). |
|
|
Returns a read-only collection of all annotations associated with the specified property (never null). |
|
|
Returns the custom attribute associated with this component, i.e., Component.COMPONENT_SCOPE. |
|
|
Returns the value of the specified custom attribute in the specified scope, or null if not defined. |
|
|
Returns all custom attributes associated with this component, i.e., Component.COMPONENT_SCOPE. |
|
|
Returns all custom attributes of the specified scope. |
|
|
Returns a live list of children. |
|
|
Returns the component definition of this component (never null). |
|
|
Returns the desktop of this component, or null if this component doesn't belong to any desktop. |
|
|
Returns the event handler of the specified name, or null if not found. |
|
|
Returns the extra controls that tell ZK how to handle this component specially. |
|
|
Returns a component of the specified ID in the same ID space. |
|
|
Returns a component of the specified ID in the same ID space, or null if not found. |
|
|
Returns an iterator for iterating listener for the specified event. |
|
|
Returns the namespace to store variables and functions belonging to the ID space of this component. |
|
|
Returns the page that this component belongs to, or null if it doesn't belong to any page. |
|
|
Returns the parent component, or null if this is the root component. |
|
|
Default: null (no propagation at all). |
|
|
Returns the root of the specified component. |
|
|
Returns the owner of the ID space that this component belongs to. |
|
|
Returns UUID (universal unique ID) which is unquie in the whole session. |
|
|
Returns the value of a variable defined in the namespace, or null if not defined or the value is null. |
|
|
Inserts a child before the reference child. |
|
|
Invalidates this component by setting the dirty flag such that it will be redraw the whole content later. |
|
|
Default: return true (allows to have children). |
|
|
Returns whether the event listener is available. |
|
|
Default: does nothing. |
|
|
Default: does nothing. |
|
|
Called when a new-created child is drawn. |
|
|
Notifies that an WrongValueException instance is thrown, and WrongValueException.getComponent() is this component. |
|
|
Includes the page returned by getMoldURI() and set the self attribute to be this component. |
|
|
Removes the custom attribute associated with this component, i.e., Component.COMPONENT_SCOPE. |
|
|
Removes the specified custom attribute in the specified scope. |
|
|
Removes a child. |
|
|
Removes an event listener. |
|
|
Causes a response (aka., a command) to be sent to the client. |
|
|
Notification that the session, which owns this component, has just been activated (aka., deserialized). |
|
|
Notification that the session, which owns this component, is about to be passivated (aka., serialized). |
|
|
Sets the custom attribute associated with this component, i.e., Component.COMPONENT_SCOPE. |
|
|
Sets the value of the specified custom attribute in the specified scope. |
|
|
Sets the component definition. |
|
|
Sets the page that this component belongs to. |
|
|
Sets the parent component. |
|
|
Sets a variable to the namespace. |
|
|
A special smart-update that update a value in boolean. |
|
|
A special smart-update that update a value in int. |
|
|
Smart-updates a property with the specified value. |
|
|
| |
|
Unsets a variable defined in the namespace. |
|