BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.rendering
Class AbstractHtmlState

java.lang.Object
  extended by com.bea.wlw.netui.tags.rendering.AbstractTagState
      extended by com.bea.wlw.netui.tags.rendering.AbstractAttributeState
          extended by com.bea.wlw.netui.tags.rendering.AbstractHtmlState
Direct Known Subclasses:
AnchorTag.State, BodyTag.State, CaptionTag.State, DivTag.State, FormTag.State, ImageTag.State, InputBooleanTag.State, InputFileTag.State, InputHiddenTag.State, InputImageTag.State, InputSubmitTag.State, InputTextTag.State, LabelTag.State, OptionTag.State, SelectTag.State, SpanTag.State, TableTag.State, TdTag.State, TextAreaTag.State, TrTag.State

public class AbstractHtmlState
extends AbstractAttributeState

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 com.bea.wlw.netui.tags.rendering.AbstractAttributeState
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, 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 com.bea.wlw.netui.tags.rendering.AbstractAttributeState
getAttribute, getExpressionAttributeMap, getGeneralAttributeMap, registerAttribute, registerAttribute, removeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_JAVASCRIPT

public static final int ATTR_JAVASCRIPT
Define the Attribute Map for the JavaScript event handler attributes.

See Also:
Constant Field Values

id

public String id
The HTML id attribute.


style

public String style
The HTML style attribute.


styleClass

public String styleClass
The HTML class attribute.

Constructor Detail

AbstractHtmlState

public AbstractHtmlState()
Method Detail

getEventMap

public HashMap getEventMap()
Return the Map Containing the JavaScript entries.

Returns:
a Map of the JavaScript attributes.

clear

public void clear()
Initialize the state.

Overrides:
clear in class AbstractAttributeState

selectMap

public Map selectMap(int type,
                     boolean createIfNull)
This method will return the map that represents the passed in 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

Overrides:
selectMap in class AbstractAttributeState
Parameters:
type - integer type indentifying the map to be created.
createIfNull - boolean flag indicating if the map should be created if it doesn't exist.
Returns:
The map or null
See Also:
ATTR_JAVASCRIPT

BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.