org.simbrain.workspace
Class Workspace

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by org.simbrain.workspace.Workspace
All Implemented Interfaces:
ActionListener, ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, MenuListener, RootPaneContainer, WindowConstants

public class Workspace
extends JFrame
implements ActionListener, WindowListener, ComponentListener, MenuListener

Workspace is the high-level container for all Simbrain windows--network, world, and gauge. These components are handled here, as are couplings and linkages between them.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
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, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
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
Workspace()
          Default constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          React to menu selections.
 void addConsole()
          Add a beanshell console.
 void addDataWorld(boolean makeVisible)
          Add a new world to the workspace, to be initialized with default values.
 void addDataWorld(DataWorldFrame world, boolean makeVisible)
          Add a world to the workspace.
 void addGauge(boolean makeVisible)
          Add a new gauge to the workspace, to be initialized with default values.
 void addGauge(GaugeFrame gauge, boolean makeVisible)
          Add a gauge to the workspace.
 void addNetwork(boolean makeVisible)
          Add a network to the workspace, to be initialized with default values.
 void addNetwork(NetworkFrame network, boolean makeVisible)
          Add a network to the workspace.
 void addOdorWorld(boolean makeVisible)
          Add a new world to the workspace, to be initialized with default values.
 void addOdorWorld(OdorWorldFrame world, boolean makeVisible)
          Add a world to the workspace.
 void addTextWorld(boolean makeVisible)
          Adds a new text world to the workspace.
 void addTextWorld(TextWorldFrame world, boolean makeVisible)
          Adds a new text world to the workspace.
 void addVisionWorld(boolean makeVisible)
          Add a new world to the workspace, to be initialized with default values.
 void addVisionWorld(VisionWorldFrame world, boolean makeVisible)
          Add a world to the workspace.
 void attachAgentsToCouplings()
          When a new world is opened, see if any open networks have "null" couplings that that world's agents can attach to.
 void attachAgentsToCouplings(ArrayList couplings)
          Look for "null" couplings (couplings with no agent field), and try to find suitable agents to attach them to.
 boolean changesExist()
          Check whether there have been changes in the workspace or its components.
 void clearWorkspace()
          Remove all items (networks, worlds, etc.) from this workspace.
 void componentHidden(ComponentEvent arg0)
          Responds to component hidden events.
 void componentMoved(ComponentEvent arg0)
          Responds to component moved events.
 void componentResized(ComponentEvent arg0)
          Responds to component resized events.
 void componentShown(ComponentEvent arg0)
          Responds to component shown events.
protected  JMenuBar createMenuBar()
          Build the menu bar.
 void disposeAllFrames()
          Disposes all frames.
 void exportWorkspace()
          Export a workspace file: that is, save all workspace components and then a simple workspace file correpsonding to them.
 Agent findMatchingAgent(Coupling c)
          Associates a coupling with a matching agent in the current workspace.
 ArrayList getAgentList()
          Get a list of all agents in the workspace.
 ArrayList getCouplingList()
           
 File getCurrentFile()
           
 ArrayList getDataWorldChangeList()
           
 ArrayList getDataWorldList()
           
 GaugeFrame getGauge(String name)
          Return a named gauge, null otherwise.
 GaugeFrame getGaugeAssociatedWithNetwork(String networkName)
          Return the gauge associated with a network (by name), null otherwise.
 ArrayList getGaugeChangeList()
           
 ArrayList getGaugeList()
           
 JMenu getGaugeMenu(ActionListener al)
          Returns a menu which shows what gauges are currently in the workspace Returns null if ther are no gauges.
 ArrayList getGauges(NetworkFrame net)
          Get those gauges gauged by the given network.
 DataWorldFrame getLastDataWorld()
           
 GaugeFrame getLastGauge()
           
 NetworkFrame getLastNetwork()
           
 OdorWorldFrame getLastOdorWorld()
           
 JMenu getMotorCommandMenu(ActionListener al, NeuronNode theNode)
          Returns a menu which shows what possible sources there are for motor couplings in this workspace.
 NetworkFrame getNetwork(String name)
          Return a named network, null otherwise.
 ArrayList getNetworkChangeList()
           
 ArrayList getNetworkList()
           
 ArrayList getOdorWorldChangeList()
           
 ArrayList getOdorWorldList()
           
 JMenu getSensorIdMenu(ActionListener al, NeuronNode theNode)
          Returns a menu which shows what possible sources there are for sensory couplings in this workspace.
 ArrayList getWorldFrameList()
           
 ArrayList getWorldList()
           
 boolean hasWorkspaceChanged()
           
 void importWorkspace()
          Import a workspace.
static void main(String[] args)
          Simbrain main method.
 void menuCanceled(MenuEvent arg0)
          Responds to menu canceled events.
 void menuDeselected(MenuEvent arg0)
          Responds to menu deslected events.
 void menuSelected(MenuEvent arg0)
          Responds to menu selected events.
protected  void quit()
          Quit application.
 void removeAgentsFromCouplings(ArrayList agents)
          Remove all given agents from the couplng list, by setting the agent field on those couplings to null.
 void removeAgentsFromCouplings(World w)
          Remove all given agents from the couplng list, by setting the agent field on those couplings to null.
 void repaintAllNetworks()
          Repaint all open network panels.
 void saveFile()
          Show the save dialog.
 void setCurrentFile(File currentFile)
           
 void setDataWorldList(ArrayList dataWorldList)
           
 void setGaugeList(ArrayList gaugeList)
           
 void setNetworkList(ArrayList networkList)
           
 void setOdorWorldList(ArrayList odorWorldList)
           
 void setWorkspaceChanged(boolean workspaceChanged)
          Sets whether the workspace has been changed.
 void showSaveFileAsDialog()
          Shows the dialog for saving a workspace file.
 void windowActivated(WindowEvent arg0)
          Responds to window activated events.
 void windowClosed(WindowEvent arg0)
          Responds to window closed events.
 void windowClosing(WindowEvent arg0)
          Responds to window closing events.
 void windowDeactivated(WindowEvent arg0)
          Responds to window deactivated events.
 void windowDeiconified(WindowEvent arg0)
          Responds to window deiconified events.
 void windowIconified(WindowEvent arg0)
          Responds to window iconified events.
 void windowOpened(WindowEvent arg0)
          Responds to window opened events.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, 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, 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, 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, getMousePosition, getMouseWheelListeners, getName, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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 java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

Workspace

public Workspace()
Default constructor.

Method Detail

createMenuBar

protected JMenuBar createMenuBar()
Build the menu bar.

Returns:
the menu bar

actionPerformed

public void actionPerformed(ActionEvent e)
React to menu selections.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - Action event

addNetwork

public void addNetwork(boolean makeVisible)
Add a network to the workspace, to be initialized with default values.

Parameters:
makeVisible - Determines whether or not frame is visible when a new on is created

addConsole

public void addConsole()
Add a beanshell console. Currently for debugging.


addNetwork

public void addNetwork(NetworkFrame network,
                       boolean makeVisible)
Add a network to the workspace.

Parameters:
network - the networkFrame to add
makeVisible - Determines whether or not frame is visible when a new on is created

addOdorWorld

public void addOdorWorld(boolean makeVisible)
Add a new world to the workspace, to be initialized with default values.

Parameters:
makeVisible - Determines whether or not frame is visible when a new on is created

addOdorWorld

public void addOdorWorld(OdorWorldFrame world,
                         boolean makeVisible)
Add a world to the workspace.

Parameters:
world - the worldFrame to add
makeVisible - Determines whether or not frame is visible when a new on is created

addDataWorld

public void addDataWorld(boolean makeVisible)
Add a new world to the workspace, to be initialized with default values.

Parameters:
makeVisible - Determines whether or not frame is visible when a new on is created

addDataWorld

public void addDataWorld(DataWorldFrame world,
                         boolean makeVisible)
Add a world to the workspace.

Parameters:
world - the worldFrame to add
makeVisible - make the world visible after creating it. Used for opening worlds.

addVisionWorld

public void addVisionWorld(boolean makeVisible)
Add a new world to the workspace, to be initialized with default values.

Parameters:
makeVisible - Determines whether or not frame is visible when a new on is created

addVisionWorld

public void addVisionWorld(VisionWorldFrame world,
                           boolean makeVisible)
Add a world to the workspace.

Parameters:
world - the worldFrame to add
makeVisible - Determines whether or not frame is visible when a new on is created

addTextWorld

public void addTextWorld(boolean makeVisible)
Adds a new text world to the workspace.

Parameters:
makeVisible - Determines whether or not frame is visible when a new on is created

addTextWorld

public void addTextWorld(TextWorldFrame world,
                         boolean makeVisible)
Adds a new text world to the workspace.

Parameters:
world - Text world to add
makeVisible - Determines whether or not frame is visible when a new on is created

addGauge

public void addGauge(boolean makeVisible)
Add a new gauge to the workspace, to be initialized with default values.

Parameters:
makeVisible - Determines whether or not frame is visible when a new on is created

addGauge

public void addGauge(GaugeFrame gauge,
                     boolean makeVisible)
Add a gauge to the workspace.

Parameters:
gauge - the worldFrame to add
makeVisible - Determines whether or not frame is visible when a new on is created

getLastNetwork

public NetworkFrame getLastNetwork()
Returns:
reference to the last network added to this workspace

getLastOdorWorld

public OdorWorldFrame getLastOdorWorld()
Returns:
reference to the last world added to this workspace

getLastDataWorld

public DataWorldFrame getLastDataWorld()
Returns:
reference to the last world added to this workspace

getLastGauge

public GaugeFrame getLastGauge()
Returns:
reference to the last gauge added to this workspace

getGaugeAssociatedWithNetwork

public GaugeFrame getGaugeAssociatedWithNetwork(String networkName)
Return the gauge associated with a network (by name), null otherwise.

Parameters:
networkName - Name of network to associate gauge
Returns:
Returns the gauge frame, null if there are no gauges open

getGauge

public GaugeFrame getGauge(String name)
Return a named gauge, null otherwise.

Parameters:
name - Name of gauge
Returns:
Returns the gauge frame, null if there are no gauges open

getGauges

public ArrayList getGauges(NetworkFrame net)
Get those gauges gauged by the given network.

Parameters:
net - Network frame
Returns:
Returns the array list of gauges

getNetwork

public NetworkFrame getNetwork(String name)
Return a named network, null otherwise.

Parameters:
name - Name of network
Returns:
Returns the networks or null if no networks open

clearWorkspace

public void clearWorkspace()
Remove all items (networks, worlds, etc.) from this workspace.


disposeAllFrames

public void disposeAllFrames()
Disposes all frames.


importWorkspace

public void importWorkspace()
Import a workspace. Assumes the workspace file has the same name as the directory which contains the exported workspace.


showSaveFileAsDialog

public void showSaveFileAsDialog()
Shows the dialog for saving a workspace file.


exportWorkspace

public void exportWorkspace()
Export a workspace file: that is, save all workspace components and then a simple workspace file correpsonding to them.


saveFile

public void saveFile()
Show the save dialog.


repaintAllNetworks

public void repaintAllNetworks()
Repaint all open network panels. Useful when workspace changes happen that need to be broadcast; also essential when default workspace is initially opened.


main

public static void main(String[] args)
Simbrain main method. Creates a single instance of the Simulation class

Parameters:
args - currently not used

getNetworkList

public ArrayList getNetworkList()
Returns:
Returns the networkList.

setNetworkList

public void setNetworkList(ArrayList networkList)
Parameters:
networkList - The networkList to set.

getWorldFrameList

public ArrayList getWorldFrameList()
Returns:
Returns the worldFrameList.

getGaugeList

public ArrayList getGaugeList()
Returns:
Returns the gaugeList.

setGaugeList

public void setGaugeList(ArrayList gaugeList)
Parameters:
gaugeList - The gaugeList to set.

getAgentList

public ArrayList getAgentList()
Get a list of all agents in the workspace.

Returns:
the list of agents.

getMotorCommandMenu

public JMenu getMotorCommandMenu(ActionListener al,
                                 NeuronNode theNode)
Returns a menu which shows what possible sources there are for motor couplings in this workspace.

Parameters:
al - Action listener
theNode - Neuron node
Returns:
Returns the motor commands menu

getSensorIdMenu

public JMenu getSensorIdMenu(ActionListener al,
                             NeuronNode theNode)
Returns a menu which shows what possible sources there are for sensory couplings in this workspace.

Parameters:
al - Action listener
theNode - Neuron node
Returns:
Returns the sensor id menu

getGaugeMenu

public JMenu getGaugeMenu(ActionListener al)
Returns a menu which shows what gauges are currently in the workspace Returns null if ther are no gauges.

Parameters:
al - Action listener
Returns:
Returns the gauge menu

findMatchingAgent

public Agent findMatchingAgent(Coupling c)
Associates a coupling with a matching agent in the current workspace. Returns null if no such agent can be found. This method is used when opening networks, to see if any agents match the network's current couplings. 1) Try to find a matching world-type, world-name, and agent-name 2) Try to find a matching world-type and agent-name 3) Try to find a matching world-type and any agent

Parameters:
c - a temporary coupling which holds an agent-name, agent-type, and world-name
Returns:
a matching agent, or null of none is found

attachAgentsToCouplings

public void attachAgentsToCouplings(ArrayList couplings)
Look for "null" couplings (couplings with no agent field), and try to find suitable agents to attach them to. These can occur when a neuron's coupling field stay alive but a world is changed (e.g., an agent is deleted). Later, when a new world is opened, for example, this method is called so that the agents in those worlds can be attached to null couplings. More specifically, attach agents to to couplings where (1) the agent field is null (2) the agent's worldtype matches, and (3) the agent's name matches

Parameters:
couplings - the set of couplings to check

attachAgentsToCouplings

public void attachAgentsToCouplings()
When a new world is opened, see if any open networks have "null" couplings that that world's agents can attach to.


removeAgentsFromCouplings

public void removeAgentsFromCouplings(World w)
Remove all given agents from the couplng list, by setting the agent field on those couplings to null.

Parameters:
w - the world whose agents should be removed

removeAgentsFromCouplings

public void removeAgentsFromCouplings(ArrayList agents)
Remove all given agents from the couplng list, by setting the agent field on those couplings to null.

Parameters:
agents - the list of agents to be removed.

getCouplingList

public ArrayList getCouplingList()
Returns:
Returns the couplingList.

getWorldList

public ArrayList getWorldList()
Returns:
Returns the worldList.

getDataWorldList

public ArrayList getDataWorldList()
Returns:
Returns the dataWorldList.

setDataWorldList

public void setDataWorldList(ArrayList dataWorldList)
Parameters:
dataWorldList - The dataWorldList to set.

getOdorWorldList

public ArrayList getOdorWorldList()
Returns:
Returns the odorWorldList.

setOdorWorldList

public void setOdorWorldList(ArrayList odorWorldList)
Parameters:
odorWorldList - The odorWorldList to set.

changesExist

public boolean changesExist()
Check whether there have been changes in the workspace or its components.

Returns:
true if changes exist, false otherwise

getOdorWorldChangeList

public ArrayList getOdorWorldChangeList()
Returns:
a list of odor worlds that have changed since last save.

getNetworkChangeList

public ArrayList getNetworkChangeList()
Returns:
a list of networks that have changed since last save.

getDataWorldChangeList

public ArrayList getDataWorldChangeList()
Returns:
a list of data worlds that have changed since last save.

getGaugeChangeList

public ArrayList getGaugeChangeList()
Returns:
a list of gauges that have changed since last save.

quit

protected void quit()
Quit application.


windowOpened

public void windowOpened(WindowEvent arg0)
Responds to window opened events.

Specified by:
windowOpened in interface WindowListener
Parameters:
arg0 - Window event

windowClosing

public void windowClosing(WindowEvent arg0)
Responds to window closing events.

Specified by:
windowClosing in interface WindowListener
Parameters:
arg0 - Window event

windowClosed

public void windowClosed(WindowEvent arg0)
Responds to window closed events.

Specified by:
windowClosed in interface WindowListener
Parameters:
arg0 - Window event

windowIconified

public void windowIconified(WindowEvent arg0)
Responds to window iconified events.

Specified by:
windowIconified in interface WindowListener
Parameters:
arg0 - Window event

windowDeiconified

public void windowDeiconified(WindowEvent arg0)
Responds to window deiconified events.

Specified by:
windowDeiconified in interface WindowListener
Parameters:
arg0 - Window event

windowActivated

public void windowActivated(WindowEvent arg0)
Responds to window activated events.

Specified by:
windowActivated in interface WindowListener
Parameters:
arg0 - Window event

windowDeactivated

public void windowDeactivated(WindowEvent arg0)
Responds to window deactivated events.

Specified by:
windowDeactivated in interface WindowListener
Parameters:
arg0 - Window event

hasWorkspaceChanged

public boolean hasWorkspaceChanged()
Returns:
Has the workspace been changed.

setWorkspaceChanged

public void setWorkspaceChanged(boolean workspaceChanged)
Sets whether the workspace has been changed.

Parameters:
workspaceChanged - Has workspace been changed value

getCurrentFile

public File getCurrentFile()
Returns:
Returns the currentFile.

setCurrentFile

public void setCurrentFile(File currentFile)
Parameters:
currentFile - The current_file to set.

componentHidden

public void componentHidden(ComponentEvent arg0)
Responds to component hidden events.

Specified by:
componentHidden in interface ComponentListener
Parameters:
arg0 - Component event

componentMoved

public void componentMoved(ComponentEvent arg0)
Responds to component moved events.

Specified by:
componentMoved in interface ComponentListener
Parameters:
arg0 - Component event

componentResized

public void componentResized(ComponentEvent arg0)
Responds to component resized events.

Specified by:
componentResized in interface ComponentListener
Parameters:
arg0 - Component event

componentShown

public void componentShown(ComponentEvent arg0)
Responds to component shown events.

Specified by:
componentShown in interface ComponentListener
Parameters:
arg0 - Component event

menuSelected

public void menuSelected(MenuEvent arg0)
Responds to menu selected events.

Specified by:
menuSelected in interface MenuListener
Parameters:
arg0 - Menu event

menuDeselected

public void menuDeselected(MenuEvent arg0)
Responds to menu deslected events.

Specified by:
menuDeselected in interface MenuListener
Parameters:
arg0 - Menu event

menuCanceled

public void menuCanceled(MenuEvent arg0)
Responds to menu canceled events.

Specified by:
menuCanceled in interface MenuListener
Parameters:
arg0 - Menu event