net.jini.lookup.ui.factory
Interface JComponentFactory
- All Superinterfaces:
- java.io.Serializable
- public interface JComponentFactory
- extends java.io.Serializable
UI factory for a Swing JComponent
.
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 UIDescriptor s that contain a
JComponentFactory . |
static java.lang.String |
TYPE_NAME
Convenience constant to use in the UIFactoryTypes
set in the attributes set of UIDescriptor s
that contain a JComponentFactory . |
Method Summary |
javax.swing.JComponent |
getJComponent(java.lang.Object roleObject)
Returns a JComponent . |
TOOLKIT
public static final java.lang.String TOOLKIT
- Convenience constant to use in the
toolkit
field of UIDescriptor
s that contain a
JComponentFactory
.
The value of this constant is "javax.swing"
.
TYPE_NAME
public static final java.lang.String TYPE_NAME
- Convenience constant to use in the
UIFactoryTypes
set in the attributes
set of UIDescriptor
s
that contain a JComponentFactory
.
The value of this constant is "net.jini.lookup.ui.factory.JComponentFactory"
.
getJComponent
public javax.swing.JComponent getJComponent(java.lang.Object roleObject)
- Returns a
JComponent
.
- 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 UIDescriptor
s.)- Returns:
- a
JComponent
UI