net.jini.lookup.ui.factory
Interface DialogFactory


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.

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.

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.

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.