net.sf.genuine.organizer
Interface ComponentListener

All Known Implementing Classes:
AbstractComponent, ComponentAdapter

public interface ComponentListener

Callback listener for modules to be notified when a component is shown/hidden, activated/deactivated. Listeners are registered by calling the ComponentManager.

Example for a visual component that registers itself:

getComponentManager().addComponentListener(getModuleId(), getComponentId(), this);

Author:
Tim Wellhausen

Method Summary
 void componentActivated(java.lang.String moduleId, java.lang.String componentId, java.lang.String instanceId)
          Called when a component has been activated, i.e. has just received focus.
 void componentDeactivated(java.lang.String moduleId, java.lang.String componentId, java.lang.String instanceId)
          Called when a component has been deactivated, i.e. has just lost focus.
 void componentHidden(java.lang.String moduleId, java.lang.String componentId, java.lang.String instanceId)
          Called when a component has just been hidden.
 void componentShown(java.lang.String moduleId, java.lang.String componentId, java.lang.String instanceId)
          Called when a component has been made visible.
 

Method Detail

componentShown

public void componentShown(java.lang.String moduleId,
                           java.lang.String componentId,
                           java.lang.String instanceId)
Called when a component has been made visible.


componentHidden

public void componentHidden(java.lang.String moduleId,
                            java.lang.String componentId,
                            java.lang.String instanceId)
Called when a component has just been hidden.


componentActivated

public void componentActivated(java.lang.String moduleId,
                               java.lang.String componentId,
                               java.lang.String instanceId)
Called when a component has been activated, i.e. has just received focus.


componentDeactivated

public void componentDeactivated(java.lang.String moduleId,
                                 java.lang.String componentId,
                                 java.lang.String instanceId)
Called when a component has been deactivated, i.e. has just lost focus.