com.metamatrix.console.ui.layout
Class UserPreferenceCallback

java.lang.Object
  extended by com.metamatrix.common.object.ObjectDefinitionImpl
      extended by com.metamatrix.common.callback.CallbackImpl
          extended by com.metamatrix.console.ui.layout.UserPreferenceCallback
All Implemented Interfaces:
Callback, ObjectDefinition, PropertiedObject, ParentFrameSupplier, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class UserPreferenceCallback
extends CallbackImpl
implements ParentFrameSupplier

UserPreferenceCallback is a temporary Callback object constructed to generate the UserPreferences dialog. Use as follows:

      ModelerCallbackHandler handler = new ModelerCallbackHandler();
      try {
          handler.handle(new UserPreferenceCallback(), this);
      } catch (Exception e) {
          e.printStackTrace();
      }
 

See Also:
Serialized Form

Constructor Summary
UserPreferenceCallback()
          Construct a UserPreferenceCallback to be passed to this applicaiton's CallbackHandler.
 
Method Summary
 java.awt.Window getParentFrameForCallback()
          return the parent frame that a callback dialog should display over
 void setResponse(int response)
          called when the callback has received a response.
 
Methods inherited from class com.metamatrix.common.callback.CallbackImpl
getChoices, getEditor, getNextGroup, getPreviousGroup, getPropertiedObject, getPropertyDefinitionGroups, getResponse, hasNextGroup, hasPreviousGroup, hasPropertiedObject, hasPropertyDefinitionGroups, isSequential
 
Methods inherited from class com.metamatrix.common.object.ObjectDefinitionImpl
clone, compareTo, computeDisplayName, computePluralDisplayName, equals, getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, hashCode, setDisplayName, setName, setPluralDisplayName, setShortDescription, setShortDisplayName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.common.object.ObjectDefinition
compareTo, equals, getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, toString
 

Constructor Detail

UserPreferenceCallback

public UserPreferenceCallback()
Construct a UserPreferenceCallback to be passed to this applicaiton's CallbackHandler.

Method Detail

getParentFrameForCallback

public java.awt.Window getParentFrameForCallback()
return the parent frame that a callback dialog should display over

Specified by:
getParentFrameForCallback in interface ParentFrameSupplier

setResponse

public void setResponse(int response)
called when the callback has received a response.

Specified by:
setResponse in interface Callback
Overrides:
setResponse in class CallbackImpl
Parameters:
response - the index of available choices from the CallbackChoices object:


Copyright © 2009. All Rights Reserved.