borland Packages  Class Hierarchy  jbcl.view Package  Index 

SingletonModelView interface

borland.jbcl.view.SingletonModelView
   +----borland.jbcl.view.SingletonView

About the SingletonModelView interface

Properties  Event Listeners

Implemented by ButtonControl, CheckboxControl, ChoiceControl, FieldControl, ImageControl, LabelControl, LocatorControl, TextAreaControl, TextFieldControl, ButtonView, CheckboxView, ChoiceView, FieldView, LabelView, TextAreaView, TextFieldView

Classes that implement the SingletonModelView interface have the simple properties that exist on all views of a SingletonModel data source.


SingletonModelView properties

*Read-only properties **Write-only properties

Properties defined in this interface

SingletonModelView event listeners


SingletonModelView properties

model

 public SingletonModel getModel()
 public void setModel(borland.jbcl.model.SingletonModel model)
Determines the SingletonModel that contains the data for this view.

readOnly

 public boolean isReadOnly()
 public void setReadOnly(boolean readOnly)
Determines whether the data item in the view can be modified. When the readOnly parameter is set to true, readOnly always returns true. If the parameter is set to false, readOnly still returns true if the model is not a WritableSingletonModel.

writeModel

 public WritableSingletonModel getWriteModel()
Provides access to a read/write model if one exists.

SingletonModelView 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)