public interface WindowFactory extends Serializable
Window
that isn't a Frame
or a Dialog
.
AWT Frame
s should be produced by a FrameFactory
.
AWT Dialog
s 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.
Modifier and Type | Field and Description |
---|---|
static String |
TOOLKIT
Convenience constant to use in the
toolkit
field of UIDescriptor s that contain a
WindowFactory . |
static String |
TYPE_NAME
Convenience constant to use in the
UIFactoryTypes
set in the attributes set of UIDescriptor s
that contain a WindowFactory . |
Modifier and Type | Method and Description |
---|---|
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 |
static final String TOOLKIT
toolkit
field of UIDescriptor
s that contain a
WindowFactory
.
The value of this constant is "java.awt"
.static final String TYPE_NAME
UIFactoryTypes
set in the attributes
set of UIDescriptor
s
that contain a WindowFactory
.
The value of this constant is "net.jini.lookup.ui.factory.WindowFactory"
.Window getWindow(Object roleObject, Window owner)
Window
with specified
owner Window
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 UIDescriptor
s.)owner
- the Window
to act as owner of the returned
Window
Window
UICopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.