Together Workflow Editor 3.0-1 API

org.enhydra.jawe.base.editor
Class StandardXPDLElementEditor

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by org.enhydra.jawe.base.editor.StandardXPDLElementEditor
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, XPDLElementEditor, JaWEComponent

public class StandardXPDLElementEditor
extends javax.swing.JDialog
implements XPDLElementEditor

The dialog for showing objects derived from XMLPanel classes. The given XMLPanel object must have it's owner, which type is a class derived from the XMLElement class, and serves as a representation of an XML tag.

The dialog enables editing of all editable fields contained within given panel and after user presses OK button, the new values contained within edited fields are set to corresponding members of panel's owner.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  java.awt.event.ActionListener al
           
protected  javax.swing.JButton buttonCancel
           
protected  javax.swing.JButton buttonOK
           
(package private)  javax.swing.JDialog dialog
           
protected  InlinePanel inlinePanel
           
protected  boolean isModified
           
protected  java.awt.event.ActionListener okl
           
protected  org.enhydra.shark.xpdl.XMLElement originalElement
           
protected  XPDLElementEditor parentEditor
           
protected  java.util.Properties properties
           
private  StandardXPDLElementEditorSettings settings
           
protected  int status
           
static int STATUS_CANCEL
           
static int STATUS_OK
           
protected  java.lang.String type
           
protected  boolean undoableChange
           
protected  java.awt.event.WindowListener wl
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.enhydra.jawe.JaWEComponent
LOWER_STATUS_COMPONENT, MAIN_COMPONENT, OTHER_COMPONENT, SPECIAL_COMPONENT, TREE_COMPONENT, UPPER_STATUS_COMPONENT
 
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
StandardXPDLElementEditor()
           
StandardXPDLElementEditor(boolean undoableChange)
           
StandardXPDLElementEditor(StandardXPDLElementEditor parentEditor)
           
 
Method Summary
 boolean adjustXPDL(org.enhydra.shark.xpdl.elements.Package pkg)
           
 void applyChanges()
           
 boolean canApplyChanges()
           
 boolean canCreateElement(org.enhydra.shark.xpdl.XMLCollection col)
           
 boolean canDuplicateElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
           
 boolean canInsertElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
           
 boolean canModifyElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
           
 boolean canModifyElement(org.enhydra.shark.xpdl.XMLElement col)
           
 boolean canRemoveElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
           
 boolean canRepositionElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
           
 java.util.List checkValidity(org.enhydra.shark.xpdl.XMLElement el, boolean fullCheck)
           
 void close()
           
 void configure()
           
 void editXPDLElement()
           
 void editXPDLElement(org.enhydra.shark.xpdl.XMLElement el)
           
 javax.swing.JComponent getDisplay()
           
 org.enhydra.shark.xpdl.XMLElement getEditingElement()
           
 XMLPanel getEditingPanel()
          Returns the panel that is currently beeing edited.
 java.lang.String getLanguageDependentString(java.lang.String nm)
           
 java.lang.String getName()
           
 XPDLElementEditor getParentEditor()
           
 java.awt.Window getParentWindow()
           
 java.util.Properties getProperties()
           
 JaWEComponentSettings getSettings()
           
 int getStatus()
           
 java.lang.String getType()
           
 JaWEComponentView getView()
           
 java.awt.Window getWindow()
           
protected  void init()
           
protected  void initDialog()
           
 boolean isUpdateInProgress()
           
 void setModified(boolean modif)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void setTitle(java.lang.String title)
           
 void setType(java.lang.String type)
           
 void setUpdateInProgress(boolean inProgress)
           
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setUndecorated, setVisible, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, 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, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.enhydra.jawe.base.editor.XPDLElementEditor
isVisible
 

Field Detail

type

protected java.lang.String type

STATUS_OK

public static final int STATUS_OK
See Also:
Constant Field Values

STATUS_CANCEL

public static final int STATUS_CANCEL
See Also:
Constant Field Values

isModified

protected boolean isModified

properties

protected java.util.Properties properties

parentEditor

protected XPDLElementEditor parentEditor

originalElement

protected org.enhydra.shark.xpdl.XMLElement originalElement

buttonOK

protected javax.swing.JButton buttonOK

buttonCancel

protected javax.swing.JButton buttonCancel

status

protected int status

inlinePanel

protected InlinePanel inlinePanel

undoableChange

protected boolean undoableChange

settings

private StandardXPDLElementEditorSettings settings

wl

protected java.awt.event.WindowListener wl

dialog

javax.swing.JDialog dialog

al

protected java.awt.event.ActionListener al

okl

protected java.awt.event.ActionListener okl
Constructor Detail

StandardXPDLElementEditor

public StandardXPDLElementEditor()

StandardXPDLElementEditor

public StandardXPDLElementEditor(boolean undoableChange)

StandardXPDLElementEditor

public StandardXPDLElementEditor(StandardXPDLElementEditor parentEditor)
Method Detail

configure

public void configure()
Specified by:
configure in interface XPDLElementEditor

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

getSettings

public JaWEComponentSettings getSettings()
Specified by:
getSettings in interface JaWEComponent

init

protected void init()

getLanguageDependentString

public java.lang.String getLanguageDependentString(java.lang.String nm)

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface XPDLElementEditor
Overrides:
setTitle in class java.awt.Dialog

getParentEditor

public XPDLElementEditor getParentEditor()
Specified by:
getParentEditor in interface XPDLElementEditor

getEditingPanel

public XMLPanel getEditingPanel()
Returns the panel that is currently beeing edited.


getEditingElement

public org.enhydra.shark.xpdl.XMLElement getEditingElement()
Specified by:
getEditingElement in interface XPDLElementEditor

editXPDLElement

public void editXPDLElement(org.enhydra.shark.xpdl.XMLElement el)
Specified by:
editXPDLElement in interface XPDLElementEditor

editXPDLElement

public void editXPDLElement()
Specified by:
editXPDLElement in interface XPDLElementEditor

canApplyChanges

public boolean canApplyChanges()
Specified by:
canApplyChanges in interface XPDLElementEditor

applyChanges

public void applyChanges()

getStatus

public int getStatus()
Specified by:
getStatus in interface XPDLElementEditor

getWindow

public java.awt.Window getWindow()
Specified by:
getWindow in interface XPDLElementEditor

getParentWindow

public java.awt.Window getParentWindow()
Specified by:
getParentWindow in interface XPDLElementEditor

initDialog

protected void initDialog()

close

public void close()
Specified by:
close in interface XPDLElementEditor

setModified

public void setModified(boolean modif)
Specified by:
setModified in interface XPDLElementEditor

getView

public JaWEComponentView getView()
Specified by:
getView in interface JaWEComponent

getDisplay

public javax.swing.JComponent getDisplay()

getType

public java.lang.String getType()
Specified by:
getType in interface JaWEComponent

setType

public void setType(java.lang.String type)
Specified by:
setType in interface JaWEComponent

getName

public java.lang.String getName()
Specified by:
getName in interface JaWEComponent
Overrides:
getName in class java.awt.Component

adjustXPDL

public boolean adjustXPDL(org.enhydra.shark.xpdl.elements.Package pkg)
Specified by:
adjustXPDL in interface JaWEComponent

checkValidity

public java.util.List checkValidity(org.enhydra.shark.xpdl.XMLElement el,
                                    boolean fullCheck)
Specified by:
checkValidity in interface JaWEComponent

canCreateElement

public boolean canCreateElement(org.enhydra.shark.xpdl.XMLCollection col)
Specified by:
canCreateElement in interface JaWEComponent

canInsertElement

public boolean canInsertElement(org.enhydra.shark.xpdl.XMLCollection col,
                                org.enhydra.shark.xpdl.XMLElement el)
Specified by:
canInsertElement in interface JaWEComponent

canModifyElement

public boolean canModifyElement(org.enhydra.shark.xpdl.XMLCollection col,
                                org.enhydra.shark.xpdl.XMLElement el)

canModifyElement

public boolean canModifyElement(org.enhydra.shark.xpdl.XMLElement col)
Specified by:
canModifyElement in interface JaWEComponent

canRemoveElement

public boolean canRemoveElement(org.enhydra.shark.xpdl.XMLCollection col,
                                org.enhydra.shark.xpdl.XMLElement el)
Specified by:
canRemoveElement in interface JaWEComponent

canDuplicateElement

public boolean canDuplicateElement(org.enhydra.shark.xpdl.XMLCollection col,
                                   org.enhydra.shark.xpdl.XMLElement el)
Specified by:
canDuplicateElement in interface JaWEComponent

canRepositionElement

public boolean canRepositionElement(org.enhydra.shark.xpdl.XMLCollection col,
                                    org.enhydra.shark.xpdl.XMLElement el)
Specified by:
canRepositionElement in interface JaWEComponent

getProperties

public java.util.Properties getProperties()

setUpdateInProgress

public void setUpdateInProgress(boolean inProgress)
Specified by:
setUpdateInProgress in interface JaWEComponent

isUpdateInProgress

public boolean isUpdateInProgress()
Specified by:
isUpdateInProgress in interface JaWEComponent

Together Workflow Editor 3.0-1 API