| org.cougaar.tools.csmart.ui.viewer.UniqueNameSet org.cougaar.tools.csmart.ui.viewer.OrganizerNameSet
Method Summary | |
protected String | generateUniqueName(String name, boolean allowExistingName) Generate a name that is unique in the CSMART workspace,
and in the database. | public Object | getObjectInTree(Class leafClass, DefaultMutableTreeNode root, String name) | protected String | getUniqueName(String originalName, boolean allowExistingName) Get a name for a folder, experiment, society, recipe, etc. | public void | init(DefaultMutableTreeNode root, Class leafClass, String getNameMethodName) | protected boolean | isUniqueName(String name) |
OrganizerNameSet | public OrganizerNameSet(String namePrefix, String prompt, String databaseCheck)(Code) | | The namePrefix is used as the base to generate uniqu names.
The prompt is the prompt to display for the user to get a name.
The databaseCheck method is assumed to be the name of a method
in ExperimentDB that takes the component name as an argument
and returns a boolean indicating if that name is in the database.
Parameters: namePrefix - a single word prepended to unique objects Parameters: prompt - a single word describing the object to be named Parameters: databaseCheck - method name to check for name in database or null |
generateUniqueName | protected String generateUniqueName(String name, boolean allowExistingName)(Code) | | Generate a name that is unique in the CSMART workspace,
and in the database. The user is only prompted
for a new name, if the generated name is not unique.
|
getUniqueName | protected String getUniqueName(String originalName, boolean allowExistingName)(Code) | | Get a name for a folder, experiment, society, recipe, etc.
that is unique in the workspace and in the database.
Parameters: originalName - the current name of the object Parameters: allowExistingName - true to allow existing name (true if renaming) String new unique name |
isUniqueName | protected boolean isUniqueName(String name)(Code) | | |
Fields inherited from org.cougaar.tools.csmart.ui.viewer.UniqueNameSet | protected transient Logger log(Code)(Java Doc)
|
|
|