net.jini.lookup.ui.factory
Interface WindowFactory

All Superinterfaces:
Serializable

public interface WindowFactory
extends Serializable

UI factory for an AWT Window that isn't a Frame or a Dialog. AWT Frames should be produced by a FrameFactory. AWT Dialogs should be produced by a DialogFactory.)

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 WindowFactory.
static String TYPE_NAME
          Convenience constant to use in the UIFactoryTypes set in the attributes set of UIDescriptors that contain a WindowFactory.
 
Method Summary
 Window getWindow(Object roleObject, Frame owner)
          Returns a Window with specified owner Frame
 Window getWindow(Object roleObject, Window owner)
          Returns a Window with specified owner Window
 

Field Detail

TOOLKIT

static final String TOOLKIT
Convenience constant to use in the toolkit field of UIDescriptors that contain a WindowFactory. 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 WindowFactory. The value of this constant is "net.jini.lookup.ui.factory.WindowFactory".

See Also:
Constant Field Values
Method Detail

getWindow

Window getWindow(Object roleObject,
                 Window owner)
Returns a Window with specified owner Window

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 Window to act as owner of the returned Window
Returns:
a Window UI

getWindow

Window getWindow(Object roleObject,
                 Frame owner)
Returns a Window with specified owner Frame

Parameters:
owner - the Frame to act as owner of the returned Window
Returns:
a Window UI


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