TWE 2.5-1 API

org.enhydra.jawe.base.editor
Class TogWEStandardXPDLElementEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended byorg.enhydra.jawe.base.editor.TogWEStandardXPDLElementEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, JaWEComponent, java.awt.MenuContainer, java.util.Observer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants, XPDLElementEditor

public class TogWEStandardXPDLElementEditor
extends javax.swing.JDialog
implements JaWEComponent, java.util.Observer, XPDLElementEditor

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
protected  java.awt.event.ActionListener al
           
protected  InlinePanel inlinePanel
           
protected  PanelSettings settings
           
protected  int status
           
static int STATUS_CANCEL
           
static int STATUS_OK
           
protected  java.lang.String type
           
protected  boolean updateInProgress
           
protected  java.awt.event.WindowListener wl
           
 
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 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
TogWEStandardXPDLElementEditor(PanelSettings settings)
           
 
Method Summary
 boolean adjustXPDL(org.enhydra.shark.xpdl.elements.Package pkg)
           
 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.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)
           
 org.enhydra.shark.xpdl.XMLElement getEditingElement()
           
 XMLPanel getEditingPanel()
          Returns the panel that is currently beeing edited.
 InlinePanel getInlinePanel()
           
 java.lang.String getName()
           
 XPDLElementEditor getParentEditor()
           
 java.awt.Window getParentWindow()
           
 JaWEComponentSettings getSettings()
           
 int getStatus()
           
 java.lang.String getType()
           
 JaWEComponentView getView()
           
 java.awt.Window getWindow()
           
protected  void init()
           
protected  void initDialog()
           
 boolean isUpdateInProgress()
           
 void requestFocus()
           
protected  void setDialogVisible()
           
 void setModified(boolean modif)
           
 void setType(java.lang.String type)
           
 void setUpdateInProgress(boolean inProgress)
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
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, 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, 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
 
Methods inherited from interface org.enhydra.jawe.base.editor.XPDLElementEditor
isVisible, setTitle
 

Field Detail

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

status

protected int status

type

protected java.lang.String type

inlinePanel

protected InlinePanel inlinePanel

settings

protected PanelSettings settings

updateInProgress

protected boolean updateInProgress

wl

protected java.awt.event.WindowListener wl

al

protected java.awt.event.ActionListener al
Constructor Detail

TogWEStandardXPDLElementEditor

public TogWEStandardXPDLElementEditor(PanelSettings settings)
Method Detail

getName

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

requestFocus

public void requestFocus()

getSettings

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

getView

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

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

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.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

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

configure

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

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

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

close

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

getParentEditor

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

setModified

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

init

protected void init()

getEditingPanel

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


setDialogVisible

protected void setDialogVisible()

initDialog

protected void initDialog()

getInlinePanel

public InlinePanel getInlinePanel()

setUpdateInProgress

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

isUpdateInProgress

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

TWE 2.5-1 API