qflib 0.98.1

de.qfs.lib.config
Class RegistrationHelper

java.lang.Object
  |
  +--de.qfs.lib.config.RegistrationHelper

public class RegistrationHelper
extends java.lang.Object

Helper class for Configurables that care about the Configurations they are registered with.

Version:
$Revision: 1.2 $
Author:
Gregor Schmid

Constructor Summary
RegistrationHelper()
           
 
Method Summary
 int registrationChanged(Configuration config, boolean registered)
          Helper for registrationChanged callbacks on the Configurable.
 void stateChanged(Configurable client)
          Notify all Configurations the client is registered with of a state in the client's state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationHelper

public RegistrationHelper()
Method Detail

registrationChanged

public int registrationChanged(Configuration config,
                               boolean registered)
Helper for registrationChanged callbacks on the Configurable.
Parameters:
config - The affected Configuration.
registered - True if the Configurable was just registered, false if it was unregistered.
Returns:
-1 if the Configurable was just unrigestered from its last Configuration, 1 if it was registered with its first Configuration or 0 if neither.

stateChanged

public void stateChanged(Configurable client)
Notify all Configurations the client is registered with of a state in the client's state.
Parameters:
client - The Configurable that changed.

qflib 0.98.1