|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.services.display.WindowUtilities
public class WindowUtilities
Window Utilities to handle some common window and frame representation problems
| Field Summary | |
|---|---|
protected static java.awt.Color[] |
colorList
Deprecated. Default color list |
protected static java.util.Hashtable |
colorNames
Deprecated. Hastable to associate color and names |
protected static boolean |
graphicsAvailable
Deprecated. Boolean to indicate graphic mode available |
protected static int |
usedColorListIndexes
Deprecated. Selected color index |
| Method Summary | |
|---|---|
static boolean |
areGraphicsAvailable()
Deprecated. Check if graphics is available |
static void |
center(java.awt.Container parent,
java.awt.Component comp)
Deprecated. Centres a component inside a awt container. |
static void |
disposeProgressBar(javax.swing.JProgressBar jpb)
Deprecated. Disposes progress bar's container |
static java.awt.Color |
getColorAssociated(java.lang.String name)
Deprecated. Returns a color associated to the given name |
static java.awt.Rectangle |
getScreenRectangle(java.awt.Component comp)
Deprecated. Returns the usable screen rectangle size for a componen deleting the lower part of the screen not to hide the start bar. |
static boolean |
getUserConfirmation(java.awt.Component cp,
java.lang.String message)
Deprecated. Asks the user confirmation |
static java.lang.String |
getUserInputString(java.lang.String message)
Deprecated. Inputs Dialog to retrieve a parameter |
static void |
hideProgressBar(javax.swing.JProgressBar jpb)
Deprecated. Hides the progress bar's container |
static void |
incProgressBar(javax.swing.JProgressBar jpb)
Deprecated. Increments the progress bar. |
static void |
setPositionDisplay(java.awt.Container parent,
java.awt.Component comp,
java.lang.String positionDisplay)
Deprecated. Positions a component inside a container if the conatiner is null the component is centered in the screen. |
static void |
setPositionWindow(java.awt.Container parent,
java.awt.Component comp,
int positionN,
int positionW)
Deprecated. Positions a component inside a container. |
static void |
showError(java.awt.Component cp,
java.lang.String message)
Deprecated. Outputs an error message to the user |
static javax.swing.JWindow |
showLogo(javax.swing.ImageIcon logo)
Deprecated. Shows the given Image as a logo on a simple window |
static javax.swing.JProgressBar |
showLogoProgressBar(javax.swing.ImageIcon logo,
int steps)
Deprecated. Shows progress bar with logo |
static void |
showMessage(java.awt.Component cp,
java.lang.String message)
Deprecated. Outputs a typed message to the user |
static javax.swing.JProgressBar |
showProgressBar(java.lang.String message,
int steps)
Deprecated. Shows the progress bar. |
static void |
showWarning(java.awt.Component cp,
java.lang.String message)
Deprecated. Outputs a warning message to the user |
static boolean |
testGraphics()
Deprecated. Tests the graphics and prints message that it is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean graphicsAvailable
protected static java.util.Hashtable colorNames
protected static java.awt.Color[] colorList
protected static int usedColorListIndexes
| Method Detail |
|---|
public static boolean areGraphicsAvailable()
public static boolean testGraphics()
public static void center(java.awt.Container parent,
java.awt.Component comp)
If the conatiner is null the component is centered in the screen.
parent - The awt containercomp - The component
public static void setPositionWindow(java.awt.Container parent,
java.awt.Component comp,
int positionN,
int positionW)
If the conatiner is null the component is centered in the screen.
parent - The containercomp - The componentpositionN - The new position value at y axispositionW - The new position value at x axis
public static void setPositionDisplay(java.awt.Container parent,
java.awt.Component comp,
java.lang.String positionDisplay)
parent - The AWT parentcomp - The componentpositionDisplay - The new direction for valuepublic static java.awt.Rectangle getScreenRectangle(java.awt.Component comp)
comp - The component
public static javax.swing.JWindow showLogo(javax.swing.ImageIcon logo)
logo - image icon for the logo
public static javax.swing.JProgressBar showProgressBar(java.lang.String message,
int steps)
message - Message displayed in progress bar.steps - Steps
public static javax.swing.JProgressBar showLogoProgressBar(javax.swing.ImageIcon logo,
int steps)
logo - logosteps - steps
public static void incProgressBar(javax.swing.JProgressBar jpb)
jpb - JProgressBar objectpublic static void disposeProgressBar(javax.swing.JProgressBar jpb)
jpb - JProgressBar objectpublic static void hideProgressBar(javax.swing.JProgressBar jpb)
jpb - JProgressBar objectpublic static java.awt.Color getColorAssociated(java.lang.String name)
name - Color Name
public static java.lang.String getUserInputString(java.lang.String message)
message - message
public static boolean getUserConfirmation(java.awt.Component cp,
java.lang.String message)
cp - Componentmessage - Message
public static void showMessage(java.awt.Component cp,
java.lang.String message)
cp - Componentmessage - message
public static void showWarning(java.awt.Component cp,
java.lang.String message)
cp - Componentmessage - warning message
public static void showError(java.awt.Component cp,
java.lang.String message)
cp - Componentmessage - error message
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||