|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.toolbox.ui.callback.DialogFactoryCallbackHandler
public class DialogFactoryCallbackHandler
An application implements a CallbackHandler and passes it to underlying security services so that they may interact with the application to retrieve specific authentication data, such as usernames and passwords, or to display certain information, such as error and warning messages.
CallbackHandlers are implemented in an application-dependent fashion. For example, implementations for an application with a graphical user interface (GUI) may pop up windows to prompt for requested information or to display error messages. An implementation may also choose to obtain requested information from an alternate source without asking the end user.
Constructor Summary | |
---|---|
DialogFactoryCallbackHandler()
|
Method Summary | |
---|---|
protected javax.swing.JPanel |
createCallbackPanel(Callback callback,
PropertyDefinitionGroup definitionGroup,
PropertiedObject object,
PropertiedObjectEditor editor)
Create a JPanel to edit the specified callback containing a PropertyDefinitionGroup for the specified PropertiedObject. |
protected javax.swing.JPanel |
createCallbackPanel(Callback callback,
java.lang.String prompt,
PropertiedObject object,
PropertiedObjectEditor editor)
Create a JPanel to edit the specified callback containing a PropertiedObject. |
protected void |
dialogDismissed()
called by cancel/dismiss listeners to indicate that the user dismissed the dialog without making a choice. |
void |
handle(Callback callback,
java.lang.Object source)
Retrieve or display the requested information in the Callback object. |
protected DialogPanel |
processPropertiedObjectCallback(Callback callback)
create a DialogPanel to process the specified callback. |
protected void |
setChoice(int index)
set the specified choice as the callback response. |
void |
setDefaultDialogSize(java.awt.Dimension size)
set the Size for this handler to use for all dialogs. |
void |
setParentFrameSupplier(ParentFrameSupplier supplier)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialogFactoryCallbackHandler()
Method Detail |
---|
public void setParentFrameSupplier(ParentFrameSupplier supplier)
public void setDefaultDialogSize(java.awt.Dimension size)
public void handle(Callback callback, java.lang.Object source) throws java.io.IOException
The implementation should process all callback objects before returning, since the caller of this method is free to retrieve the requested information from the callback objects immediately after this method returns.
handle
in interface CallbackHandler
callbacks
- an array of Callback objects provided by the method caller,
and which contain the information requested to be retrieved or displayed.source
- the object that is considered the source of the callbacks.
java.io.IOException
- if an input or output error occurs
does not support one or more of the Callbacks specified in the callbacks parameterprotected DialogPanel processPropertiedObjectCallback(Callback callback)
protected javax.swing.JPanel createCallbackPanel(Callback callback, PropertyDefinitionGroup definitionGroup, PropertiedObject object, PropertiedObjectEditor editor)
protected javax.swing.JPanel createCallbackPanel(Callback callback, java.lang.String prompt, PropertiedObject object, PropertiedObjectEditor editor)
protected void dialogDismissed()
protected void setChoice(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |