| java.lang.Object org.cougaar.tools.csmart.ui.util.Util
Util | public class Util (Code) | | Utilities for CSMART GUI.
|
getNamedFrame | public static NamedFrame getNamedFrame()(Code) | | Get the single NamedFrame object for the CSMARTUL application.
The NamedFrame object ensures that all frames in the application
have unique names, and it notifies the CSMARTUL application when frames
are added/removed so that the menu of existing frames can be updated.
This method is pointless.
the NamedFrame object for the application |
getObjectsFromList | public static Object[] getObjectsFromList(Component parent, ArrayList values, String title, String prompt)(Code) | | Display a list of objects in a dialog and return an
array of objects selected by the user.
Parameters: parent - the parent component of the dialog Parameters: values - a list of values Parameters: title - the title for the dialog Parameters: prompt - a prompt displayed above the list the objects selected by the user |
getPath | public static String getPath(String filename)(Code) | | Return a path for the specified filename; the path is determined
using ConfigFinder. If there is any error, null is returned.
Parameters: filename - the filename for which to get the path the pathname or null if an error |
showObjectsInList | public static void showObjectsInList(Component parent, ArrayList values, String title, String prompt)(Code) | | Display a list of objects in a dialog.
Parameters: parent - the parent component of the dialog Parameters: values - a list of values Parameters: title - the title for the dialog Parameters: prompt - a prompt displayed above the list |
|
|