de.ukn.hci.squidy.manager.controls
Class AbstractBasicControl<T,C extends JComponent>

java.lang.Object
  extended by de.ukn.hci.squidy.manager.controls.AbstractBasicControl<T,C>
All Implemented Interfaces:
IBasicControl<T,C>
Direct Known Subclasses:
CheckBoxControl, ComboBoxControl, FileChooserControl, GaugeControl, ImagePanelControl, SliderControl, SpinnerControl, TextFieldControl

public abstract class AbstractBasicControl<T,C extends JComponent>
extends Object
implements IBasicControl<T,C>

AbstractBasicControl.

 Date: Mar 22, 2009
 Time: 2:54:16 PM
 

Since:
1.0.0
Version:
$Id: AbstractBasicControl.java 242 2010-04-15 14:39:16Z raedle $
Author:
Roman R&aumldle
Roman.Raedle@uni-konstanz.de
Human-Computer Interaction Group
University of Konstanz

Constructor Summary
AbstractBasicControl(C component)
           
 
Method Summary
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
           
 void addPropertyUpdateListener(PropertyUpdateListener<T> listener)
           
 void customPInputEvent(edu.umd.cs.piccolo.event.PInputEvent event)
           
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
           
protected  void firePropertyUpdateEvent(Object value)
           
 C getComponent()
           
protected abstract  void reconcileComponent()
           
 void removePropertyUpdateListener(PropertyUpdateListener<T> listener)
           
 void setValueWithoutPropertyUpdate(T value)
          If this method will be used the value will be set on the component without releasing any property update events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.ukn.hci.squidy.manager.IBasicControl
getValue, setValue
 

Constructor Detail

AbstractBasicControl

public AbstractBasicControl(C component)
Parameters:
component -
Method Detail

customPInputEvent

public void customPInputEvent(edu.umd.cs.piccolo.event.PInputEvent event)

getComponent

public C getComponent()
Specified by:
getComponent in interface IBasicControl<T,C extends JComponent>

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface IBasicControl<T,C extends JComponent>

firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)

addPropertyUpdateListener

public void addPropertyUpdateListener(PropertyUpdateListener<T> listener)
Specified by:
addPropertyUpdateListener in interface IBasicControl<T,C extends JComponent>

removePropertyUpdateListener

public void removePropertyUpdateListener(PropertyUpdateListener<T> listener)
Specified by:
removePropertyUpdateListener in interface IBasicControl<T,C extends JComponent>

reconcileComponent

protected abstract void reconcileComponent()

setValueWithoutPropertyUpdate

public void setValueWithoutPropertyUpdate(T value)
If this method will be used the value will be set on the component without releasing any property update events.

Parameters:
value - The new value of the component.

firePropertyUpdateEvent

protected void firePropertyUpdateEvent(Object value)
Parameters:
value -


Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.