ix.iview
Class DomainEditor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--ix.iface.ui.JFrameMT
                                      |
                                      +--ix.iface.ui.JFrameMTP
                                            |
                                            +--ix.iview.DomainEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.ChangeListener, DomainListener, java.util.EventListener, java.awt.image.ImageObserver, InternalDomainEditor, java.awt.event.ItemListener, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, ix.iview.domain.event.UIDomainListener, javax.swing.WindowConstants

public class DomainEditor
extends JFrameMTP
implements javax.swing.event.ChangeListener, DomainListener, ix.iview.domain.event.UIDomainListener, InternalDomainEditor

An editor/viewer frame for domain details. The editor can be created with a mandatory advanced mode (true for advanced, false for simple) and an optional domain or an optional title. Most of the window buidling goes on in the ConstructFramePanels and their ConstructEditorPanels, except for the menubar and the toolbar.

Super-class JFrameMT defines useful menu/toolbar making things. Most of the action processing goes on in the ConstructFramePanels, except for domain specific things (read...) and window things (toggles).

Example for using DomainEditor:


   ...
   File modelDirectory = new File("domain-library");
   boolean isAdvanced = false;
   DomainEditor frame = new DomainEditor(isAdvanced);
   frame.setModelDirectory(modelDirectory);
   frame.setVisible(true);
   ...
 

See Also:
Serialized Form

Inner Class Summary
static class DomainEditor.DomainFileFilter
           
(package private)  class DomainEditor.IXWindow
           
 
Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
protected  ActionEditorPanel actionPanel
           
protected  javax.swing.ImageIcon advancedIcon
           
protected  IXToolItem advancedItem
           
protected  IXAgent agent
           
protected  AROEditorPanel aroPanel
           
protected  javax.swing.ImageIcon checkIcon
           
protected  IXToolItem checkItem
           
protected  IXToolItem clearItem
           
protected  GlobalFramePanel domainPanel
           
protected  GrammarEditorPanel grammarPanel
           
protected  javax.swing.ImageIcon graphicalIcon
           
protected  IXToolItem graphicalItem
           
protected  HelpFrame helpFrame
           
protected  IXToolItem insertItem
           
protected  AConstructFramePanel lexiconPanel
           
protected  java.io.File modelDirectory
           
protected  javax.swing.ImageIcon modifyIcon
           
protected  IXToolItem modifyItem
           
protected  IXToolItem newEditItem
           
protected  OrderingEditor orderingEditor
           
protected  javax.swing.ImageIcon publishIcon
           
protected  IXToolItem publishItem
           
protected  IXToolItem revertDItem
           
protected  javax.swing.ImageIcon revertOIcon
           
protected  IXToolItem revertOItem
           
protected  javax.swing.ImageIcon simpleIcon
           
protected  IXToolItem simpleItem
           
protected  AConstructFramePanel testPanel
           
 ix.iview.domain.UIDomain uiDomain
          The current domain in the editor.
 
Fields inherited from class ix.iface.ui.JFrameMTP
cardsPanel, isAdjusting, styleMenu, tabbedPane, windowsMenu
 
Fields inherited from class ix.iface.ui.JFrameMT
aboutDialog, aboutItem, closeItem, copyIcon, copyItem, cutIcon, cutItem, editMenu, exitItem, fileMenu, helpIcon, helpItem, helpMenu, imageDir, JPanel2, mainJPanel, manualItem, menuBar, newIcon, newItem, openFileDialog, openIcon, openItem, optionsMenu, pasteIcon, pasteItem, revertIcon, revertItem, saveAsItem, saveFileDialog, saveIcon, saveItem, TB_HEIGHT, TBB_HEIGHT, TBB_WIDTH, TBB_Y, toolBar, toolsMenu, viewMenu
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, icon, ICONIFIED, mbManagement, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
inputContext, OPENED, ownedWindowList, state, warningString, windowListener
 
Fields inherited from class java.awt.Container
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DomainEditor()
          Makes the editor with the default (simple) advanced mode.
DomainEditor(boolean isAdvanced)
          Makes the editor with the given advanced mode.
DomainEditor(Domain domain)
          Makes the editor with the given domain - simple by default.
DomainEditor(Domain domain, boolean isAdvanced)
          Makes the editor with the given advanced mode and load the given domain.
DomainEditor(IXAgent theAgent, Domain domain)
          Makes the editor with the given domain - simple by default.
DomainEditor(java.lang.String title, boolean isAdvanced)
          Makes the editor with the given advanced mode and the given title.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Implements the ActionListener interface.
 void adaptDefaultMenuToolbar()
          Dummy method that can be overridden by sub-classes to adapt the default.
protected  void adaptMenusToPanel(javax.swing.JPanel panel)
          Called whenever the current panel is updated
 void constructAdded(RefinementEvent e)
           
 void constructAdded(ix.iview.domain.event.UIDomainEvent e)
           
 void constructEdited(ix.iview.domain.event.UIDomainEvent e)
           
 void constructRemoved(ix.iview.domain.event.UIDomainEvent e)
           
protected  boolean currentPanelChanging(javax.swing.JPanel oldPanel, javax.swing.JPanel newPanel)
          Changing current panel from old to new.
 void domainCleared(ix.iview.domain.event.UIDomainEvent e)
           
 void domainEdited(ix.iview.domain.event.UIDomainEvent se)
           
 void domainSet(ix.iview.domain.event.UIDomainEvent se)
           
 void ensureHelpFrame()
           
 Domain getDomain()
           
 java.io.File getModelDirectory()
           
 ix.iview.domain.UIDomain getUIDomain()
           
 boolean isAdvancedSet()
           
static void main(java.lang.String[] args)
           
 javax.swing.JMenu makeEditMenuTool(javax.swing.JComponent parentMenu)
          Makes an edit menu Menu items: edit construct Toolbar buttons: none
 javax.swing.JMenu makeFileMenuTool(javax.swing.JComponent parentMenu)
          Makes a the file menu and toolbar buttons.
 void makeFileMenuToolExits(javax.swing.JMenu fileMenu)
          Makes default close/exit menu options and and toolbar buttons.
protected  void makeToolbar()
           
 javax.swing.JMenu makeToolsMenuTool(javax.swing.JComponent parentMenu)
          Makes a tools menu and toolbar buttons.
protected  void populateEditMenu()
          Fill the edit menu with constructs from the domain.
 void refinementAdded(RefinementEvent e)
           
 void saveExpansion(Refinement data)
          The name of this is a hangover from something Jeff did.
 void setAdvanced(boolean newAdvanced)
          Sets the editor to advanced (true) or simple (false) mode.
 void setConstruct(IXObject construct)
          Sets the given construct as the current one and displays it for editing.
 void setDefaultSequence(boolean on)
          Sets the toggle for default sub-activity sequencing behaviour.
 void setDomain(Domain domain)
          Sets the given domain as current both in this frame and the domain editor panel.
 void setDomain(java.io.File domainFile)
          Reads the descriptions in the given domain file.
 void setGraphical()
          If the state of the menu item does not correspond to the new setting, it is changed.
 void setModelDirectory(java.io.File directory)
          Sets the directory used to load/save models.
 void setOriginalStyle()
          If the editor is brought up in simple mode, style is changed to simple too - this should move to tabbed style when first advanced or graphical is selected (do only once!)
 void setUIConstruct(ix.iview.domain.UIObject construct)
          Sets the given UIObject as the current one and displays it for editing.
 void setUIDomain(ix.iview.domain.UIDomain uiDomain)
          Sets the given UIDomain as current both in this frame and the domain editor panel.
protected  void setVisuals()
           
 void showButtonTexts(boolean show)
           
 void updateCurrentPanel(AConstructFramePanel panel)
          Sets the current panel and sets the domain in the panel
protected  void userClearDomain()
          Clears the current domain.
 void userClose()
           
protected  void userInsertDomain()
          Gets a domain file name and reads it.
protected  void userOpenDomain()
          Gets a domain file name, reads it, and replaces the contents of the current domain with the read ones.
protected  void userPublishDomain()
           
protected  void userRevertDomain()
          Reverts the whole draft domain to the last published (or original) one.
protected  void userSaveDomain()
           
protected  void userSaveDomainAs()
           
 
Methods inherited from class ix.iface.ui.JFrameMTP
addPanel, changePanelStyle, fillWindowsMenu, getACurrentPanel, getCurrentPanel, getNamedPanel, getPanels, getPanelStyle, getPanelStyles, itemStateChanged, makeDefaultMenuToolbar, makeStyleMenuTool, makeWindowsMenuTool, removeAllPanels, setCurrentPanel, setPanelStyle, setPanelStyles, setWindowsMenuSelection, stateChanged, updateCurrentPanel, updateCurrentPanel
 
Methods inherited from class ix.iface.ui.JFrameMT
aboutDialog, exit, exitApplication, makeCheckMenuItem, makeFileMenuToolFiles, makeFrame, makeHelpMenuTool, makeMenu, makeMenuItem, makeMenuItem, makeMenuItem, makeMenuItem, makeMenuTool, makeMenuTool, makeMenuTool, makeMenuTool, makeMenuToolBars, makeMenuToolITxt, makeOptionsMenuTool, makeRadioMenuItem, makeToolbarButton, makeToolbarButton, makeToolbarButton, makeToolbarButton, makeViewMenuTool, openFile, placeToolbarButton, saveFile, saveFileAs, toggleToolbar
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, postProcessKeyEvent, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, 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, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.event.ChangeListener
stateChanged
 
Methods inherited from interface ix.iview.InternalDomainEditor
setVisible
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

agent

protected IXAgent agent

domainPanel

protected GlobalFramePanel domainPanel

actionPanel

protected ActionEditorPanel actionPanel

aroPanel

protected AROEditorPanel aroPanel

grammarPanel

protected GrammarEditorPanel grammarPanel

lexiconPanel

protected AConstructFramePanel lexiconPanel

testPanel

protected AConstructFramePanel testPanel

orderingEditor

protected OrderingEditor orderingEditor

checkIcon

protected javax.swing.ImageIcon checkIcon

revertOIcon

protected javax.swing.ImageIcon revertOIcon

modifyIcon

protected javax.swing.ImageIcon modifyIcon

publishIcon

protected javax.swing.ImageIcon publishIcon

simpleIcon

protected javax.swing.ImageIcon simpleIcon

advancedIcon

protected javax.swing.ImageIcon advancedIcon

graphicalIcon

protected javax.swing.ImageIcon graphicalIcon

helpFrame

protected HelpFrame helpFrame

publishItem

protected IXToolItem publishItem

insertItem

protected IXToolItem insertItem

clearItem

protected IXToolItem clearItem

revertDItem

protected IXToolItem revertDItem

newEditItem

protected IXToolItem newEditItem

revertOItem

protected IXToolItem revertOItem

modifyItem

protected IXToolItem modifyItem

simpleItem

protected IXToolItem simpleItem

advancedItem

protected IXToolItem advancedItem

graphicalItem

protected IXToolItem graphicalItem

checkItem

protected IXToolItem checkItem

modelDirectory

protected java.io.File modelDirectory

uiDomain

public ix.iview.domain.UIDomain uiDomain
The current domain in the editor. May be null
Constructor Detail

DomainEditor

public DomainEditor()
Makes the editor with the default (simple) advanced mode. Subsequently, the domain can be set with the setDomain method or it can be loaded via the menu. The default window title is "IX - Domain Editor".

DomainEditor

public DomainEditor(boolean isAdvanced)
Makes the editor with the given advanced mode. Subsequently, the domain can be set with the setDomain method or it can be loaded via the menu. The default window title is "IX - Domain Editor".
Parameters:
isAdvanced - advanced mode: true for advanced, false for simple

DomainEditor

public DomainEditor(Domain domain)
Makes the editor with the given domain - simple by default. The default window title is "IX - Domain Editor".
Parameters:
domain - the domain to use in the editor

DomainEditor

public DomainEditor(Domain domain,
                    boolean isAdvanced)
Makes the editor with the given advanced mode and load the given domain. The default window title is "IX - Domain Editor".
Parameters:
domain - the domain to use in the editor
isAdvanced - advanced mode: true for advanced, false for simple

DomainEditor

public DomainEditor(java.lang.String title,
                    boolean isAdvanced)
Makes the editor with the given advanced mode and the given title. Subsequently, the domain can be set with the setDomain method or it can be loaded via the menu.
Parameters:
title - the title of the frame
isAdvanced - advanced mode: true for advanced, false for simple

DomainEditor

public DomainEditor(IXAgent theAgent,
                    Domain domain)
Makes the editor with the given domain - simple by default. The default window title is "IX - Domain Editor".
Parameters:
domain - the domain to use in the editor
Method Detail

currentPanelChanging

protected boolean currentPanelChanging(javax.swing.JPanel oldPanel,
                                       javax.swing.JPanel newPanel)
Changing current panel from old to new.
Overrides:
currentPanelChanging in class JFrameMTP
Following copied from class: ix.iface.ui.JFrameMTP
Returns:
true if the panels should really change, false if the old panel should remain.

setVisuals

protected void setVisuals()

ensureHelpFrame

public void ensureHelpFrame()

isAdvancedSet

public boolean isAdvancedSet()
Returns:
the current setting of the advanced flag

setAdvanced

public void setAdvanced(boolean newAdvanced)
Sets the editor to advanced (true) or simple (false) mode. If the state of the menu item does not correspond to the new setting, it is changed. If the editor is already in the given mode, nothing is done, except ensuring that the menu item is set to the corresponding state. Currently, nothing else changes in the frame, so the command is passed on to the ActionEditorPanel.

setGraphical

public void setGraphical()
If the state of the menu item does not correspond to the new setting, it is changed.

setModelDirectory

public void setModelDirectory(java.io.File directory)
Sets the directory used to load/save models. This method just notes the given value which is used when needed for the file selectors for loading and saving models

getModelDirectory

public java.io.File getModelDirectory()
Returns:
the directory used to load/save models.

setOriginalStyle

public void setOriginalStyle()
If the editor is brought up in simple mode, style is changed to simple too - this should move to tabbed style when first advanced or graphical is selected (do only once!)

adaptDefaultMenuToolbar

public void adaptDefaultMenuToolbar()
Description copied from class: JFrameMTP
Dummy method that can be overridden by sub-classes to adapt the default.
Overrides:
adaptDefaultMenuToolbar in class JFrameMTP

makeFileMenuTool

public javax.swing.JMenu makeFileMenuTool(javax.swing.JComponent parentMenu)
Makes a the file menu and toolbar buttons. Replaces that of the superclass Menu items: new, open, save, save as, S, Options, S, close, exit Toolbar buttons: new, open, save
Overrides:
makeFileMenuTool in class JFrameMT

makeFileMenuToolExits

public void makeFileMenuToolExits(javax.swing.JMenu fileMenu)
Makes default close/exit menu options and and toolbar buttons. Menu items: S, close, exit Toolbar buttons: none
Overrides:
makeFileMenuToolExits in class JFrameMT

makeEditMenuTool

public javax.swing.JMenu makeEditMenuTool(javax.swing.JComponent parentMenu)
Makes an edit menu Menu items: edit construct Toolbar buttons: none
Overrides:
makeEditMenuTool in class JFrameMT

makeToolsMenuTool

public javax.swing.JMenu makeToolsMenuTool(javax.swing.JComponent parentMenu)
Makes a tools menu and toolbar buttons. Menu items: none Toolbar buttons: none
Overrides:
makeToolsMenuTool in class JFrameMT

makeToolbar

protected void makeToolbar()

showButtonTexts

public void showButtonTexts(boolean show)

adaptMenusToPanel

protected void adaptMenusToPanel(javax.swing.JPanel panel)
Called whenever the current panel is updated
Overrides:
adaptMenusToPanel in class JFrameMTP

populateEditMenu

protected void populateEditMenu()
Fill the edit menu with constructs from the domain.

saveExpansion

public void saveExpansion(Refinement data)
The name of this is a hangover from something Jeff did. This is meant to set the given refinement into the editor ready to be changed.
Specified by:
saveExpansion in interface InternalDomainEditor

setConstruct

public void setConstruct(IXObject construct)
Sets the given construct as the current one and displays it for editing. All work is done in the current panel.
Parameters:
construct - the original domain object to be viewed/edited

setUIConstruct

public void setUIConstruct(ix.iview.domain.UIObject construct)
Sets the given UIObject as the current one and displays it for editing. All work is done in the current panel.
Parameters:
construct - the UI object to be viewed/edited

setDomain

public void setDomain(java.io.File domainFile)
Reads the descriptions in the given domain file. Displays a message if the file cannot be found. Sets the domain as current in this.
Parameters:
domainFile - the file from which to read the domain

setDomain

public void setDomain(Domain domain)
Sets the given domain as current both in this frame and the domain editor panel.
Parameters:
domain - the domain to use

setUIDomain

public void setUIDomain(ix.iview.domain.UIDomain uiDomain)
Sets the given UIDomain as current both in this frame and the domain editor panel.
Parameters:
uiDomain - the UIDomain to use

getUIDomain

public ix.iview.domain.UIDomain getUIDomain()

getDomain

public Domain getDomain()

updateCurrentPanel

public void updateCurrentPanel(AConstructFramePanel panel)
Sets the current panel and sets the domain in the panel
Parameters:
domain - the domain to use

setDefaultSequence

public void setDefaultSequence(boolean on)
Sets the toggle for default sub-activity sequencing behaviour.
Parameters:
on - true: put new sub-activities in sequence, false: put them in parallel.

userClearDomain

protected void userClearDomain()
Clears the current domain. Gets confirmation from the user if the domain is not empty.

userRevertDomain

protected void userRevertDomain()
Reverts the whole draft domain to the last published (or original) one. Gets confirmation from the user if the domain has changed.

userOpenDomain

protected void userOpenDomain()
Gets a domain file name, reads it, and replaces the contents of the current domain with the read ones.

userInsertDomain

protected void userInsertDomain()
Gets a domain file name and reads it.

userSaveDomain

protected void userSaveDomain()

userSaveDomainAs

protected void userSaveDomainAs()

userPublishDomain

protected void userPublishDomain()

refinementAdded

public void refinementAdded(RefinementEvent e)
Specified by:
refinementAdded in interface DomainListener

constructAdded

public void constructAdded(RefinementEvent e)
Specified by:
constructAdded in interface ix.iview.domain.event.UIDomainListener

constructAdded

public void constructAdded(ix.iview.domain.event.UIDomainEvent e)
Specified by:
constructAdded in interface ix.iview.domain.event.UIDomainListener

constructEdited

public void constructEdited(ix.iview.domain.event.UIDomainEvent e)
Specified by:
constructEdited in interface ix.iview.domain.event.UIDomainListener

constructRemoved

public void constructRemoved(ix.iview.domain.event.UIDomainEvent e)
Specified by:
constructRemoved in interface ix.iview.domain.event.UIDomainListener

domainCleared

public void domainCleared(ix.iview.domain.event.UIDomainEvent e)
Specified by:
domainCleared in interface ix.iview.domain.event.UIDomainListener

domainEdited

public void domainEdited(ix.iview.domain.event.UIDomainEvent se)
Specified by:
domainEdited in interface ix.iview.domain.event.UIDomainListener

domainSet

public void domainSet(ix.iview.domain.event.UIDomainEvent se)
Specified by:
domainSet in interface ix.iview.domain.event.UIDomainListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Implements the ActionListener interface. If this cannot recognise the event, it passes it to the current AConstructFramePanel. If the panel does not recognise the event either, this passes it to its superclass (JFrameMTP, which will pass the event to the current panel first).

Catch specific menu/toolbar events here. Let the panels process their own events, let the superclass process panel-swapping events (inc. style) and, via its superclass, general window events (close, exit, ...)

Overrides:
actionPerformed in class JFrameMTP

userClose

public void userClose()

main

public static void main(java.lang.String[] args)