net.jini.lookup.ui.factory
Interface DialogFactory

All Superinterfaces:
java.io.Serializable

public interface DialogFactory
extends java.io.Serializable

UI factory for a modal or non-modal AWT Dialog with a predetermined title.

If the UI generated by the method declared in this interface implements javax.accessibility.Accessible and supports the Java Accessibility API, an AccessibleUI attribute should be placed in the UIDescriptor's attributes set.


Field Summary
static java.lang.String TOOLKIT
          Convenience constant to use in the toolkit field of UIDescriptors that contain a DialogFactory.
static java.lang.String TYPE_NAME
          Convenience constant to use in the UIFactoryTypes set in the attributes set of UIDescriptors that contain a DialogFactory.
 
Method Summary
 java.awt.Dialog getDialog(java.lang.Object roleObject, java.awt.Dialog owner)
          Returns a non-modal Dialog with predetermined title and the specified owner Dialog.
 java.awt.Dialog getDialog(java.lang.Object roleObject, java.awt.Dialog owner, boolean modal)
          Returns a Dialog with predetermined title and the specified modality and owner Dialog.
 java.awt.Dialog getDialog(java.lang.Object roleObject, java.awt.Frame owner)
          Returns a non-modal Dialog with predetermined title and the specified owner Frame.
 java.awt.Dialog getDialog(java.lang.Object roleObject, java.awt.Frame owner, boolean modal)
          Returns a Dialog with predetermined title and the specified modality and owner Frame.
 

Field Detail

TOOLKIT

public static final java.lang.String TOOLKIT
Convenience constant to use in the toolkit field of UIDescriptors that contain a DialogFactory. The value of this constant is "java.awt".

TYPE_NAME

public static final java.lang.String TYPE_NAME
Convenience constant to use in the UIFactoryTypes set in the attributes set of UIDescriptors that contain a DialogFactory. The value of this constant is "net.jini.lookup.ui.factory.DialogFactory".
Method Detail

getDialog

public java.awt.Dialog getDialog(java.lang.Object roleObject,
                                 java.awt.Dialog owner)
Returns a non-modal Dialog with predetermined title and the specified owner Dialog.
Parameters:
roleObject - an object defined by the semantics of the UI role interface implemented by the returned UI object. (UI role is indicated in the role field of UIDescriptors.)
owner - the Dialog to act as owner of the returned Dialog
Returns:
a Dialog UI

getDialog

public java.awt.Dialog getDialog(java.lang.Object roleObject,
                                 java.awt.Frame owner)
Returns a non-modal Dialog with predetermined title and the specified owner Frame.
Parameters:
roleObject - an object defined by the semantics of the UI role interface implemented by the returned UI object. (UI role is indicated in the role field of UIDescriptors.)
owner - the Frame to act as owner of the returned Dialog
Returns:
a Dialog UI

getDialog

public java.awt.Dialog getDialog(java.lang.Object roleObject,
                                 java.awt.Dialog owner,
                                 boolean modal)
Returns a Dialog with predetermined title and the specified modality and owner Dialog.
Parameters:
roleObject - an object defined by the semantics of the UI role interface implemented by the returned UI object. (UI role is indicated in the role field of UIDescriptors.)
owner - the Dialog to act as owner of the returned Dialog
modal - if true, the returned Dialog will block input to other windows when shown
Returns:
a Dialog UI

getDialog

public java.awt.Dialog getDialog(java.lang.Object roleObject,
                                 java.awt.Frame owner,
                                 boolean modal)
Returns a Dialog with predetermined title and the specified modality and owner Frame.
Parameters:
roleObject - an object defined by the semantics of the UI role interface implemented by the returned UI object. (UI role is indicated in the role field of UIDescriptors.)
owner - the Frame to act as owner of the returned Dialog
modal - if true, the returned Dialog will block input to other windows when shown
Returns:
a Dialog UI