|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.dialog.DialogToolkit
public class DialogToolkit
Placeholder for convenience methods that ease dialog creation.
| Constructor Summary | |
|---|---|
DialogToolkit()
|
|
| Method Summary | |
|---|---|
static void |
centerOnScreen(java.awt.Component c)
Sets the given component's (JFrame, JDialog...) location to be centered on screen. |
static void |
centerOnWindow(java.awt.Component c,
java.awt.Window window)
Centers the specified component on the specified window. |
static javax.swing.JPanel |
createButtonPanel(javax.swing.JButton[] buttons,
javax.swing.JRootPane rootPane,
java.awt.event.ActionListener actionListener)
Creates a button panel using the given buttons, and register the given listener for button actions. |
static javax.swing.JPanel |
createOKCancelPanel(javax.swing.JButton okButton,
javax.swing.JButton cancelButton,
javax.swing.JRootPane rootPane,
java.awt.event.ActionListener actionListener)
Creates an OK/Cancel panel using the given buttons, and register the given listener for button actions. |
static javax.swing.JPanel |
createOKPanel(javax.swing.JButton okButton,
javax.swing.JRootPane rootPane,
java.awt.event.ActionListener actionListener)
Creates an OK panel using the given button, and register the given listener for button actions. |
static boolean |
fitToMaxDimension(java.awt.Window window,
java.awt.Dimension maxD)
|
static boolean |
fitToMinDimension(java.awt.Window window,
java.awt.Dimension minD)
|
static boolean |
fitToScreen(java.awt.Window window)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialogToolkit()
| Method Detail |
|---|
public static boolean fitToMinDimension(java.awt.Window window,
java.awt.Dimension minD)
public static boolean fitToMaxDimension(java.awt.Window window,
java.awt.Dimension maxD)
public static boolean fitToScreen(java.awt.Window window)
public static void centerOnScreen(java.awt.Component c)
public static void centerOnWindow(java.awt.Component c,
java.awt.Window window)
Note that this method assumes c's dimension to be at most that of the screen.
This can be ensured through fitToScreen(Window). If this constraint is not respected,
behaviour is unpredictable.
c - component to center.window - window to center on.
public static javax.swing.JPanel createOKCancelPanel(javax.swing.JButton okButton,
javax.swing.JButton cancelButton,
javax.swing.JRootPane rootPane,
java.awt.event.ActionListener actionListener)
public static javax.swing.JPanel createOKPanel(javax.swing.JButton okButton,
javax.swing.JRootPane rootPane,
java.awt.event.ActionListener actionListener)
public static javax.swing.JPanel createButtonPanel(javax.swing.JButton[] buttons,
javax.swing.JRootPane rootPane,
java.awt.event.ActionListener actionListener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard