|
TWE 2.5-1 API | |||||||||
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.enhydra.jawe.base.editor.StandardXPDLElementEditor
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.
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 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 |
|
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 | |
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, 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, 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, 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 |
Field Detail |
protected java.lang.String type
public static final int STATUS_OK
public static final int STATUS_CANCEL
protected boolean isModified
protected java.util.Properties properties
protected XPDLElementEditor parentEditor
protected org.enhydra.shark.xpdl.XMLElement originalElement
protected javax.swing.JButton buttonOK
protected javax.swing.JButton buttonCancel
protected int status
protected InlinePanel inlinePanel
protected boolean undoableChange
private StandardXPDLElementEditorSettings settings
protected java.awt.event.WindowListener wl
javax.swing.JDialog dialog
protected java.awt.event.ActionListener al
protected java.awt.event.ActionListener okl
Constructor Detail |
public StandardXPDLElementEditor()
public StandardXPDLElementEditor(boolean undoableChange)
public StandardXPDLElementEditor(StandardXPDLElementEditor parentEditor)
Method Detail |
public void configure()
configure
in interface XPDLElementEditor
public void setProperty(java.lang.String key, java.lang.String value)
public JaWEComponentSettings getSettings()
getSettings
in interface JaWEComponent
protected void init()
public java.lang.String getLanguageDependentString(java.lang.String nm)
public void setTitle(java.lang.String title)
setTitle
in interface XPDLElementEditor
public XPDLElementEditor getParentEditor()
getParentEditor
in interface XPDLElementEditor
public XMLPanel getEditingPanel()
public org.enhydra.shark.xpdl.XMLElement getEditingElement()
getEditingElement
in interface XPDLElementEditor
public void editXPDLElement(org.enhydra.shark.xpdl.XMLElement el)
editXPDLElement
in interface XPDLElementEditor
public void editXPDLElement()
editXPDLElement
in interface XPDLElementEditor
public boolean canApplyChanges()
canApplyChanges
in interface XPDLElementEditor
public void applyChanges()
public int getStatus()
getStatus
in interface XPDLElementEditor
public java.awt.Window getWindow()
getWindow
in interface XPDLElementEditor
public java.awt.Window getParentWindow()
getParentWindow
in interface XPDLElementEditor
protected void initDialog()
public void close()
close
in interface XPDLElementEditor
public void setModified(boolean modif)
setModified
in interface XPDLElementEditor
public JaWEComponentView getView()
getView
in interface JaWEComponent
public javax.swing.JComponent getDisplay()
public java.lang.String getType()
getType
in interface JaWEComponent
public void setType(java.lang.String type)
setType
in interface JaWEComponent
public java.lang.String getName()
getName
in interface JaWEComponent
public boolean adjustXPDL(org.enhydra.shark.xpdl.elements.Package pkg)
adjustXPDL
in interface JaWEComponent
public java.util.List checkValidity(org.enhydra.shark.xpdl.XMLElement el, boolean fullCheck)
checkValidity
in interface JaWEComponent
public boolean canCreateElement(org.enhydra.shark.xpdl.XMLCollection col)
canCreateElement
in interface JaWEComponent
public boolean canInsertElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
canInsertElement
in interface JaWEComponent
public boolean canModifyElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
public boolean canModifyElement(org.enhydra.shark.xpdl.XMLElement col)
canModifyElement
in interface JaWEComponent
public boolean canRemoveElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
canRemoveElement
in interface JaWEComponent
public boolean canDuplicateElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
canDuplicateElement
in interface JaWEComponent
public boolean canRepositionElement(org.enhydra.shark.xpdl.XMLCollection col, org.enhydra.shark.xpdl.XMLElement el)
canRepositionElement
in interface JaWEComponent
public java.util.Properties getProperties()
public void setUpdateInProgress(boolean inProgress)
setUpdateInProgress
in interface JaWEComponent
public boolean isUpdateInProgress()
isUpdateInProgress
in interface JaWEComponent
|
TWE 2.5-1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |