org.objectweb.fractal.gui.dialog.control
Class BasicDialogController

java.lang.Object
  extended byorg.objectweb.fractal.gui.dialog.control.BasicDialogController
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, DialogViewListener

public class BasicDialogController
extends java.lang.Object
implements DialogViewListener, org.objectweb.fractal.api.control.BindingController

A controller component for dialog view components. This component modifies a dialog model, in reaction to events emitted by a dialog view.


Field Summary
static java.lang.String CONFIGURATION_BINDING
          A mandatory client interface bound to a configuration model.
static java.lang.String DIALOG_MODEL_BINDING
          A mandatory client interface bound to a dialog model.
static java.lang.String FACTORY_BINDING
          A mandatory client interface bound to a factory.
static java.lang.String SELECTION_BINDING
          A mandatory client interface bound to a selection model.
 
Constructor Summary
BasicDialogController()
          Constructs a new BasicDialogController component.
 
Method Summary
 void addAttributeButtonClicked()
          Notifies this listener that the "add attribute" button has been clicked.
 void addClientInterfaceButtonClicked()
          Notifies this listener that the "add client interface" button has been clicked.
 void addServerInterfaceButtonClicked()
          Notifies this listener that the "add server interface" button has been clicked.
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void removeAttributeButtonClicked()
          Notifies this listener that the "remove attribute" button has been clicked.
 void removeClientInterfaceButtonClicked()
          Notifies this listener that the "remove client interface" button has been clicked.
 void removeServerInterfaceButtonClicked()
          Notifies this listener that the "remove server interface" button has been clicked.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, 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 model is used to get the component to which interfaces or attributes must be added or removed by this controller (the component used is the root component of the configuration).

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 used to get the interface that must be removed when a "remove interface" button is clicked.

See Also:
Constant Field Values

DIALOG_MODEL_BINDING

public static final java.lang.String DIALOG_MODEL_BINDING
A mandatory client interface bound to a dialog model. This model is used to get selection model of the attribute table, which is itself used to find the attribute to be removed when the "remove attribute" button is clicked.

See Also:
Constant Field Values

FACTORY_BINDING

public static final java.lang.String FACTORY_BINDING
A mandatory client interface bound to a factory. This factory is used to create interfaces when a "add interface" button is clicked.

See Also:
Constant Field Values
Constructor Detail

BasicDialogController

public BasicDialogController()
Constructs a new BasicDialogController 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

addClientInterfaceButtonClicked

public void addClientInterfaceButtonClicked()
Description copied from interface: DialogViewListener
Notifies this listener that the "add client interface" button has been clicked.

Specified by:
addClientInterfaceButtonClicked in interface DialogViewListener

removeClientInterfaceButtonClicked

public void removeClientInterfaceButtonClicked()
Description copied from interface: DialogViewListener
Notifies this listener that the "remove client interface" button has been clicked.

Specified by:
removeClientInterfaceButtonClicked in interface DialogViewListener

addServerInterfaceButtonClicked

public void addServerInterfaceButtonClicked()
Description copied from interface: DialogViewListener
Notifies this listener that the "add server interface" button has been clicked.

Specified by:
addServerInterfaceButtonClicked in interface DialogViewListener

removeServerInterfaceButtonClicked

public void removeServerInterfaceButtonClicked()
Description copied from interface: DialogViewListener
Notifies this listener that the "remove server interface" button has been clicked.

Specified by:
removeServerInterfaceButtonClicked in interface DialogViewListener

addAttributeButtonClicked

public void addAttributeButtonClicked()
Description copied from interface: DialogViewListener
Notifies this listener that the "add attribute" button has been clicked.

Specified by:
addAttributeButtonClicked in interface DialogViewListener

removeAttributeButtonClicked

public void removeAttributeButtonClicked()
Description copied from interface: DialogViewListener
Notifies this listener that the "remove attribute" button has been clicked.

Specified by:
removeAttributeButtonClicked in interface DialogViewListener