|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.moyoman.module.ModeConfigTool
This application provides the user with a user interface for editing the mode configuration files. Specifically, the user defined mode list can be edited.
| Field Summary | |
private ModeConfig |
mc
The ModeConfig object. |
| Constructor Summary | |
ModeConfigTool()
Create a new ModeConfigTool object. |
|
| Method Summary | |
void |
addMode(String newModeName,
Mode oldMode)
Create a new user defined mode. |
void |
cancel()
Cancel any changes since the last save() or cancel() call. |
void |
deleteMode(Mode mode)
Delete the user defined mode. |
static void |
main(String[] args)
Start up the test application. |
void |
save()
Save any changes 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 ModeConfig mc
| Constructor Detail |
public ModeConfigTool()
throws InternalErrorException
InternalErrorException - - Thrown if the operation fails for any reason.| Method Detail |
public static void main(String[] args)
args - Command line arguments to the application.
public void addMode(String newModeName,
Mode oldMode)
throws DataAlreadyExistsException,
NoSuchDataException
newModeName - The name of the new mode.oldMode - The old mode.
DataAlreadyExistsException - Thrown if the mode already exists.
NoSuchDataException - Thrown if the old mode does not exist.
public 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.
public void cancel()
throws InternalErrorException
InternalErrorException - - Thrown if the operation fails for any reason.
public 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 | ||||||||||