org.objectweb.fractal.gui.menu.control
Class OpenAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.objectweb.fractal.swing.AbstractAction
          extended byorg.objectweb.fractal.gui.menu.control.OpenAction
All Implemented Interfaces:
javax.swing.Action, org.objectweb.fractal.swing.ActionAttributes, java.awt.event.ActionListener, org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.api.control.BindingController, java.lang.Cloneable, java.util.EventListener, org.objectweb.fractal.api.control.LifeCycleController, java.io.Serializable

public class OpenAction
extends org.objectweb.fractal.swing.AbstractAction
implements org.objectweb.fractal.api.control.BindingController, org.objectweb.fractal.api.control.LifeCycleController

An action to open a configuration stored in a repository.

See Also:
Serialized Form

Field Summary
static java.lang.String CONFIGURATION_BINDING
          A mandatory client interface bound to a configuration model.
static java.lang.String GRAPH_BINDING
          An optional client interface bound to a graph model.
static java.lang.String REPOSITORY_BINDING
          A mandatory client interface bound to a repository.
static java.lang.String SAVE_ACTION_BINDING
          An optional client interface bound to a save action.
static java.lang.String SELECTION_BINDING
          A mandatory client interface bound to a selection model.
static java.lang.String STORAGE_BINDING
          A mandatory client interface bound to a storage.
static java.lang.String USER_DATA_BINDING
          An optional client interface bound to a userdata.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
OpenAction()
          Constructs a new OpenAction component.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String getFcState()
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void startFc()
           
 void stopFc()
           
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class org.objectweb.fractal.swing.AbstractAction
getAcceleratorKey, getIconURL, getName, getToolTipText, setAcceleratorKey, setIconURL, setName, setToolTipText
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_BINDING

public static final java.lang.String CONFIGURATION_BINDING
A mandatory client interface bound to a configuration model. This is the configuration into which the opened configurations are loaded.

See Also:
Constant Field Values

GRAPH_BINDING

public static final java.lang.String GRAPH_BINDING
An optional client interface bound to a graph model. This is the model into which the opened configuration graphical information are loaded.

See Also:
Constant Field Values

SELECTION_BINDING

public static final java.lang.String SELECTION_BINDING
A mandatory client interface bound to a selection model. This model is reinitialized after a configuration has been opened.

See Also:
Constant Field Values

REPOSITORY_BINDING

public static final java.lang.String REPOSITORY_BINDING
A mandatory client interface bound to a repository. This repository is used to load the configurations stored in the storage.

See Also:
Constant Field Values

STORAGE_BINDING

public static final java.lang.String STORAGE_BINDING
A mandatory client interface bound to a storage. This is the storage from which the opened configurations are read.

See Also:
Constant Field Values

USER_DATA_BINDING

public static final java.lang.String USER_DATA_BINDING
An optional client interface bound to a userdata. This is the storage into/from which some personal data peculiar to each user are written/read.

See Also:
Constant Field Values

SAVE_ACTION_BINDING

public static final java.lang.String SAVE_ACTION_BINDING
An optional client interface bound to a save action. This action is used to save the current configuration, before opening a new one.

See Also:
Constant Field Values
Constructor Detail

OpenAction

public OpenAction()
Constructs a new OpenAction component.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

getFcState

public java.lang.String getFcState()
Specified by:
getFcState in interface org.objectweb.fractal.api.control.LifeCycleController

startFc

public void startFc()
Specified by:
startFc in interface org.objectweb.fractal.api.control.LifeCycleController

stopFc

public void stopFc()
Specified by:
stopFc in interface org.objectweb.fractal.api.control.LifeCycleController

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener