de.uni_paderborn.fujaba.views.gui
Class ViewDefinitionDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended byde.uni_paderborn.fujaba.gui.comp.FujabaDialog
                          extended byde.uni_paderborn.fujaba.views.gui.ViewDefinitionDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants, java.awt.event.WindowListener

public class ViewDefinitionDialog
extends FujabaDialog
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.event.ItemListener, java.awt.event.WindowListener

A basic implementation of the JDialog class.

Version:
$Revision: 1.20 $
Author:
$Author: schneider $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.ButtonGroup contextButtonGroup
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JList diagItemsList
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JButton editButton
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JComboBox filterComboBox
          No comment provided by developer, please add a comment to improve documentation.
private  UMLDiagram mainDiagram
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JRadioButton maxContextRadioButton
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JTextField nameField
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JRadioButton nContextRadioButton
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JTextField nContextTextField
          No comment provided by developer, please add a comment to improve documentation.
private  de.upb.tools.fca.FHashSet sourceDiagrams
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JList startItemsList
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JCheckBox updateCheckBox
          No comment provided by developer, please add a comment to improve documentation.
private  ViewDefinition view
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.gui.comp.FujabaDialog
CANCEL, CLOSE, NO, OK
 
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
ViewDefinitionDialog(javax.swing.JFrame parentFrame)
          Constructor for class ViewDefinitionDialog
ViewDefinitionDialog(javax.swing.JFrame parentFrame, java.lang.String sTitle)
          Creates a new instance of ViewDefinitionDialog with the given title.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean addItemAction()
          Access method for an one to n association.
 boolean addToSourceDiagrams(UMLDiagram value)
          Access method for an one to n association.
private  javax.swing.JPanel createContextPanel()
          No comment provided by developer, please add a comment to improve documentation.
private  void editFilterAction()
          No comment provided by developer, please add a comment to improve documentation.
private  void fillDiagItemsList()
          No comment provided by developer, please add a comment to improve documentation.
private  void fillStartItemsList()
          No comment provided by developer, please add a comment to improve documentation.
private  void filterAction()
          No comment provided by developer, please add a comment to improve documentation.
 ViewDefinition getView()
          Get the view attribute of the ViewDefinitionDialog object
 void guiBuild()
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasInSourceDiagrams(UMLDiagram value)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean isSelected(UMLDiagramItem item, UMLDiagram diag)
          Get the selected attribute of the ViewDefinitionDialog object
 void itemStateChanged(java.awt.event.ItemEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfSourceDiagrams()
          No comment provided by developer, please add a comment to improve documentation.
private  boolean moreItemsAction()
          No comment provided by developer, please add a comment to improve documentation.
 void parse()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromSourceDiagrams()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromSourceDiagrams(UMLDiagram value)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean removeItemAction()
          No comment provided by developer, please add a comment to improve documentation.
 void setView(ViewDefinition view)
          Sets the view attribute of the ViewDefinitionDialog object
 int sizeOfSourceDiagrams()
          No comment provided by developer, please add a comment to improve documentation.
 void stateChanged(javax.swing.event.ChangeEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void unparse()
          No comment provided by developer, please add a comment to improve documentation.
 void windowActivated(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void windowClosed(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void windowClosing(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void windowDeactivated(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void windowDeiconified(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void windowIconified(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void windowOpened(java.awt.event.WindowEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.gui.comp.FujabaDialog
actionCancelButton, actionCloseButton, actionHelpButton, actionOkButton, componentHidden, componentMoved, componentResized, componentShown, getButtonCancel, getButtonClose, getButtonHelp, getButtonOk, getParentFrame, getPressedButton, guiPanelCloseHelp, guiPanelOkCancelHelp, makeLabeledPanel, showCentered
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

diagItemsList

private javax.swing.JList diagItemsList
No comment provided by developer, please add a comment to improve documentation.


startItemsList

private javax.swing.JList startItemsList
No comment provided by developer, please add a comment to improve documentation.


filterComboBox

private javax.swing.JComboBox filterComboBox
No comment provided by developer, please add a comment to improve documentation.


updateCheckBox

private javax.swing.JCheckBox updateCheckBox
No comment provided by developer, please add a comment to improve documentation.


nContextTextField

private javax.swing.JTextField nContextTextField
No comment provided by developer, please add a comment to improve documentation.


nContextRadioButton

private javax.swing.JRadioButton nContextRadioButton
No comment provided by developer, please add a comment to improve documentation.


maxContextRadioButton

private javax.swing.JRadioButton maxContextRadioButton
No comment provided by developer, please add a comment to improve documentation.


contextButtonGroup

private javax.swing.ButtonGroup contextButtonGroup
No comment provided by developer, please add a comment to improve documentation.


editButton

private javax.swing.JButton editButton
No comment provided by developer, please add a comment to improve documentation.


nameField

private javax.swing.JTextField nameField
No comment provided by developer, please add a comment to improve documentation.


mainDiagram

private UMLDiagram mainDiagram
No comment provided by developer, please add a comment to improve documentation.


sourceDiagrams

private de.upb.tools.fca.FHashSet sourceDiagrams
No comment provided by developer, please add a comment to improve documentation.


view

private ViewDefinition view
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

ViewDefinitionDialog

public ViewDefinitionDialog(javax.swing.JFrame parentFrame)
Constructor for class ViewDefinitionDialog

Parameters:
parentFrame - No description provided

ViewDefinitionDialog

public ViewDefinitionDialog(javax.swing.JFrame parentFrame,
                            java.lang.String sTitle)
Creates a new instance of ViewDefinitionDialog with the given title.

Parameters:
sTitle - the title for the new frame.
parentFrame - No description provided
Method Detail

guiBuild

public void guiBuild()
No comment provided by developer, please add a comment to improve documentation.

Overrides:
guiBuild in class FujabaDialog

createContextPanel

private javax.swing.JPanel createContextPanel()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

unparse

public void unparse()
No comment provided by developer, please add a comment to improve documentation.

Overrides:
unparse in class FujabaDialog

parse

public void parse()
No comment provided by developer, please add a comment to improve documentation.

Overrides:
parse in class FujabaDialog

fillDiagItemsList

private void fillDiagItemsList()
No comment provided by developer, please add a comment to improve documentation.


fillStartItemsList

private void fillStartItemsList()
No comment provided by developer, please add a comment to improve documentation.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - No description provided

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e - No description provided

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
e - No description provided

filterAction

private void filterAction()
No comment provided by developer, please add a comment to improve documentation.


editFilterAction

private void editFilterAction()
No comment provided by developer, please add a comment to improve documentation.


addItemAction

private boolean addItemAction()
Access method for an one to n association.

Returns:
No description provided

removeItemAction

private boolean removeItemAction()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

moreItemsAction

private boolean moreItemsAction()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

hasInSourceDiagrams

public boolean hasInSourceDiagrams(UMLDiagram value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

iteratorOfSourceDiagrams

public java.util.Iterator iteratorOfSourceDiagrams()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

sizeOfSourceDiagrams

public int sizeOfSourceDiagrams()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

addToSourceDiagrams

public boolean addToSourceDiagrams(UMLDiagram value)
Access method for an one to n association.

Parameters:
value - The object added.
Returns:
No description provided

removeFromSourceDiagrams

public boolean removeFromSourceDiagrams(UMLDiagram value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

removeAllFromSourceDiagrams

public void removeAllFromSourceDiagrams()
No comment provided by developer, please add a comment to improve documentation.


setView

public void setView(ViewDefinition view)
Sets the view attribute of the ViewDefinitionDialog object

Parameters:
view - The new view value

getView

public ViewDefinition getView()
Get the view attribute of the ViewDefinitionDialog object

Returns:
The view value

isSelected

private boolean isSelected(UMLDiagramItem item,
                           UMLDiagram diag)
Get the selected attribute of the ViewDefinitionDialog object

Parameters:
item - No description provided
diag - No description provided
Returns:
The selected value

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowActivated in interface java.awt.event.WindowListener
Parameters:
e - No description provided

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener
Parameters:
e - No description provided

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowIconified in interface java.awt.event.WindowListener
Parameters:
e - No description provided

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener
Parameters:
e - No description provided

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Parameters:
e - No description provided

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowOpened in interface java.awt.event.WindowListener
Parameters:
e - No description provided

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
windowClosed in interface java.awt.event.WindowListener
Parameters:
e - No description provided