portlets.compoze.groupware
Class OptionsGroup
java.lang.Object
|
+--portlets.compoze.groupware.OptionsGroup
- All Implemented Interfaces:
- java.io.Serializable
- public class OptionsGroup
- extends java.lang.Object
- implements java.io.Serializable
This class represents the options group. It contains the options
and their associated status.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionsGroup
public OptionsGroup(Accounts accounts,
FeatureGroup featureGroup)
- Constructor.
- Parameters:
accounts
- the accountsfeatureGroup
- the feature group (may not be null
)
setActiveOption
public void setActiveOption(OptionsGroup.Option option)
- Sets the option status as
Status.ACTIVE
for the specified option.
- Parameters:
option
- the option to set (may not be null
)
getStatus
public OptionsGroup.Status getStatus(OptionsGroup.Option option)
- Gets the option status for the specified option.
- Parameters:
option
- the option- Returns:
- the option status
setStatus
public void setStatus(OptionsGroup.Option option,
OptionsGroup.Status status)
- Sets the option status for the specified option.
- Parameters:
option
- the optionstatus
- the option status
checkStatus
public boolean checkStatus(OptionsGroup.Option option,
OptionsGroup.Status status)
- Checks if the option status matches the specified status.
- Parameters:
option
- the option to check (may not be null
)status
- the status to check for (may not be null
)- Returns:
true
if the status matches; false
otherwise
Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.