facets.facet
Class SwingSimpleMaster

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.facet.FacetMaster
          extended by facets.facet.FacetMaster.Simple
              extended by facets.facet.SwingSimpleMaster
All Implemented Interfaces:
Titled

public abstract class SwingSimpleMaster
extends FacetMaster.Simple

Builds and manages Swing panel for a simple facet.

SwingSimpleMaster descends from FacetMaster.Simple via an internal superclass used by the FacetFactory facet builder.

Custom facet can be created by passing concrete subclasses to FacetsCore.simpleMastered(facets.core.superficial.STargeter,facets.facet.FacetMaster.Simple).


Nested Class Summary
 
Nested classes/interfaces inherited from class facets.facet.FacetMaster
FacetMaster.Simple, FacetMaster.Viewer
 
Field Summary
protected  facets.facet.SimpleCore core
           
 java.util.Map<java.lang.String,javax.swing.JComponent> swingMap
           
 
Constructor Summary
SwingSimpleMaster()
           
 
Method Summary
 javax.swing.JComponent facetBaseWrapped()
          The component returned by newFacetBaseWrappable().
protected abstract  javax.swing.JComponent newFacetBaseWrappable()
          Create a panel facet base for attachment to the GUI.
protected  void notifyingSingle(STarget target, java.lang.Object msg)
           
 void retargetedMultiple(STarget[] targets, Notifying.Impact impact)
          Update GUI components to match the states of the targets passed.
abstract  void retargetedSingle(STarget target, Notifying.Impact impact)
          Update GUI components to the state of the target passed.
 STarget target()
          The current facet target.
protected  void targetNotify(java.lang.Object msg)
           
 java.lang.String title()
          Implements interface method.
 java.lang.String toString()
           
 
Methods inherited from class facets.facet.FacetMaster.Simple
respondTargetWantsFocus
 
Methods inherited from class facets.facet.FacetMaster
attachedToFacet
 
Methods inherited from class facets.util.Tracer
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

swingMap

public final java.util.Map<java.lang.String,javax.swing.JComponent> swingMap

core

protected facets.facet.SimpleCore core
Constructor Detail

SwingSimpleMaster

public SwingSimpleMaster()
Method Detail

newFacetBaseWrappable

protected abstract javax.swing.JComponent newFacetBaseWrappable()
Create a panel facet base for attachment to the GUI.

Returns:
a JComponent which may include others

facetBaseWrapped

public final javax.swing.JComponent facetBaseWrapped()
The component returned by newFacetBaseWrappable().


retargetedSingle

public abstract void retargetedSingle(STarget target,
                                      Notifying.Impact impact)
Description copied from class: FacetMaster.Simple
Update GUI components to the state of the target passed.

Called during each retargeting with a single target (ultimately by STargeter.retargetFacets(Notifying.Impact), and also during facet construction immediately after assembly creation.


retargetedMultiple

public void retargetedMultiple(STarget[] targets,
                               Notifying.Impact impact)
Description copied from class: FacetMaster.Simple
Update GUI components to match the states of the targets passed.

Called during each retargeting with multiple targets (ultimately by STargeter.retargetFacets(Notifying.Impact).


targetNotify

protected final void targetNotify(java.lang.Object msg)

notifyingSingle

protected void notifyingSingle(STarget target,
                               java.lang.Object msg)

title

public final java.lang.String title()
Implements interface method.

Specified by:
title in interface Titled
Returns:
the title of the current facet target.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

target

public final STarget target()
Description copied from class: FacetMaster.Simple
The current facet target.

Specified by:
target in class FacetMaster.Simple