facets.facet
Interface SwingPanelFacet

All Superinterfaces:
SFacet, SRetargetable

public interface SwingPanelFacet
extends SFacet

SFacet based on JComponents.

A SwingPanelFacet returns as components() a map of references to JComponents; these references should only be to those JComponents that it creates and manages, and may be returned under multiple keys.

Where a FacetFactory is constructed with FacetFactory.ToolkitType.SWING or FacetFactory.ToolkitType.SWING_SYSTEM, all SFacets returned by simple facet methods will implement SwingPanelFacet, with the following methods returning useful implementations:

To obtain the components returned and keys used, query the Map returned.


Field Summary
static java.lang.String KEY_LABEL
          Suitable key for use in component map.
static java.lang.String KEY_LABELLED
          Suitable key for use in component map.
static java.lang.String KEY_PANEL
          Suitable key for use in component map.
 
Method Summary
 java.util.Map<java.lang.String,javax.swing.JComponent> components()
           
 
Methods inherited from interface facets.core.superficial.SRetargetable
retarget, target
 

Field Detail

KEY_PANEL

static final java.lang.String KEY_PANEL
Suitable key for use in component map.

See Also:
Constant Field Values

KEY_LABEL

static final java.lang.String KEY_LABEL
Suitable key for use in component map.

See Also:
Constant Field Values

KEY_LABELLED

static final java.lang.String KEY_LABELLED
Suitable key for use in component map.

See Also:
Constant Field Values
Method Detail

components

java.util.Map<java.lang.String,javax.swing.JComponent> components()