Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.embl.ebi.escience.scuflui
Interface ScuflUIComponent  view ScuflUIComponent download ScuflUIComponent.java

All Known Implementing Classes:
DotTextArea, EnactorLaunchPanel, ScuflDiagram, ScuflModelExplorer, ScuflSemanticMarkupEditor, XScuflTextArea

public interface ScuflUIComponent

The interface implemented by all Scufl UI widgets specifying how they bind and detach from an instance of a ScuflModel. Any class implementing this interface must be a subclass of JComponent; unfortunately there's no way that I know of to enforce this constraint in the language, but if you don't stick to it your components won't work.


Method Summary
 void attachToModel(org.embl.ebi.escience.scufl.ScuflModel model)
          Directs the implementing component to bind to the specified ScuflModel instance, refresh its internal state from the model and commence listening to events, maintaining its state as these events dictate.
 void detachFromModel()
          Directs the implementing component to detach from the model, set its internal state to some suitable blank (i.e.
 java.lang.String getName()
          Get the preferred name of this component, for titles in windows etc.
 

Method Detail

attachToModel

public void attachToModel(org.embl.ebi.escience.scufl.ScuflModel model)
Directs the implementing component to bind to the specified ScuflModel instance, refresh its internal state from the model and commence listening to events, maintaining its state as these events dictate.


detachFromModel

public void detachFromModel()
Directs the implementing component to detach from the model, set its internal state to some suitable blank (i.e. blank image, no text in a text field etc) and desist from listening to model events.


getName

public java.lang.String getName()
Get the preferred name of this component, for titles in windows etc.