org.jboss.portal.core.admin.ui
Class PreferenceBean
java.lang.Object
org.jboss.portal.core.admin.ui.PreferenceBean
- All Implemented Interfaces:
- java.lang.Comparable, DynamicBean
public class PreferenceBean
- extends java.lang.Object
- implements java.lang.Comparable, DynamicBean
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreferenceBean
public PreferenceBean(PreferenceInfo prefInfo,
Value value)
getName
public java.lang.String getName()
isReadOnly
public boolean isReadOnly()
setReadOnly
public void setReadOnly(boolean readOnly)
getDisplayName
public LocalizedString getDisplayName()
setDisplayName
public void setDisplayName(LocalizedString displayName)
getDescription
public LocalizedString getDescription()
setDescription
public void setDescription(LocalizedString description)
getValue
public Value getValue()
setValue
public void setValue(Value value)
isStale
public boolean isStale()
getIndices
public java.util.List getIndices()
getLine
public java.lang.String getLine()
setLine
public void setLine(java.lang.String line)
select
public void select()
deleteLine
public void deleteLine(ActionEvent event)
appendLine
public void appendLine()
getType
public java.lang.Class getType(java.lang.Object propertyName)
throws java.lang.IllegalArgumentException
- Description copied from interface:
DynamicBean
- Return the type of the specified property.
- Specified by:
getType
in interface DynamicBean
- Parameters:
propertyName
- the property name
- Returns:
- the type of the specified property or null
- Throws:
java.lang.IllegalArgumentException
- if the property name is null
getValue
public PropertyValue getValue(java.lang.Object propertyName)
throws java.lang.IllegalArgumentException
- Description copied from interface:
DynamicBean
- Return the value of the specified property.
- Specified by:
getValue
in interface DynamicBean
- Parameters:
propertyName
- the property name
- Returns:
- the property value
- Throws:
java.lang.IllegalArgumentException
- if the property is null
setValue
public boolean setValue(java.lang.Object propertyName,
java.lang.Object value)
throws java.lang.IllegalArgumentException
- Description copied from interface:
DynamicBean
- Set the value of the specified property.
- Specified by:
setValue
in interface DynamicBean
- Parameters:
propertyName
- the property namevalue
- the new property value
- Returns:
- true if the property was succesfully set
- Throws:
java.lang.IllegalArgumentException
- if the property name is null
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable