org.pm4j.core.pm.impl
Class PmOnEventMethodCallDispatcher

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmOnEventMethodCallDispatcher

public class PmOnEventMethodCallDispatcher
extends java.lang.Object

Provides convenience 'onPmXyzChange' methods that are sometimes easier to use than event listeners instances.

Author:
olaf boede

Constructor Summary
PmOnEventMethodCallDispatcher()
           
 
Method Summary
protected  void dispatchToOnEventMethodCalls(PmEvent event, int eventMask)
          Calls the related on...() methods.
protected  void onPmEnablementChange(PmEvent event)
          Is called whenever an event with the flag PmEvent.ENABLEMENT_CHANGE was fired for this PM.
protected  void onPmOptionSetChange(PmEvent event)
           
protected  void onPmStyleClassChange(PmEvent event)
           
protected  void onPmTitleChange(PmEvent event)
          Is called whenever an event with the flag PmEvent.TITLE_CHANGE was fired for this PM.
protected  void onPmTooltipChange(PmEvent event)
          Is called whenever an event with the flag PmEvent.TOOLTIP_CHANGE was fired for this PM.
protected  void onPmValidationStateChange(PmEvent event)
           
protected  void onPmValueChange(PmEvent event)
          Is called whenever an event with the flag PmEvent.VALUE_CHANGE was fired for this PM.
protected  void onPmVisibilityChange(PmEvent event)
          Is called whenever an event with the flag PmEvent.VISIBILITY_CHANGE was fired for this PM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmOnEventMethodCallDispatcher

public PmOnEventMethodCallDispatcher()
Method Detail

dispatchToOnEventMethodCalls

protected void dispatchToOnEventMethodCalls(PmEvent event,
                                            int eventMask)
Calls the related on...() methods. The set of methods to call is determined by the given eventMask parameter.

Parameters:
event - The event to propagate.
eventMask - Defines the set of on-methods to be called.

onPmEnablementChange

protected void onPmEnablementChange(PmEvent event)
Is called whenever an event with the flag PmEvent.ENABLEMENT_CHANGE was fired for this PM.

Parameters:
event - The fired event.

onPmValueChange

protected void onPmValueChange(PmEvent event)
Is called whenever an event with the flag PmEvent.VALUE_CHANGE was fired for this PM.

Parameters:
event - The fired event.

onPmTitleChange

protected void onPmTitleChange(PmEvent event)
Is called whenever an event with the flag PmEvent.TITLE_CHANGE was fired for this PM.

Parameters:
event - The fired event.

onPmTooltipChange

protected void onPmTooltipChange(PmEvent event)
Is called whenever an event with the flag PmEvent.TOOLTIP_CHANGE was fired for this PM.

Parameters:
event - The fired event.

onPmVisibilityChange

protected void onPmVisibilityChange(PmEvent event)
Is called whenever an event with the flag PmEvent.VISIBILITY_CHANGE was fired for this PM.

Parameters:
event - The fired event.

onPmOptionSetChange

protected void onPmOptionSetChange(PmEvent event)

onPmValidationStateChange

protected void onPmValidationStateChange(PmEvent event)

onPmStyleClassChange

protected void onPmStyleClassChange(PmEvent event)