jbcl.view Package
com.borland.jbcl.view.SingletonModelView +----com.borland.jbcl.view.SingletonView
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.
public SingletonModel getModel() public void setModel(SingletonModel model)Determines the
SingletonModel
that contains the data for this view.
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
.
public WritableSingletonModel getWriteModel()Provides access to a read/write model if one exists.
public void addModelListener(SingletonModelListener listener) public void removeModelListener(SingletonModelListener listener)