|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectAbstractTagState
AbstractAttributeState
AbstractHtmlState
public class AbstractHtmlState
This class extends the AbstractAttributeState to add support for HTML.
This class add support for the id, style, and class
attributes. In addition, there is a Map that supports the JavaScript
event attributes.
| Field Summary | |
|---|---|
static int |
ATTR_JAVASCRIPT
Define the Attribute Map for the JavaScript event handler attributes. |
String |
id
The HTML id attribute. |
String |
style
The HTML style attribute. |
String |
styleClass
The HTML class attribute. |
| Fields inherited from class AbstractAttributeState |
|---|
ATTR_GENERAL, EMPTY_STRING |
| Constructor Summary | |
|---|---|
AbstractHtmlState()
|
|
| Method Summary | |
|---|---|
void |
clear()
Initialize the state. |
HashMap |
getEventMap()
Return the Map Containing the JavaScript entries. |
Map |
selectMap(int type,
boolean createIfNull)
This method will return the map that represents the passed in type. |
| Methods inherited from class AbstractAttributeState |
|---|
getAttribute, getGeneralAttributeMap, registerAttribute, registerAttribute, removeAttribute |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ATTR_JAVASCRIPT
public String id
id attribute.
public String style
style attribute.
public String styleClass
class attribute.
| Constructor Detail |
|---|
public AbstractHtmlState()
| Method Detail |
|---|
public HashMap getEventMap()
Map of the JavaScript attributes.public void clear()
clear in class AbstractAttributeState
public Map selectMap(int type,
boolean createIfNull)
type. The boolean flag
createIfNull indicates that the map should be created or not if it's null. This
class defines two maps defined by @see #ATTR_STYLE and ATTR_JAVASCRIPT
selectMap in class AbstractAttributeStatetype - integer type indentifying the map to be created.createIfNull - boolean flag indicating if the map should be created if it doesn't exist.
ATTR_JAVASCRIPT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||