facets.core.app
Interface DialogSurface.Contenter

All Superinterfaces:
SContenter, TargeterCore.TargetType, Titled
All Known Implementing Classes:
FacetDialogContenter, SimpleContenter, ValueDialogContenter
Enclosing class:
DialogSurface

public static interface DialogSurface.Contenter
extends SContenter

SContenter for use in a DialogSurface.

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


Method Summary
 void applyChanges()
          Change content state to match surface state.
 java.awt.Dimension contentAreaSize()
          Return the panel size needed for the content surface elements.
 void dialogClosed()
          Called once the containing dialog has closed.
 SFacet newContentPanel(SContentRootTargeter t)
          Return a panel containing facets exposing the content.
 void reverseChanges()
          Restore content to its original state.
 void setDialog(DialogSurface dialog)
          Enables the contenter to interact with its host dialog.
 java.lang.String title()
          Return a title for the containing page.
 
Methods inherited from interface facets.core.superficial.app.SContenter
contentFrame, newContentRoot, rootRetargeted
 

Method Detail

newContentPanel

SFacet newContentPanel(SContentRootTargeter t)
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

setDialog

void setDialog(DialogSurface dialog)
Enables the contenter to interact with its host dialog.

Can be implemented empty where no interaction is required.


contentAreaSize

java.awt.Dimension contentAreaSize()
Return the panel size needed for the content surface elements.


title

java.lang.String title()
Return a title for the containing page.

Specified by:
title in interface SContenter
Specified by:
title in interface Titled
Returns:
non-null, non-empty string with no structural whitespace

applyChanges

void applyChanges()
Change content state to match surface state.

This will generally mean setting content state to that of a buffer storing surface state.


reverseChanges

void reverseChanges()
Restore content to its original state.


dialogClosed

void dialogClosed()
Called once the containing dialog has closed.