org.apache.jetspeed.util
Class HtmlItem
java.lang.Object
org.apache.jetspeed.util.HtmlItem
- All Implemented Interfaces:
- java.io.Serializable
- public class HtmlItem
- extends java.lang.Object
- implements java.io.Serializable
General utility class, can be used to store info
regarding checkboxes, dropdowns and other html items
- Version:
- $Id: HtmlItem.java,v 1.3 2004/02/23 03:23:42 jford Exp $
- Author:
- David Sean Taylor
- See Also:
- Serialized Form
Constructor Summary |
HtmlItem()
Default constructor |
HtmlItem(int sValue,
java.lang.String sDescription)
Constructor that takes intValue and description. |
HtmlItem(int sValue,
java.lang.String sDescription,
boolean selected)
|
HtmlItem(java.lang.String sDescription)
|
HtmlItem(java.lang.String sDescription,
boolean selected)
|
HtmlItem(java.lang.String sValue,
java.lang.String sDescription)
|
HtmlItem(java.lang.String sValue,
java.lang.String sDescription,
boolean selected)
|
Method Summary |
int |
getIntValue()
Accessor Method that returns the items value |
java.lang.String |
getName()
Accessor Method that returns the items description |
boolean |
getSelected()
|
java.lang.String |
getValue()
Accessor Method that returns the items value |
void |
setSelected(boolean value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlItem
public HtmlItem()
- Default constructor
HtmlItem
public HtmlItem(int sValue,
java.lang.String sDescription)
- Constructor that takes intValue and description.
Don't have to call set methods if this is used.
- Parameters:
sValue
- The list item valuesDescription
- The list item description
HtmlItem
public HtmlItem(int sValue,
java.lang.String sDescription,
boolean selected)
HtmlItem
public HtmlItem(java.lang.String sValue,
java.lang.String sDescription)
HtmlItem
public HtmlItem(java.lang.String sValue,
java.lang.String sDescription,
boolean selected)
HtmlItem
public HtmlItem(java.lang.String sDescription)
HtmlItem
public HtmlItem(java.lang.String sDescription,
boolean selected)
setSelected
public void setSelected(boolean value)
getIntValue
public int getIntValue()
- Accessor Method that returns the items value
- Returns:
- The Item's value
getValue
public java.lang.String getValue()
- Accessor Method that returns the items value
- Returns:
- The Item's value
getName
public java.lang.String getName()
- Accessor Method that returns the items description
- Returns:
- The Item's description
getSelected
public boolean getSelected()
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.