Joda System API

org.joda.swing
Interface JComponentBinder

All Known Implementing Classes:
PropertyBooleanRadioButtonGroupModel, PropertyCheckBoxModel, PropertyListModel, PropertyPlainDocument

public interface JComponentBinder

JComponentBinder is an interface implemented by all the special models written to bind the model to Swing.

Author:
Stephen Colebourne

Method Summary
 void bind(javax.swing.JComponent component, Property property)
          Bind a Property object to the component.
 void setActive(boolean active)
          Set the active state of the binding.
 

Method Detail

setActive

public void setActive(boolean active)
Set the active state of the binding. When inactive, changes to the model should not affect the GUI and vice versa. When set to active again, the state of the model should be set to the GUI (overriding any changes in the mean time). The initial state of this in implementors should be true.


bind

public void bind(javax.swing.JComponent component,
                 Property property)
Bind a Property object to the component.

Parameters:
component - the component to bind
property - the property to bind to

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.