|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.ui.Util
public class Util
General utilities for use with a UI component in Rio
| Nested Class Summary | |
|---|---|
static class |
Util.DisposeActionListener
|
static class |
Util.MultiLineToolTip
|
static class |
Util.MultiLineToolTipUI
|
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
dispose(Container comp)
If the Container has a dispose method, call it |
static ApplianceInfo |
getApplianceInfo(Entry[] attrs)
Helper to get the ApplianceInfo Entry |
static ImageIcon |
getImageIcon(String location)
Get an image as a resource and create an ImageIcon |
static OperationalStringManager |
getOperationalStringManager(ProvisionMonitor monitor,
String opStringName)
|
static Color |
getRowColor(DefaultMutableTreeNode root,
DefaultMutableTreeNode node,
JTree tree,
Color defaultColor,
Color altRowColor)
Get the color for row in the tree table |
static ImageIcon |
getScaledImageIcon(String location,
int width,
int height)
Get an image as a resource and create an ImageIcon |
static Properties |
loadProperties(String filename)
Load properties from ${user.home}/.rio |
static void |
saveProperties(Properties props,
String filename)
Save properties to a file stored in ${user.home}/.rio |
static void |
showError(String text,
Component comp,
String title)
Show an error in a Dialog |
static void |
showError(Throwable e,
Component comp,
String title)
Show an exception in a Dialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static OperationalStringManager getOperationalStringManager(ProvisionMonitor monitor,
String opStringName)
throws RemoteException,
OperationalStringException
RemoteException
OperationalStringException
public static Color getRowColor(DefaultMutableTreeNode root,
DefaultMutableTreeNode node,
JTree tree,
Color defaultColor,
Color altRowColor)
root - The tree rootnode - The tre nodetree - The treedefaultColor - The default background coloraltRowColor - The background color for alternate rows
public static void dispose(Container comp)
comp - The Container
public static void saveProperties(Properties props,
String filename)
throws IOException
props - The Properties object to save, must not be nullfilename - The file name to save the Proeprties to
IOException - If there are exceptions accessing the file system
public static Properties loadProperties(String filename)
throws IOException
filename - The name of the properties file to load
IOException - If there are exceptions accessing the file systempublic static ImageIcon getImageIcon(String location)
location - The image icon location
public static ImageIcon getScaledImageIcon(String location,
int width,
int height)
location - The image icon locationwidth - The scaled widthheight - The scaled height
public static ApplianceInfo getApplianceInfo(Entry[] attrs)
attrs - - Array of Entry objects
public static void showError(Throwable e,
Component comp,
String title)
e - The exceptioncomp - The parent componenttitle - The title to use
public static void showError(String text,
Component comp,
String title)
text - The text to showcomp - The parent componenttitle - The title to use
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||