net.jini.lookup.ui.factory
Interface DialogFactory

All Superinterfaces:
Serializable

public interface DialogFactory
extends 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.

Author:
Bill Venners

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

Field Detail

TOOLKIT

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

See Also:
Constant Field Values

TYPE_NAME

static final 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".

See Also:
Constant Field Values
Method Detail

getDialog

Dialog getDialog(Object roleObject,
                 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

Dialog getDialog(Object roleObject,
                 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

Dialog getDialog(Object roleObject,
                 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

Dialog getDialog(Object roleObject,
                 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


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.