|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bigzip.plugin.support.ui.WindowUtilities
Field Summary | |
static int |
CROSSHAIR_CURSOR
|
static int |
DEFAULT_CURSOR
|
static int |
E_RESIZE_CURSOR
|
static int |
HAND_CURSOR
|
static int |
MOVE_CURSOR
|
static int |
N_RESIZE_CURSOR
|
static int |
NE_RESIZE_CURSOR
|
static int |
NW_RESIZE_CURSOR
|
static int |
S_RESIZE_CURSOR
|
static int |
SE_RESIZE_CURSOR
|
static int |
SW_RESIZE_CURSOR
|
static int |
W_RESIZE_CURSOR
|
static int |
WAIT_CURSOR
|
Constructor Summary | |
WindowUtilities()
|
Method Summary | |
static void |
center(java.awt.Window window)
Centers a Window on the screen |
static javax.swing.JDialog |
createDialog(java.lang.String title,
boolean modal)
Produces a dialog component with the parent (BiGZiP Frame) allocated to it. |
static javax.swing.Icon |
getDefaultDirectoryIcon()
Returns the standard icon used for files. |
static javax.swing.Icon |
getIconForFile(java.lang.String filename)
Returns the associated icon for a given file. |
static javax.swing.Icon |
getIconForType(java.lang.String type)
Returns the associated icon for a given file extension. |
static java.awt.Frame |
getParentFrame()
Use this method when producing frames or dialogs that require a parent to be set. |
static void |
setCursor(int type)
Provides access to changing the cursor with respect to the parent frame. |
static void |
setFrame(com.bigzip.ui.BiGZiPFrame frame)
Used by the BiGZiP GUI to set the parent frame. |
static void |
setLocationRelativeTo(java.awt.Component child)
Sets the location of the dialog relative to the specified component. |
static void |
setLocationRelativeTo(java.awt.Component parent,
java.awt.Component child)
Sets the location of the child relative to the specified parent. |
static void |
show(java.awt.Window window)
Displays a window component on screen by packing it, setting it relative to the parent (BiGZiP Frame) and then showing it. |
static void |
showErrorDialog(java.lang.String message,
java.lang.String title)
Displays an error dialog component on the screen. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_CURSOR
public static final int CROSSHAIR_CURSOR
public static final int WAIT_CURSOR
public static final int SW_RESIZE_CURSOR
public static final int SE_RESIZE_CURSOR
public static final int NW_RESIZE_CURSOR
public static final int NE_RESIZE_CURSOR
public static final int N_RESIZE_CURSOR
public static final int S_RESIZE_CURSOR
public static final int W_RESIZE_CURSOR
public static final int E_RESIZE_CURSOR
public static final int HAND_CURSOR
public static final int MOVE_CURSOR
Constructor Detail |
public WindowUtilities()
Method Detail |
public static void setFrame(com.bigzip.ui.BiGZiPFrame frame)
frame
- the parent frame.public static void setLocationRelativeTo(java.awt.Component child)
child
- the component in relation to which the dialog's
location is determined.public static void setLocationRelativeTo(java.awt.Component parent, java.awt.Component child)
parent
- the reference component.child
- the component to be placed in relation to the parent.public static final void center(java.awt.Window window)
window
- the window to be centered.public static final javax.swing.JDialog createDialog(java.lang.String title, boolean modal)
title
- the text to be placed on the top of the dialog window.modal
- whether or not the GUI should pause on this component.public static final javax.swing.Icon getIconForFile(java.lang.String filename)
filename
- the file to interigate for an association.public static final javax.swing.Icon getIconForType(java.lang.String type)
type
- the file extension to interigate for an association.public static final javax.swing.Icon getDefaultDirectoryIcon()
public static java.awt.Frame getParentFrame()
public static final void show(java.awt.Window window)
window
- the window component to be displayed.public static final void showErrorDialog(java.lang.String message, java.lang.String title)
message
- the error message to be displayed.title
- the title shown on the dialog.public static final void setCursor(int type)
type
- the cursor type to change to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |