|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpicedt.graphic.toolkit.CustomizerDialog
public class CustomizerDialog
A modal or non-modal 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 three default actions, namely : ok (store and dispose), cancel (marks as
cancelled), load default, reload. Note that cancel() makes sense only if the hosting dialog is modal.
| Nested Class Summary | |
|---|---|
static class |
CustomizerDialog.ButtonMask
|
| Constructor Summary | |
|---|---|
CustomizerDialog(MDIComponent host,
AbstractCustomizer customizer,
EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
Builds a new dialog box from a single customizer. |
|
CustomizerDialog(MDIComponent host,
ArrayList<AbstractCustomizer> customizers,
int selected,
String title,
EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
Creates a new dialog box from the given array of AbstractCustomizer's, laying them out in
a JTabbedPane. |
|
| Method Summary | |
|---|---|
void |
dispose()
simply delegates to hosting component |
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. |
void |
setVisible(boolean b)
simply delegates to hosting component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomizerDialog(MDIComponent host,
ArrayList<AbstractCustomizer> customizers,
int selected,
String title,
EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
AbstractCustomizer's, laying them out in
a JTabbedPane.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 togetherhost - the hosting component
public CustomizerDialog(MDIComponent host,
AbstractCustomizer customizer,
EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
setOkButtonClosesDialog.
buttonsMask - buttons to be displayed : a mask computed from predefinite masks OR'd togetherhost - the hosting component; a JDialog if null| Method Detail |
|---|
public boolean isCancelled()
public void paneActivated(AbstractCustomizer c)
public void setOkButtonClosesDialog(boolean b)
public void setVisible(boolean b)
public void dispose()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||