org.apache.jetspeed.om.common.preference
Interface PreferenceComposite

All Superinterfaces:
org.apache.pluto.om.Controller, org.apache.pluto.om.Model, org.apache.pluto.om.common.Preference, org.apache.pluto.om.common.PreferenceCtrl, Serializable

public interface PreferenceComposite
extends org.apache.pluto.om.common.PreferenceCtrl, org.apache.pluto.om.common.Preference, Serializable

PreferenceComposite

Version:
$Id: PreferenceComposite.java,v 1.2 2004/06/18 20:46:21 weaver Exp $
Author:
Scott T. Weaver

Field Summary
static String DEFAULT_PREFERENCE
           
static String USER_PREFERENCE
           
 
Method Summary
 void addDescription(Locale locale, String Description)
           
 void addValue(String value)
           addValue
 String[] cloneValues()
           
 org.apache.pluto.om.common.Description getDescription(Locale locale)
           
 Iterator getDescriptions()
           
 String getType()
           
 String[] getValueArray()
           
 String getValueAt(int index)
           
 void removeValueAt(int index)
           
 void setType(String string)
           
 void setValueAt(int index, String value)
           setValueAt
 void setValues(String[] stringValues)
           setValues
 
Methods inherited from interface org.apache.pluto.om.common.PreferenceCtrl
setName, setReadOnly, setValues
 
Methods inherited from interface org.apache.pluto.om.common.Preference
getName, getValues, isReadOnly, isValueSet
 

Field Detail

DEFAULT_PREFERENCE

static final String DEFAULT_PREFERENCE
See Also:
Constant Field Values

USER_PREFERENCE

static final String USER_PREFERENCE
See Also:
Constant Field Values
Method Detail

addDescription

void addDescription(Locale locale,
                    String Description)

getDescription

org.apache.pluto.om.common.Description getDescription(Locale locale)

getValueAt

String getValueAt(int index)
Parameters:
index -
Returns:
The String value at the specified index or null if no values are present.
Throws:
java.lang.ArrayIndexOutofBounds - if index is outside the constraints

removeValueAt

void removeValueAt(int index)
Parameters:
index -

setValueAt

void setValueAt(int index,
                String value)

setValueAt

Sets the current Preference's value at index to the specified value

Parameters:
index - Index hows value will be set.
value - Value to set

addValue

void addValue(String value)

addValue

Adds a new value to this Preference.

Parameters:
value - Vale to add to the preference

getValueArray

String[] getValueArray()
Returns:

setValues

void setValues(String[] stringValues)

setValues

Replaces the current set of values of this preference with this one.

Parameters:
stringValues -

getType

String getType()
Returns:

setType

void setType(String string)
Parameters:
string -

cloneValues

String[] cloneValues()

getDescriptions

Iterator getDescriptions()


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.