|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
jpicedt.graphic.toolkit.CustomizerDialog
A dialog box that lays out an array of AbstractCustomizer's inside a JPanel or a JTabbedPane, depending on the number of customizers fed to the constructor. It further provides four default actions, namely : ok, cancel, load default, reload.
Nested Class Summary |
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
ALL_BUTTONS
mask to display all buttons |
static int |
CANCEL_BUTTON
mask to display the CANCEL button |
static int |
DEFAULT_BUTTON
mask to display the DEFAULT button |
static int |
NO_BUTTON
mask to display no button at all |
static int |
OK_BUTTON
mask to display the OK button |
static int |
OK_CANCEL_BUTTONS
mask to display the OK and CANCEL buttons |
static int |
RELOAD_BUTTON
mask to display the RELOAD button |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CustomizerDialog(AbstractCustomizer customizer)
Builds a new dialog box from a single customizer. By default, clicking the OK button does not close this dialog box, this must be set separately by invoking setOkButtonClosesDialog . |
|
CustomizerDialog(AbstractCustomizer[] customizers,
String title,
int selected)
Creates a new dialog box from the given array of AbstractCustomizer's, laying them out in a JTabbedPane. By default, clicking the OK button does not close this dialog box, this must be set separately by invoking setOkButtonClosesDialog . |
|
CustomizerDialog(AbstractCustomizer[] customizers,
String title,
int selected,
int buttonsMask)
Creates a new dialog box from the given array of AbstractCustomizer's, laying them out in a JTabbedPane. By default, clicking the OK button does not close this dialog box, this must be set separately by invoking setOkButtonClosesDialog . |
|
CustomizerDialog(AbstractCustomizer customizer,
int buttonsMask)
Builds a new dialog box from a single customizer. By default, clicking the OK button does not close this dialog box, this must be set separately by invoking setOkButtonClosesDialog . |
Method Summary | |
boolean |
isCancelled()
|
void |
paneActivated(AbstractCustomizer c)
If this dialog was constructed with more than one inner-pane, this methods is invoked when a new pane gets activated. |
void |
setOkButtonClosesDialog(boolean b)
Whether clicking the OK button, beside storing widgets content, also closes this dialog or not. |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_BUTTON
public static final int OK_BUTTON
public static final int CANCEL_BUTTON
public static final int DEFAULT_BUTTON
public static final int RELOAD_BUTTON
public static final int OK_CANCEL_BUTTONS
public static final int ALL_BUTTONS
Constructor Detail |
public CustomizerDialog(AbstractCustomizer[] customizers, String title, int selected)
setOkButtonClosesDialog
.
title
- the JDialog title ; if null, we use the first customizer title.selected
- index of the selected customizer on start-uppublic CustomizerDialog(AbstractCustomizer[] customizers, String title, int selected, int buttonsMask)
setOkButtonClosesDialog
.
title
- the JDialog title ; if null, we use the first customizer title.selected
- index of the selected customizer on start-upbuttonsMask
- buttons to be displayed : a mask computed from predefinite masks OR'd togetherpublic CustomizerDialog(AbstractCustomizer customizer)
setOkButtonClosesDialog
.
public CustomizerDialog(AbstractCustomizer customizer, int buttonsMask)
setOkButtonClosesDialog
.
buttonsMask
- buttons to be displayed : a mask computed from predefinite masks OR'd togetherMethod Detail |
public boolean isCancelled()
public void paneActivated(AbstractCustomizer c)
public void setOkButtonClosesDialog(boolean b)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |