|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.valhalla.gui.Standard
public class Standard
Some common utility functions for UI development
| Method Summary | |
|---|---|
static void |
assure(java.lang.String field,
java.lang.String name)
Throws an error if a field is blank |
static void |
cascadePlacement(java.awt.Container container)
Places a Frame on window in a cascade fashion. |
static javax.swing.ImageIcon |
getIcon(java.lang.String icon)
Gets an Icon from the resources (usually the jar or current directory that the app is running from) |
static java.awt.Image |
getImage(java.lang.String icon)
Gets an Image from the resources (usually the jar or current directory that the app is running from) |
static java.net.URL |
getURL(java.lang.String resource)
|
static void |
noticeMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
Displays a notice dialog |
static void |
recursivelyApplyFont(java.awt.Component component,
java.awt.Font font)
Aplies a font to a container and all of it's child components |
static void |
setBundle(java.util.ResourceBundle bundle)
Sets the default resource bundle to be used with the Standard lib |
static boolean |
warningMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
Displays a warning dialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void recursivelyApplyFont(java.awt.Component component,
java.awt.Font font)
component - the component to apply the font tofont - the font to apply
public static boolean warningMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
parent - this dialog's parenttitle - the dialog titlemessage - the message
public static void noticeMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
parent - this dialog's parenttitle - the dialog titlemessage - the messagepublic static java.net.URL getURL(java.lang.String resource)
public static java.awt.Image getImage(java.lang.String icon)
icon - the name of the image to get
public static javax.swing.ImageIcon getIcon(java.lang.String icon)
icon - the name of the image to get
public static void cascadePlacement(java.awt.Container container)
container - the container to cascadepublic static void setBundle(java.util.ResourceBundle bundle)
bundle - The new bundle value
public static void assure(java.lang.String field,
java.lang.String name)
throws java.lang.Exception
field - the value of the fieldname - the name of the field
java.lang.Exception - to be caught if the field was blank
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||