net.mlw.vlh.web.tag.support
Class Attributes

java.lang.Object
  extended bynet.mlw.vlh.web.tag.support.Attributes
All Implemented Interfaces:
Attributeable

public class Attributes
extends Object
implements Attributeable

Holds a map of attributes.

Version:
$Revision: 1.4 $ $Date: 2005/08/19 16:06:30 $
Author:
Matthew L. Wilson

Constructor Summary
Attributes()
          Default constructore.
 
Method Summary
 void appendCellAttribute(String key, String style)
          Append with the space to existing non null or empty key's value.
 String getCellAttributesAsString()
          returns a String in the form or nameX="valueX".
 Map getMap()
           
 void reset()
          reset this bean.
 void setCellAttribute(String name, String value)
          Sets the attrabute on the Attributeable object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attributes

public Attributes()
Default constructore.

Method Detail

setCellAttribute

public void setCellAttribute(String name,
                             String value)
Description copied from interface: Attributeable
Sets the attrabute on the Attributeable object.

Specified by:
setCellAttribute in interface Attributeable
Parameters:
name - The name of the attribute.
value - The value of the attribute.
See Also:
net.mlw.vlh.web.tag.support.Attributeable#setAttribute(java.lang.String, java.lang.String)

getCellAttributesAsString

public String getCellAttributesAsString()
returns a String in the form or nameX="valueX".

Returns:
A String in the form or nameX="valueX".

getMap

public Map getMap()

reset

public void reset()
reset this bean.


appendCellAttribute

public void appendCellAttribute(String key,
                                String style)
Append with the space to existing non null or empty key's value. If not exist key, uses setCellAttribute Ussually used with "class" attributes.

Parameters:
key -
style - to append
See Also:
setCellAttribute(String, String)


Copyright © 2003-2006 mlavilson. All Rights Reserved.