facets.core.app
Interface AppSurface.Contenter

All Superinterfaces:
SContenter, TargeterCore.TargetType, Titled
All Known Implementing Classes:
TreeAppContenter, ViewerContenter
Enclosing class:
AppSurface

public static interface AppSurface.Contenter
extends SContenter

SContenter for use in an AppSurface.

AppSurface.Contenter defines the extended contract that must be implemented by any SContenter supplying content for an AppSurface.


Method Summary
 void alignAddedRoot(SAreaTarget existing, SAreaTarget added)
          Allows the contenter to align two target trees, for instance when 'cloning' a window.
 boolean hasChanged()
          Has the content changed?
 SHost.FacetLayout newContentLayout(SHost host, SFacet appRoot, SContentRootTargeter t)
          Return a layout of facets that expose a content type.
 void wasAdded()
          Called when the content has been added to the surface.
 void wasRemoved()
          Called when the content has been removed from the surface.
 
Methods inherited from interface facets.core.superficial.app.SContenter
contentFrame, newContentRoot, rootRetargeted, title
 

Method Detail

newContentLayout

SHost.FacetLayout newContentLayout(SHost host,
                                   SFacet appRoot,
                                   SContentRootTargeter t)
Return a layout of facets that expose a content type.

Parameters:
host - will generally create the layout, to ensure that it is of a type known to SHost.setLayout(FacetLayout)
appRoot - is attached to the SAreaTarget heading the application surface area tree
t - was created by a content root returned by SContenter.newContentRoot(boolean, boolean)

alignAddedRoot

void alignAddedRoot(SAreaTarget existing,
                    SAreaTarget added)
Allows the contenter to align two target trees, for instance when 'cloning' a window.

Parameters:
existing - containing values to copy
added - new root to be aligned with existing

hasChanged

boolean hasChanged()
Has the content changed?


wasAdded

void wasAdded()
Called when the content has been added to the surface.


wasRemoved

void wasRemoved()
Called when the content has been removed from the surface.