org.commonreality.sensors.swing.component
Class DefaultComponentProcessor

java.lang.Object
  extended by org.commonreality.sensors.swing.component.DefaultComponentProcessor
All Implemented Interfaces:
IComponentProcessor

public class DefaultComponentProcessor
extends java.lang.Object
implements IComponentProcessor

handles the visibility, location, size, color, token, type and text processing for most gui components (AWT and Swing). This does not include AWT menu components ( but does include swing menus), and editable text regions ( TextComponent and JTextComponent). The editable text regions have been excluded because they should be producing mutlitple IAfferentObjects for each of the text spans, and this general processor doesn't handle that (yet).

This class will attempt to handle more complex components such as JTable and JTree but it will onl handle the simplest cases.

Author:
harrison

Constructor Summary
DefaultComponentProcessor()
           
 
Method Summary
 void added(java.lang.Object component, ISensor sensor)
           
 java.util.Map<IIdentifier,java.util.Collection<DeltaTracker<AfferentObject>>> getUpdates()
           
 void installed(ComponentManager manager)
           
 void refresh(java.lang.Object component, ISensor sensor, java.lang.Object refreshHint)
           
 void removed(java.lang.Object component, ISensor sensor)
           
 void uninstalled(ComponentManager manager)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentProcessor

public DefaultComponentProcessor()
Method Detail

getUpdates

public java.util.Map<IIdentifier,java.util.Collection<DeltaTracker<AfferentObject>>> getUpdates()
Specified by:
getUpdates in interface IComponentProcessor

added

public void added(java.lang.Object component,
                  ISensor sensor)
Specified by:
added in interface IComponentProcessor

removed

public void removed(java.lang.Object component,
                    ISensor sensor)
Specified by:
removed in interface IComponentProcessor

refresh

public void refresh(java.lang.Object component,
                    ISensor sensor,
                    java.lang.Object refreshHint)
Specified by:
refresh in interface IComponentProcessor

installed

public void installed(ComponentManager manager)
Specified by:
installed in interface IComponentProcessor

uninstalled

public void uninstalled(ComponentManager manager)
Specified by:
uninstalled in interface IComponentProcessor