net.jini.lookup.ui.factory
Interface JDialogFactory

All Superinterfaces:
Serializable

public interface JDialogFactory
extends Serializable

UI factory for a modal or non-modal Swing JDialog 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 JDialogFactory.
static String TYPE_NAME
          Convenience constant to use in the UIFactoryTypes set in the attributes set of UIDescriptors that contain a JDialogFactory.
 
Method Summary
 JDialog getJDialog(Object roleObject)
          Returns a non-modal JDialog with predetermined title and no specified owner.
 JDialog getJDialog(Object roleObject, Dialog owner)
          Returns a non-modal JDialog with a predetermined title with the specified owner Dialog.
 JDialog getJDialog(Object roleObject, Dialog owner, boolean modal)
          Returns a JDialog with predetermined title and the specified modality and owner Dialog.
 JDialog getJDialog(Object roleObject, Frame owner)
          Returns a non-modal JDialog with a predetermined title with the specified owner Frame.
 JDialog getJDialog(Object roleObject, Frame owner, boolean modal)
          Returns a JDialog 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 JDialogFactory. The value of this constant is "javax.swing".

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 JDialogFactory. The value of this constant is "net.jini.lookup.ui.factory.JDialogFactory".

See Also:
Constant Field Values
Method Detail

getJDialog

JDialog getJDialog(Object roleObject)
Returns a non-modal JDialog with predetermined title and no specified owner.

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.)
Returns:
a JDialog UI

getJDialog

JDialog getJDialog(Object roleObject,
                   Dialog owner)
Returns a non-modal JDialog with a predetermined title with 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 JDialog
Returns:
a JDialog UI

getJDialog

JDialog getJDialog(Object roleObject,
                   Frame owner)
Returns a non-modal JDialog with a predetermined title with 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 JDialog
Returns:
a JDialog UI

getJDialog

JDialog getJDialog(Object roleObject,
                   Dialog owner,
                   boolean modal)
Returns a JDialog 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 JDialog
modal - if true, the returned JDialog will block input to other windows when shown
Returns:
a JDialog UI

getJDialog

JDialog getJDialog(Object roleObject,
                   Frame owner,
                   boolean modal)
Returns a JDialog 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 JDialog
modal - if true, the returned JDialog will block input to other windows when shown
Returns:
a JDialog UI


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