borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

SingletonModel interface

borland.jbcl.model.SingletonModel
   +----borland.jbcl.model.WritableSingletonModel

About the SingletonModel interface

Methods  Event Listeners

Implemented by CheckboxControl, ChoiceControl, FieldControl, ImageControl, LocatorControl, TextAreaControl, TextFieldControl, SingletonDataSetManager, BasicSingletonContainer

Contains the methods required for a read-only singleton model object. A singleton model object holds a single data item only and is used by components that display a single item at a time, such as a check box control. Usually you extend a class that implements this interface, such as "BasicSingletonContainer. You can, however, implement the interface directly.

If you are developing a read-and-write component that accesses a single data item, implement the WritableSingletonModel interface instead.

See also: Models in JBCL, Singleton model classes and interfaces


SingletonModel methods

Methods defined in this interface

SingletonModel event listeners


SingletonModel methods

get()

  public Object get()
Obtains the data object stored in a singleton-model container.

SingletonModel event listeners

This interface is a source for the following event sets. For information on the JBCL event sets, see Events in JBCL.

model

 public void addModelListener(borland.jbcl.model.SingletonModelListener listener)
 public void removeModelListener(borland.jbcl.model.SingletonModelListener listener)