A skeletal implementation for HTML based components. It simplifies to implement methods common to HTML based components.
Event Name |
Event Type |
---|---|
|
Description: Represents an event cause by user's dragging and dropping a component. |
Property |
Description |
Data Type |
Default Value |
---|---|---|---|
|
Sets "true" or "false" to denote whether a component is Value: |
|
|
|
Sets "true" or "false" to denote whether a component is droppable, or a list of identifiers of draggable types of objects that could be droped to this component. Value:
|
|
|
|
Sets the height. |
|
|
|
|
|
|
|
Sets the CSS class. |
|
|
|
Sets the CSS style. |
|
|
|
Sets the text as the |
|
|
|
Sets the top position. |
|
|
|
Sets the width. |
|
|
|
Sets the Z index. |
|
|
Name |
Description |
Return Data Type |
---|---|---|
|
Adds an event listener to specified event for this component. |
|
|
Sets focus to this element. |
|
|
Returns the interior attributes for generating the inner HTML tag; never return null. Used only by component developers. Default: empty string. Refer to |
|
|
Returns the exterior attributes for generating the enclosing HTML tag; never return null. Used only by component developers. Default: Generates the You have to call both For simple components that all attributes are put on the outset HTML element, all you need is as follows.
If you want to put attributes in a nested HTML element, you shall use the following pattern. Notice: if
Note: This class handles non-deferrable event listeners automatically. However, you have to invoke appendAsapAttr for each event the component handles in
Theoretically, you could put any attributes in either |
|
|
Removes an event listener. |
|