|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.moyoman.module.ModeConfig
This class provides methods for configuring the mode information. The mode and module information are related, so a change to mode information can also lead to a change in module information.
| Field Summary | |
private ModuleConfig |
mc
The ModuleConfig object. |
| Constructor Summary | |
protected |
ModeConfig()
Create a new ModeConfig object. |
| Method Summary | |
protected void |
addMode(String newModeName,
Mode oldMode)
Create a new user defined mode. |
protected void |
cancel()
Cancel any changes that have occurred since the last save() or cancel() call. |
protected void |
deleteMode(Mode mode)
Delete the specified mode. |
protected void |
save()
Save any changes that have occurred since the last save() or cancel() call. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ModuleConfig mc
| Constructor Detail |
protected ModeConfig()
throws InternalErrorException
InternalErrorException - Thrown if the operation fails for any reason.| Method Detail |
protected void addMode(String newModeName,
Mode oldMode)
throws DataAlreadyExistsException,
NoSuchDataException
newModeName - The name of the new mode.
Exception - Thrown if the old mode does not exist,
or if the new mode already exists.
DataAlreadyExistsException
NoSuchDataException
protected void deleteMode(Mode mode)
throws PermissionsException,
NoSuchDataException
mode - The mode to be deleted.
PermissionsException - - Thrown if the mode is a standard mode.
NoSuchDataException - - Thrown if the mode does not exist.
protected void cancel()
throws InternalErrorException
InternalErrorException - - Thrown if the operation fails for any reason.
protected void save()
throws InternalErrorException
InternalErrorException - - Thrown if the operation fails for any reason.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||