facets.facet.app
Class FacetDialogContenter

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.core.app.SimpleContenter
          extended by facets.facet.app.FacetDialogContenter
All Implemented Interfaces:
DialogSurface.Contenter, SContenter, TargeterCore.TargetType, Titled
Direct Known Subclasses:
ValueDialogContenter

public abstract class FacetDialogContenter
extends SimpleContenter

SimpleContenter that creates content for a dialog in a FacetAppSurface.


Nested Class Summary
static class FacetDialogContenter.PanelFacets
          FacetFactory for use by FacetDialogContenter.
 
Field Summary
protected  FacetFactory ff
           
 
Constructor Summary
FacetDialogContenter(java.lang.String title, FacetFactory ff)
           
 
Method Summary
protected  void attachRootMountFacet(SAreaTarget rootArea)
          Attach a facet to the tree headed by root.
 SFacet newContentPanel(SContentRootTargeter t)
          Return a panel containing facets exposing the content.
protected  FacetDialogContenter.PanelFacets newPanelFacets(FacetFactory core)
          Create a FacetDialogContenter.PanelFacets for return by newContentPanel(SContentRootTargeter).
 void setDialog(DialogSurface dialog)
          Empty implementation.
 
Methods inherited from class facets.core.app.SimpleContenter
applyChanges, contentAreaSize, contentFrame, dialogClosed, lazyContentRootElements, newContentRoot, reverseChanges, rootRetargeted, title
 
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, toString, wait, wait, wait
 

Field Detail

ff

protected final FacetFactory ff
Constructor Detail

FacetDialogContenter

public FacetDialogContenter(java.lang.String title,
                            FacetFactory ff)
Method Detail

attachRootMountFacet

protected void attachRootMountFacet(SAreaTarget rootArea)
Description copied from class: SimpleContenter
Attach a facet to the tree headed by root.

Called by SimpleContenter.newContentRoot(boolean, boolean); the facet attached should be a suitable MountFacet for the facet returned by DialogSurface.Contenter.newContentPanel(SContentRootTargeter).

Specified by:
attachRootMountFacet in class SimpleContenter
Parameters:
rootArea - was created in SimpleContenter.newContentRoot(boolean, boolean)

newContentPanel

public SFacet newContentPanel(SContentRootTargeter t)
Description copied from interface: DialogSurface.Contenter
Return a panel containing facets exposing the content.

Called from STargeter.retargetFacets(Notifying.Impact) in the (special) SContentRootTargeter created by DialogSurface.ContentRoot

Parameters:
t - heads the targeter tree for the content

newPanelFacets

protected FacetDialogContenter.PanelFacets newPanelFacets(FacetFactory core)
Create a FacetDialogContenter.PanelFacets for return by newContentPanel(SContentRootTargeter).

Parameters:
core - passed to factory constructor

setDialog

public void setDialog(DialogSurface dialog)
Description copied from class: SimpleContenter
Empty implementation.

Specified by:
setDialog in interface DialogSurface.Contenter
Overrides:
setDialog in class SimpleContenter