de.uni_paderborn.fujaba.gui
Class PEClass

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.BasicPropertyEditor
                          extended byde.uni_paderborn.fujaba.gui.PropertyEditor
                              extended byde.uni_paderborn.fujaba.gui.PEClass
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class PEClass
extends PropertyEditor

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

Version:
$Revision: 1.132 $
Author:
$Author: lowende $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.gui.BasicPropertyEditor
BasicPropertyEditor.ParseException
 
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  PECheck abstractModifier
          No comment provided by developer, please add a comment to improve documentation.
(package private)  PEListIncr basicStereotypeList
          No comment provided by developer, please add a comment to improve documentation.
private  PEButton browseButton
          No comment provided by developer, please add a comment to improve documentation.
private  PETextField className
          No comment provided by developer, please add a comment to improve documentation.
private  PETextField defaultIcon
          editing the default icon for objects of this class.
(package private)  PEListIncr generalList
          No comment provided by developer, please add a comment to improve documentation.
private static org.apache.log4j.Logger log
          log4j logging
private  PEComboBox packageName
          No comment provided by developer, please add a comment to improve documentation.
private  PEButton resetBasic
          No comment provided by developer, please add a comment to improve documentation.
private  PEButton resetGeneral
          No comment provided by developer, please add a comment to improve documentation.
private  PEButton resetStereo
          No comment provided by developer, please add a comment to improve documentation.
private  PECheck staticModifier
          No comment provided by developer, please add a comment to improve documentation.
(package private)  PEListIncr stereotypeList
          No comment provided by developer, please add a comment to improve documentation.
private  UMLTypeList typeList
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.gui.PropertyEditor
 
Fields inherited from class de.uni_paderborn.fujaba.gui.BasicPropertyEditor
asgElement, readOnly
 
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
PEClass(javax.swing.JFrame frame)
          Constructor for class PEClass
 
Method Summary
protected  void additionalProperties(PEEditPanel panel)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  void browse()
          Opens a JFileChooser so you can browse to get your favourite directory.
 void buttonOK_actionPerformed(java.awt.event.ActionEvent e)
          Overwritten to enable syntax checking.
protected  void cancel()
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.event.ActionListener createBrowseListener()
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.event.ActionListener createResetBasicStereotypesListener()
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.event.ActionListener createResetGeneralizationListener()
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.event.ActionListener createResetStereotypesListener()
          No comment provided by developer, please add a comment to improve documentation.
private  void fillStereotypeList()
          No comment provided by developer, please add a comment to improve documentation.
private  void fillTypeList()
          No comment provided by developer, please add a comment to improve documentation.
protected  java.lang.String getPropertyName()
          Get the propertyName attribute of the PEClass object
protected  void parse()
          No comment provided by developer, please add a comment to improve documentation.
private  void parseAbstract(UMLClass clazz)
          ************************************************************ parse the persistent data
private  void parseGeneralisation(UMLClass clazz)
          ************************************************************ parse the 'derived from' data
private  void parsePackage(UMLClass clazz)
          ************************************************************ parse the package data
private  void parseStatic(UMLClass clazz)
          ************************************************************ parse the static and interface data
private  void parseStereotypes(UMLClass clazz)
          ************************************************************ parse the 'Sterteotypes' data
private  void selectStereotypes(UMLClass clazz)
          No comment provided by developer, please add a comment to improve documentation.
 void setIncrement(ASGElement asgElement)
          Sets the increment attribute of the PEClass object
private  boolean syntaxCheck(ClassDeclaration decl)
          Checks the syntax of the arguments typed in the textfield
protected  void unparse()
          Fill the dialog with values from the edited class.
 
Methods inherited from class de.uni_paderborn.fujaba.gui.PropertyEditor
getClassIncrement
 
Methods inherited from class de.uni_paderborn.fujaba.gui.BasicPropertyEditor
additionalButtons, buttonAbort_actionPerformed, buttonActionPerformed, centerDialog, focusGained, focusLost, getFocusAdapter, getFrame, getIncrement, initPE, isReadOnly, setFrame, setIncrementWithoutParse, setPanel, setReadOnly, setStatus, showCentered, showLarge
 
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

log

private static final transient org.apache.log4j.Logger log
log4j logging


staticModifier

private PECheck staticModifier
No comment provided by developer, please add a comment to improve documentation.


abstractModifier

private PECheck abstractModifier
No comment provided by developer, please add a comment to improve documentation.


className

private PETextField className
No comment provided by developer, please add a comment to improve documentation.


generalList

PEListIncr generalList
No comment provided by developer, please add a comment to improve documentation.


stereotypeList

PEListIncr stereotypeList
No comment provided by developer, please add a comment to improve documentation.


basicStereotypeList

PEListIncr basicStereotypeList
No comment provided by developer, please add a comment to improve documentation.


resetGeneral

private PEButton resetGeneral
No comment provided by developer, please add a comment to improve documentation.


resetBasic

private PEButton resetBasic
No comment provided by developer, please add a comment to improve documentation.


resetStereo

private PEButton resetStereo
No comment provided by developer, please add a comment to improve documentation.


packageName

private PEComboBox packageName
No comment provided by developer, please add a comment to improve documentation.


defaultIcon

private PETextField defaultIcon
editing the default icon for objects of this class.


browseButton

private PEButton browseButton
No comment provided by developer, please add a comment to improve documentation.


typeList

private UMLTypeList typeList
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

PEClass

public PEClass(javax.swing.JFrame frame)
Constructor for class PEClass

Parameters:
frame - No description provided
Method Detail

getPropertyName

protected java.lang.String getPropertyName()
Get the propertyName attribute of the PEClass object

Overrides:
getPropertyName in class BasicPropertyEditor
Returns:
The propertyName value

setIncrement

public void setIncrement(ASGElement asgElement)
Sets the increment attribute of the PEClass object

Overrides:
setIncrement in class PropertyEditor
Parameters:
asgElement - The new increment value

unparse

protected void unparse()
Fill the dialog with values from the edited class.

Specified by:
unparse in class BasicPropertyEditor

parsePackage

private void parsePackage(UMLClass clazz)
************************************************************ parse the package data

Parameters:
clazz - No description provided

parseStatic

private void parseStatic(UMLClass clazz)
************************************************************ parse the static and interface data

Parameters:
clazz - No description provided

parseAbstract

private void parseAbstract(UMLClass clazz)
************************************************************ parse the persistent data

Parameters:
clazz - No description provided

parseStereotypes

private void parseStereotypes(UMLClass clazz)
************************************************************ parse the 'Sterteotypes' data

Parameters:
clazz - No description provided

parseGeneralisation

private void parseGeneralisation(UMLClass clazz)
************************************************************ parse the 'derived from' data

Parameters:
clazz - No description provided

parse

protected void parse()
              throws BasicPropertyEditor.ParseException
No comment provided by developer, please add a comment to improve documentation.

Specified by:
parse in class BasicPropertyEditor
Throws:
ParseException - Exception description not provided
BasicPropertyEditor.ParseException

cancel

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

Specified by:
cancel in class BasicPropertyEditor

selectStereotypes

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

Parameters:
clazz - No description provided

fillStereotypeList

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


fillTypeList

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


additionalProperties

protected void additionalProperties(PEEditPanel panel)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
additionalProperties in class BasicPropertyEditor
Parameters:
panel - No description provided

buttonOK_actionPerformed

public void buttonOK_actionPerformed(java.awt.event.ActionEvent e)
Overwritten to enable syntax checking.

Overrides:
buttonOK_actionPerformed in class BasicPropertyEditor
Parameters:
e - No description provided

syntaxCheck

private boolean syntaxCheck(ClassDeclaration decl)
Checks the syntax of the arguments typed in the textfield

Parameters:
decl - No description provided
Returns:
No description provided

createResetGeneralizationListener

private java.awt.event.ActionListener createResetGeneralizationListener()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

createResetBasicStereotypesListener

private java.awt.event.ActionListener createResetBasicStereotypesListener()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

createBrowseListener

private java.awt.event.ActionListener createBrowseListener()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

browse

void browse()
Opens a JFileChooser so you can browse to get your favourite directory.


createResetStereotypesListener

private java.awt.event.ActionListener createResetStereotypesListener()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided