|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.core.app.DialogSurface
facets.facet.app.FacetDialogSurface
facets.facet.app.FacetDialogSurface.MultiPaged
public abstract static class FacetDialogSurface.MultiPaged
FacetDialogSurface for multi-page dialogs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class facets.facet.app.FacetDialogSurface |
|---|
FacetDialogSurface.MultiPaged |
| Nested classes/interfaces inherited from class facets.core.app.DialogSurface |
|---|
DialogSurface.Contenter, DialogSurface.ContentRoot, DialogSurface.DialogActions |
| Field Summary | |
|---|---|
static int |
MULTI_AREA_PAGES
|
static int |
MULTI_AREA_TREE
|
| Fields inherited from class facets.facet.app.FacetDialogSurface |
|---|
ff |
| Fields inherited from class facets.core.app.DialogSurface |
|---|
app, AT_NOT_SET, TRIMMINGS_TAB, TRIMMINGS_TREE |
| Constructor Summary | |
|---|---|
FacetDialogSurface.MultiPaged(FacetAppSurface app,
DialogHost host,
java.lang.String title,
DialogSurface.DialogActions actions,
DialogSurface.Contenter[] contents)
|
|
| Method Summary | |
|---|---|
protected void |
attachSurfaceRootFacets(SAreaTarget areaRoot)
Attach suitable facets to the dialog area root and its children. |
SHost |
host()
|
protected boolean |
isMultiPage()
Required to ensure correct calculation of default host size. |
protected SAreaTarget[] |
newContentPages(DialogSurface.Contenter[] contents,
SAreaTarget[] contentRoots)
Create at least one dialog page. |
protected SView |
newPagesTreeView(TypedNode[] treeNodes)
Re-implementation creating either a ListView or a TreeView. |
protected static TypedNode |
newPageTreeNode(SAreaTarget page,
TypedNode... children)
Creates a node for a page selection tree. |
protected TypedNode[] |
newPageTreeNodes(SAreaTarget[] pages)
Creates the top-level children of a page selection tree. |
AreaTargeter |
surfaceRootTargeter()
|
java.lang.String |
title()
Return human-readable identifying text. |
| Methods inherited from class facets.facet.app.FacetDialogSurface |
|---|
addExtensionPanel, attachPageFacet, calculateSmartDialogAt, hostWindowDismissed, isResizable, newControlButtons, newDefaultPagedSurfacer, newDefaultTabbedSurfacer, newExtras, notify, scaledLaunchBounds, traceOutput |
| Methods inherited from class facets.core.app.DialogSurface |
|---|
buildRetargeted, contents, contentsKey, contentsMatch, dismissHostWindow, findDialogTrigger, findRootArea, getLaunchBounds, hostWindowDismissed, persistBoundsState, replaceContents |
| Methods inherited from class facets.util.Tracer |
|---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutputWithClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface facets.core.superficial.app.SSurface |
|---|
host, surfaceRootTargeter |
| Methods inherited from interface facets.util.Titled |
|---|
title |
| Field Detail |
|---|
public static final int MULTI_AREA_TREE
public static final int MULTI_AREA_PAGES
| Constructor Detail |
|---|
public FacetDialogSurface.MultiPaged(FacetAppSurface app,
DialogHost host,
java.lang.String title,
DialogSurface.DialogActions actions,
DialogSurface.Contenter[] contents)
| Method Detail |
|---|
protected final boolean isMultiPage()
DialogSurfaceDefault returns false.
isMultiPage in class DialogSurfaceprotected final void attachSurfaceRootFacets(SAreaTarget areaRoot)
attachSurfaceRootFacets in class FacetDialogSurfaceareaRoot - contains either a single page area returned by
newContentPages(DialogSurface.Contenter[], SAreaTarget[]) or viewer and switching
areas managing multiple page areasprotected final SView newPagesTreeView(TypedNode[] treeNodes)
ListView or a TreeView.
treeNodes - will have at least two members
protected SAreaTarget[] newContentPages(DialogSurface.Contenter[] contents,
SAreaTarget[] contentRoots)
Where the implementation returns a multi-member array,
newPagesTreeView(TypedNode[]) to define a tree/list viewer
to select between the pages;
for a full tree viewer newPageTreeNodes(SAreaTarget[]) will also
need to be re-implementedattachSurfaceRootFacets(SAreaTarget) will
contain the tree viewer area and an area containing the pagesThe default implementation defines a single-page dialog by returning a single-member array containing:
contentRoots is single-membered, that member
contentRoots
(whose root facet can be displayed as tab children of the facet
attached to the area), titled from {title()
contents - passed during construction or to
DialogSurface.replaceContents(DialogSurface.Contenter[]);
may be queried for additional information such as page titlescontentRoots - were created from contents
SAreaTarget[] with at least one memberprotected TypedNode[] newPageTreeNodes(SAreaTarget[] pages)
Children created will be passed to newPagesTreeView(TypedNode[])
which should be reimplemented to define a viewer for the
tree.
The default implementation returns an array constructed from
panelAreas using newPageTreeNode(SAreaTarget,TypedNode[])
and suitable for a list viewer; this method can also be used to created
more complex trees.
pages - were returned from newContentPages(DialogSurface.Contenter[], SAreaTarget[])public final AreaTargeter surfaceRootTargeter()
public final java.lang.String title()
Titled
title in interface Titlednull, non-empty string with no structural whitespace
protected static final TypedNode newPageTreeNode(SAreaTarget page,
TypedNode... children)
The node returned will
type TYPE_PAGE
title the title of panelRoot
panelRoot as its single value
children as its children
page - should be an area tree defining the layout
of a dialog pagechildren - to appear in a tree viewer
below the node created; themselves created using this methodpublic final SHost host()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||