jbcl.view Package 

SingletonModelView interface

com.borland.jbcl.view.SingletonModelView
   +----com.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(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.

model

 public void addModelListener(SingletonModelListener listener)
 public void removeModelListener(SingletonModelListener listener)