|
|||||||||||
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
org.tigris.swidgets.Dialog
org.argouml.ui.ArgoDialog
org.argouml.ui.explorer.PerspectiveConfigurator
The "Configure Perspectives" dialog.
This class implements the following features:
This dialog behaves almost exactly as described in http://java.sun.com/products/jlf/at/book/Idioms6.html#57371
Nested Class Summary | |
(package private) class |
PerspectiveConfigurator.DuplicatePerspectiveListener
Handles pressing the Duplicate button. |
(package private) class |
PerspectiveConfigurator.LibraryListSelectionListener
Handles selection changes in the library list. |
(package private) class |
PerspectiveConfigurator.MoveDownListener
Handles pressing the move down button. |
(package private) class |
PerspectiveConfigurator.MoveUpListener
Handles pressing the move up button. |
(package private) class |
PerspectiveConfigurator.NewPerspectiveListener
Handles pressing the "New" button. |
(package private) class |
PerspectiveConfigurator.OkListener
Handles pressing the OK button. |
(package private) class |
PerspectiveConfigurator.PerspectiveListSelectionListener
Handles selection changes in the perspective list. |
(package private) class |
PerspectiveConfigurator.RemovePerspectiveListener
Handles pressing the "Remove" button. |
(package private) class |
PerspectiveConfigurator.RenameDocumentListener
Handles changes in the text in the text-entry field for the perspective name. |
(package private) class |
PerspectiveConfigurator.RenameListener
Handles confirming a changed text in the text-entry field (e.g. |
(package private) class |
PerspectiveConfigurator.ResetListener
Handles pressing the Reset-To-Default button. |
(package private) class |
PerspectiveConfigurator.RuleListener
Handles pressing the ">>" or "<<" buttons. |
(package private) class |
PerspectiveConfigurator.RuleListMouseListener
Handles double-clicking on the library list or on the ruleslist. |
(package private) class |
PerspectiveConfigurator.RulesListSelectionListener
Handles selection changes in the rules list. |
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 | |
private JButton |
addRuleButton
|
private JPanel |
configPanelNorth
|
private JPanel |
configPanelSouth
|
private JButton |
duplicatePerspectiveButton
|
private static int |
INSET_PX
Insets in pixels |
private static Logger |
LOG
|
private JButton |
moveDownButton
|
private JButton |
moveUpButton
|
private JButton |
newPerspectiveButton
|
private JLabel |
persLabel
|
private JList |
perspectiveList
|
private DefaultListModel |
perspectiveListModel
|
private JList |
perspectiveRulesList
|
private DefaultListModel |
perspectiveRulesListModel
|
private JButton |
removePerspectiveButton
|
private JButton |
removeRuleButton
|
private JTextField |
renameTextField
|
private JButton |
resetToDefaultButton
|
private JLabel |
ruleLibLabel
|
private JList |
ruleLibraryList
|
private DefaultListModel |
ruleLibraryListModel
|
private JLabel |
rulesLabel
|
private JSplitPane |
splitPane
|
Fields inherited from class org.argouml.ui.ArgoDialog |
|
Fields inherited from class org.tigris.swidgets.Dialog |
CLOSE_OPTION, DEFAULT_OPTION, OK_CANCEL_HELP_OPTION, OK_CANCEL_OPTION, YES_NO_CANCEL_HELP_OPTION, YES_NO_CANCEL_OPTION, YES_NO_HELP_OPTION, YES_NO_OPTION |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
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 | |
PerspectiveConfigurator(Frame parent)
Creates a new instance of PerspectiveDesignerDialog. |
Method Summary | |
private void |
doAddRule()
Add the currently selected rule from the library to the rules list for the current perspective. |
private void |
doRemoveRule()
Remove the currently selected rule from the rules list for the current perspective. |
private void |
loadLibrary()
Load all the existing rules from the perspective manager for presentation. |
private void |
loadPerspectives()
Load the perspectives from the perspective manager for presentation. |
private void |
makeButtons()
Make the buttons on the dialog box with localized strings and mnemonics. |
private void |
makeLayout()
Make the layout for the dialog box. |
private void |
makeListeners()
Add action listeners to the buttons and lists. |
private void |
makeLists()
Make the lists on the dialog box and fill them. |
private void |
sortJListModel(JList list)
|
private void |
updateLibLabel()
Update the label above the library of rules list with count. |
private void |
updatePersLabel()
Update the label above the list of perspectives with count. |
private void |
updateRuleLabel()
Update the label above the library of rules list with count. |
Methods inherited from class org.argouml.ui.ArgoDialog |
nameButton, nameButtons |
Methods inherited from class org.tigris.swidgets.Dialog |
actionPerformed, addButton, addButton, getCancelButton, getCloseButton, getComponentGap, getContent, getHelpButton, getLabelGap, getNoButton, getOkButton, getYesButton, setContent |
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 |
private static final Logger LOG
private static final int INSET_PX
private JPanel configPanelNorth
private JPanel configPanelSouth
private JSplitPane splitPane
private JTextField renameTextField
private JButton newPerspectiveButton
private JButton removePerspectiveButton
private JButton duplicatePerspectiveButton
private JButton moveUpButton
private JButton moveDownButton
private JButton addRuleButton
private JButton removeRuleButton
private JButton resetToDefaultButton
private JList perspectiveList
private JList perspectiveRulesList
private JList ruleLibraryList
private DefaultListModel perspectiveListModel
private DefaultListModel perspectiveRulesListModel
private DefaultListModel ruleLibraryListModel
private JLabel persLabel
private JLabel ruleLibLabel
private JLabel rulesLabel
Constructor Detail |
public PerspectiveConfigurator(Frame parent)
parent
- the parent frameMethod Detail |
private void makeLists()
private void makeButtons()
private void makeLayout()
private void makeListeners()
private void loadLibrary()
private void loadPerspectives()
private void updatePersLabel()
private void updateLibLabel()
private void updateRuleLabel()
private void sortJListModel(JList list)
list
- the JList to be sortedprivate void doAddRule()
private void doRemoveRule()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |