|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel ix.iview.AConstructFramePanel ix.iview.AROEditorPanel
public class AROEditorPanel
An editor/viewer panel for AROs, i.e. Activity Relatable Objects. Waiting to be implemented.
The panel has editable fields for the object's name, type(s), sub-types, and attributes. Other relationships between objects.
Example code for using the AROEditorPanel:
...
...
Nested Class Summary | |
---|---|
class |
AROEditorPanel.AROFormPanel
|
class |
AROEditorPanel.ClassTreeTableModel
|
Nested classes/interfaces inherited from class ix.iview.AConstructFramePanel |
---|
AConstructFramePanel.FieldValue, AConstructFramePanel.JModifyDialog |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
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 | |
---|---|
(package private) PropertyEditor |
propEditor
|
PanelSearcher |
searcher
|
Fields inherited from class ix.iview.AConstructFramePanel |
---|
currentConstructListeners, DEFAULT_SORT, formPanel, hasOverview, mainPanel, parent, scrollPane, switching |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface ix.iview.IDESymbols |
---|
C_ALL, C_CONDITIONS_ONLY, C_CONDITIONS_OTHER, C_NONE, C_ORDER_CONDITIONS, C_ORDER_ONLY, C_ORDER_OTHER, C_OTHER_ONLY, MODE_ADVANCED, MODE_SIMPLE, VIEW_COMPREHENSIVE, VIEW_GRAPHICAL, VIEW_MINIMAL, VIEWS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AROEditorPanel(DomainEditorFrame theParent)
Make the editor panel and set up the class tree |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Wakes up the ActionListener with a user action. |
boolean |
beforeClosing()
|
boolean |
checkConstruct()
Check a construct of the panel's type for errors and inconsistencies |
void |
clear()
|
void |
clearUIConstruct()
|
protected UIObject |
cloneConstruct(UIObject uiConstruct)
|
void |
constructAdded(DomainEvent event)
|
void |
constructAdded(UIDomainEvent event)
Called when a UI construct is added. |
void |
constructEdited(UIDomainEvent event)
Called when a UI construct is edited. |
void |
constructRemoved(UIDomainEvent event)
Called when a UI construct is removed. |
void |
deleteConstruct()
Deletes the construct, then sets its parent. |
void |
domainCleared(UIDomainEvent event)
Called when the domain is cleared. |
void |
domainEdited(UIDomainEvent se)
Called when the domain's own fields changed (currently only name). |
void |
domainSet(UIDomainEvent event)
Called when the domain is added. |
void |
ensurePropEditor()
|
void |
ensureSearcher()
|
boolean |
frameActionPerformed(java.awt.event.ActionEvent event)
Recognises panel specific events and processes them. |
java.util.List |
getAllConstructs()
Get a full list of the constructs of the panel's type in the domain. |
protected UIObjectClass |
getClassFromUser(java.util.List offers,
java.lang.String message,
UIObjectClass parentClass)
|
protected UIObjectClass |
getClassFromUser(java.util.List offers,
UIObjectClass parentClass)
|
protected UIObjectClass |
getClassFromUser(java.lang.String message,
UIObjectClass parentClass)
|
protected UIObjectClass |
getClassFromUser(UIObjectClass parentClass)
|
protected IXTreeNode |
getCurrentTreeNode()
|
Named |
getNamedConstruct(java.lang.String name)
Get a named construct of the panel's type from the domain |
UIObject |
makeNewConstruct()
Make a new construct of the panel's type. |
UIObjectClass |
newUIObjectClass(java.lang.String name)
|
UIObjectClass |
newUIObjectClass(java.lang.String name,
UIObjectClass parent)
|
UIObject |
noteConstruct()
Note the contents of the panel into the current object. |
protected void |
populateARO()
|
void |
refresh()
|
void |
resetTree()
|
void |
saveConstruct()
Save a construct of the panel's type into the draft domain. |
void |
setUIConstruct(UIObject object)
Sets the given UI construct to be viewed/edited. |
void |
setUIConstructPanel(UIObject object)
do we really need this? |
protected void |
setupClassTree()
|
protected javax.swing.JPanel |
setupMainPanel()
Sets up the main panel in which construct editing will happen. |
void |
treeNodesChanged(javax.swing.event.TreeModelEvent e)
|
void |
treeNodesInserted(javax.swing.event.TreeModelEvent e)
|
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent e)
|
void |
treeStructureChanged(javax.swing.event.TreeModelEvent e)
|
void |
updateTree()
|
void |
updateTreeSelection()
|
void |
userAddChild()
|
void |
userAddParent()
|
void |
userAddProperty()
|
void |
userDeleteChild()
|
void |
userDeleteParent()
|
void |
userDeleteProperty()
|
void |
userEditChild()
|
void |
userEditParent()
|
void |
userEditProperty()
|
void |
userNewChild()
|
void |
userSearch()
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PanelSearcher searcher
PropertyEditor propEditor
Constructor Detail |
---|
public AROEditorPanel(DomainEditorFrame theParent)
Method Detail |
---|
protected void populateARO()
public UIObjectClass newUIObjectClass(java.lang.String name)
public UIObjectClass newUIObjectClass(java.lang.String name, UIObjectClass parent)
protected javax.swing.JPanel setupMainPanel()
AConstructFramePanel
setupMainPanel
in class AConstructFramePanel
protected void setupClassTree()
public void refresh()
refresh
in class AConstructFramePanel
public void updateTree()
public void resetTree()
public void updateTreeSelection()
public UIObject makeNewConstruct()
makeNewConstruct
in interface ConstructFraming
makeNewConstruct
in class AConstructFramePanel
public void saveConstruct()
saveConstruct
in interface ConstructFraming
saveConstruct
in class AConstructFramePanel
public UIObject noteConstruct()
noteConstruct
in class AConstructFramePanel
public Named getNamedConstruct(java.lang.String name)
getNamedConstruct
in interface ConstructFraming
public boolean checkConstruct()
checkConstruct
in interface ConstructFraming
public java.util.List getAllConstructs()
getAllConstructs
in interface ConstructFraming
public void clear()
clear
in class AConstructFramePanel
public void clearUIConstruct()
protected UIObject cloneConstruct(UIObject uiConstruct)
cloneConstruct
in class AConstructFramePanel
public void setUIConstructPanel(UIObject object)
setUIConstructPanel
in class AConstructFramePanel
object
- the UI object to be viewed/editedpublic void setUIConstruct(UIObject object)
setUIConstruct
in interface ConstructFraming
setUIConstruct
in class AConstructFramePanel
object
- the UI object to be viewed/editedpublic boolean beforeClosing()
beforeClosing
in class AConstructFramePanel
public void constructAdded(UIDomainEvent event)
constructAdded
in interface UIDomainListener
public void constructAdded(DomainEvent event)
constructAdded
in interface UIDomainListener
public void constructEdited(UIDomainEvent event)
constructEdited
in interface UIDomainListener
public void constructRemoved(UIDomainEvent event)
constructRemoved
in interface UIDomainListener
public void domainCleared(UIDomainEvent event)
UIDomainListener
domainCleared
in interface UIDomainListener
public void domainEdited(UIDomainEvent se)
UIDomainListener
domainEdited
in interface UIDomainListener
public void domainSet(UIDomainEvent event)
UIDomainListener
domainSet
in interface UIDomainListener
protected UIObjectClass getClassFromUser(UIObjectClass parentClass)
protected UIObjectClass getClassFromUser(java.lang.String message, UIObjectClass parentClass)
protected UIObjectClass getClassFromUser(java.util.List offers, UIObjectClass parentClass)
protected UIObjectClass getClassFromUser(java.util.List offers, java.lang.String message, UIObjectClass parentClass)
public void userNewChild()
public void userAddChild()
public void userDeleteChild()
public void userEditChild()
public void userAddParent()
public void userDeleteParent()
public void userEditParent()
public void ensureSearcher()
public void userSearch()
public void ensurePropEditor()
public void userAddProperty()
public void userDeleteProperty()
public void userEditProperty()
public void deleteConstruct()
deleteConstruct
in class AConstructFramePanel
protected IXTreeNode getCurrentTreeNode()
public boolean frameActionPerformed(java.awt.event.ActionEvent event)
frameActionPerformed
in interface FramePanel
frameActionPerformed
in interface ConstructFraming
frameActionPerformed
in class AConstructFramePanel
event
- the event to be processed.
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class AConstructFramePanel
public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
public void treeNodesInserted(javax.swing.event.TreeModelEvent e)
public void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
public void treeStructureChanged(javax.swing.event.TreeModelEvent e)
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |