|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.gui.dialog.model.BasicDialogModel
Basic implementation of the DialogModel
interface. This mode listens
to the configuration and selection models in order to update itself when the
configuration or the selection changes.
Field Summary | |
static String |
CONFIGURATION_BINDING
A mandatory client interface bound to a configuration
model. |
static String |
SELECTION_BINDING
A mandatory client interface bound to a selection model. |
Constructor Summary | |
BasicDialogModel()
Constructs a new BasicDialogModel component. |
Method Summary | |
void |
attributeChanged(Component component,
String attributeName,
String oldValue)
Notifies this listener that the value of an attribute has changed. |
void |
attributeControllerChanged(Component component,
String oldValue)
Notifies this listener that the attribute controller of a component has changed. |
void |
bindFc(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
void |
changeCountChanged(Component component,
long changeCount)
Notifies this listener that all the change count of the configuration has changed. |
void |
clientInterfaceAdded(Component component,
ClientInterface i,
int index)
Notifies this listener that a client interface has been added to a component. |
void |
clientInterfaceRemoved(Component component,
ClientInterface i,
int index)
Notifies this listener that a client interface has been removed from a component. |
void |
componentControllerDescriptorChanged(Component component,
String oldValue)
Notifies this listener that the component controller descriptor of a component has changed. |
Document |
getAttrControllerFieldModel()
Returns the model for the text field containing the component's attribute controller. |
TableModel |
getAttributesTableModel()
Returns the model for the table representing the component's attributes. |
ListSelectionModel |
getAttributesTableSelectionModel()
Returns the selection model for the table representing the component's attributes. |
TableModel |
getClientInterfacesTableModel()
Returns the model for the table representing the external client interfaces. |
ListSelectionModel |
getClientInterfacesTableSelectionModel()
Returns the selection model for the table representing the external client interfaces. |
Document |
getCompControllerDescFieldModel()
Returns the model for the text field containing the component's controller descriptor. |
Document |
getImplementationFieldModel()
Returns the model for the text field containing the component's implementation. |
Document |
getNameFieldModel()
Returns the model for the text field containing the component's name. |
TableModel |
getServerInterfacesTableModel()
Returns the model for the table representing the external server interfaces. |
InterfaceTableSelectionModel |
getServerInterfacesTableSelectionModel()
Returns the selection model for the table representing the external server interfaces. |
Document |
getTmplControllerDescFieldModel()
Returns the model for the text field containing the component's template controller descriptor. |
Document |
getTypeFieldModel()
Returns the model for the text field containing the component's type. |
void |
implementationChanged(Component component,
String oldValue)
Notifies this listener that the implementation of a component has changed. |
void |
interfaceBound(ClientInterface citf,
ServerInterface sitf)
Notifies this listener that an interface has been bound. |
void |
interfaceCardinalityChanged(Interface i,
boolean oldValue)
Notifies this listener that the cardinality of an interface has changed. |
void |
interfaceContingencyChanged(Interface i,
boolean oldValue)
Notifies this listener that the contigency of an interface has changed. |
void |
interfaceNameChanged(Interface i,
String oldValue)
Notifies this listener that the name of an interface has changed. |
void |
interfaceRebound(ClientInterface citf,
ServerInterface oldSitf)
Notifies this listener that an interface has been rebound. |
void |
interfaceSignatureChanged(Interface i,
String oldValue)
Notifies this listener that the signature of an interface has changed. |
void |
interfaceUnbound(ClientInterface citf,
ServerInterface sitf)
Notifies this listener that an interface has been unbound. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
void |
nameChanged(Component component,
String oldValue)
Notifies this listener that the name of a component has changed. |
void |
rootComponentChanged(Component oldValue)
Notifies this listener that the root component has changed. |
void |
selectionChanged()
Notifies this listener that the selection has changed. |
void |
serverInterfaceAdded(Component component,
ServerInterface i,
int index)
Notifies this listener that a server interface has been added to a component. |
void |
serverInterfaceRemoved(Component component,
ServerInterface i,
int index)
Notifies this listener that a server interface has been removed from a component. |
void |
subComponentAdded(Component parent,
Component child,
int index)
Notifies this listener that a sub component has been added to a component. |
void |
subComponentRemoved(Component parent,
Component child,
int index)
Notifies this listener that a sub component has been removed from a component. |
void |
templateControllerDescriptorChanged(Component component,
String oldValue)
Notifies this listener that the template controller descriptor of a component has changed. |
void |
typeChanged(Component component,
String oldValue)
Notifies this listener that the type of a component has changed. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONFIGURATION_BINDING
configuration
model. This configuration is used to get the component on which this dialog
model is based (this component is the root component of the configuration).
public static final String SELECTION_BINDING
selection
model.
This is the model on which the Swing list selection models of this model
are based.
Constructor Detail |
public BasicDialogModel()
BasicDialogModel
component.
Method Detail |
public String[] listFc()
BindingController
listFc
in interface BindingController
public Object lookupFc(String clientItfName)
BindingController
bindFc
).
lookupFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName, Object serverItf)
BindingController
bindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.public TableModel getClientInterfacesTableModel()
DialogModel
getClientInterfacesTableModel
in interface DialogModel
public ListSelectionModel getClientInterfacesTableSelectionModel()
DialogModel
getClientInterfacesTableSelectionModel
in interface DialogModel
public TableModel getServerInterfacesTableModel()
DialogModel
getServerInterfacesTableModel
in interface DialogModel
public InterfaceTableSelectionModel getServerInterfacesTableSelectionModel()
DialogModel
getServerInterfacesTableSelectionModel
in interface DialogModel
public TableModel getAttributesTableModel()
DialogModel
getAttributesTableModel
in interface DialogModel
public ListSelectionModel getAttributesTableSelectionModel()
DialogModel
getAttributesTableSelectionModel
in interface DialogModel
public Document getNameFieldModel()
DialogModel
getNameFieldModel
in interface DialogModel
public Document getTypeFieldModel()
DialogModel
getTypeFieldModel
in interface DialogModel
public Document getImplementationFieldModel()
DialogModel
getImplementationFieldModel
in interface DialogModel
public Document getAttrControllerFieldModel()
DialogModel
getAttrControllerFieldModel
in interface DialogModel
public Document getTmplControllerDescFieldModel()
DialogModel
getTmplControllerDescFieldModel
in interface DialogModel
public Document getCompControllerDescFieldModel()
DialogModel
getCompControllerDescFieldModel
in interface DialogModel
public void changeCountChanged(Component component, long changeCount)
ConfigurationListener
changeCountChanged
in interface ConfigurationListener
changeCount
- the new change count of the configuration.public void rootComponentChanged(Component oldValue)
ConfigurationListener
rootComponentChanged
in interface ConfigurationListener
oldValue
- the old root component of the configuration.public void nameChanged(Component component, String oldValue)
ConfigurationListener
nameChanged
in interface ConfigurationListener
component
- the component whose name has changed.oldValue
- the old name of the component.public void typeChanged(Component component, String oldValue)
ConfigurationListener
typeChanged
in interface ConfigurationListener
component
- the component whose type has changed.oldValue
- the old type of the component.public void implementationChanged(Component component, String oldValue)
ConfigurationListener
implementationChanged
in interface ConfigurationListener
component
- the component whose implementation has changed.oldValue
- the old implementation of the component.public void interfaceNameChanged(Interface i, String oldValue)
ConfigurationListener
interfaceNameChanged
in interface ConfigurationListener
i
- the interface whose name has changed.oldValue
- the old name of the interface.public void interfaceSignatureChanged(Interface i, String oldValue)
ConfigurationListener
interfaceSignatureChanged
in interface ConfigurationListener
i
- the interface whose signature has changed.oldValue
- the old signature of the interface.public void interfaceContingencyChanged(Interface i, boolean oldValue)
ConfigurationListener
interfaceContingencyChanged
in interface ConfigurationListener
i
- the interface whose contingency has changed.oldValue
- the old contingency of the interface.public void interfaceCardinalityChanged(Interface i, boolean oldValue)
ConfigurationListener
interfaceCardinalityChanged
in interface ConfigurationListener
i
- the interface whose cardinality has changed.oldValue
- the old cardinality of the interface.public void clientInterfaceAdded(Component component, ClientInterface i, int index)
ConfigurationListener
clientInterfaceAdded
in interface ConfigurationListener
component
- the component into which the new interface has been added.i
- the interface that has been added.index
- the index of this interface in the client interface list of
the component.public void clientInterfaceRemoved(Component component, ClientInterface i, int index)
ConfigurationListener
clientInterfaceRemoved
in interface ConfigurationListener
component
- the component from which the interface has been removed.i
- the interface that has been removed.index
- the index of this interface in the client interface list of
the component.public void serverInterfaceAdded(Component component, ServerInterface i, int index)
ConfigurationListener
serverInterfaceAdded
in interface ConfigurationListener
component
- the component into which the new interface has been added.i
- the interface that has been added.index
- the index of this interface in the server interface list of
the component.public void serverInterfaceRemoved(Component component, ServerInterface i, int index)
ConfigurationListener
serverInterfaceRemoved
in interface ConfigurationListener
component
- the component from which the interface has been removed.i
- the interface that has been removed.index
- the index of this interface in the server interface list of
the component.public void interfaceBound(ClientInterface citf, ServerInterface sitf)
ConfigurationListener
interfaceBound
in interface ConfigurationListener
citf
- the client interface that has been bound.sitf
- the server interface to which it has been bound.public void interfaceRebound(ClientInterface citf, ServerInterface oldSitf)
ConfigurationListener
interfaceRebound
in interface ConfigurationListener
citf
- the client interface that has been rebound.oldSitf
- the server interface to which it was bound.public void interfaceUnbound(ClientInterface citf, ServerInterface sitf)
ConfigurationListener
interfaceUnbound
in interface ConfigurationListener
citf
- the client interface that has been unbound.sitf
- the server interface to which it was bound.public void attributeControllerChanged(Component component, String oldValue)
ConfigurationListener
attributeControllerChanged
in interface ConfigurationListener
component
- the component whose attribute controller has changed.oldValue
- the old attribute controller of the component.public void attributeChanged(Component component, String attributeName, String oldValue)
ConfigurationListener
attributeChanged
in interface ConfigurationListener
component
- the component whose attribute has changed.attributeName
- the name of the attribute whose value has changed.oldValue
- the old value of the attribute.public void templateControllerDescriptorChanged(Component component, String oldValue)
ConfigurationListener
templateControllerDescriptorChanged
in interface ConfigurationListener
component
- the component whose template contoller descriptor has
changed.oldValue
- the old value of the template controller descriptor.public void componentControllerDescriptorChanged(Component component, String oldValue)
ConfigurationListener
componentControllerDescriptorChanged
in interface ConfigurationListener
component
- the component whose component contoller descriptor has
changed.oldValue
- the old value of the component controller descriptor.public void subComponentAdded(Component parent, Component child, int index)
ConfigurationListener
subComponentAdded
in interface ConfigurationListener
parent
- the component into which the sub component has been added.child
- the sub component that has been added.index
- the index of this sub component in the sub component list of
the parent component.public void subComponentRemoved(Component parent, Component child, int index)
ConfigurationListener
subComponentRemoved
in interface ConfigurationListener
parent
- the component from which the sub component has been removed.child
- the sub component that has been removed.index
- the index of this sub component in the sub component list of
the parent component.public void selectionChanged()
SelectionListener
selectionChanged
in interface SelectionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |