org.scopemvc.view.swing
Interface Refreshable

All Known Implementing Classes:
SAbstractListModel, SCheckBox, SComboBox, SLabel, SList, SListSelectionModel, SModelAction, SModelButton, SPanel, SPasswordField, SRadioButton, SSlider, STable, STextArea, STextField

public interface Refreshable

For Swing widgets that can be manually forced to update themselves with the current state of their bound model.

Version:
$Revision: 1.4 $ $Date: 2002/09/13 17:04:38 $
Author:
Steve Meyfroidt

Method Summary
 void refresh()
          Update the widget with the current state of the bound model.
 

Method Detail

refresh

public void refresh()
Update the widget with the current state of the bound model.
Probably something like this:
     Object propertyValue = boundModel.getPropertyValue();
     boolean propertyReadOnly = boundModel.getPropertyReadOnly();
     updateFromProperty(propertyValue, propertyReadOnly);
 



Copyright © 2000-2002 The Scope Team. All Rights Reserved.