facets.core.app
Interface AppHost

All Superinterfaces:
SHost
All Known Implementing Classes:
Headless.HeadlessHost, WindowAppHost

public interface AppHost
extends SHost

SHost that can create and set application layouts.

Layouts are returned by newDesktopLayout(SFacet, LayoutFeatures)


Nested Class Summary
static interface AppHost.LayoutFeatures
          Defines layout to be returned from newDesktopLayout(SFacet,LayoutFeatures).
 
Nested classes/interfaces inherited from interface facets.core.superficial.app.SHost
SHost.FacetLayout
 
Method Summary
 SurfaceServices activeServices()
          Return suitable services for facet in the active layout.
 SHost.FacetLayout newDesktopLayout(SFacet contentFacet, AppHost.LayoutFeatures features)
          Create a layout containing the features passed.
 Dialogs newDialogs(ActionAppSurface app)
          Create a suitable Dialogs for use by an AppSurface.
 void runHostedApp()
          Run the application which created the AppHost.
 
Methods inherited from interface facets.core.superficial.app.SHost
setLayout, setTitle, updateLayout, wrapped
 

Method Detail

newDesktopLayout

SHost.FacetLayout newDesktopLayout(SFacet contentFacet,
                                   AppHost.LayoutFeatures features)
Create a layout containing the features passed.


activeServices

SurfaceServices activeServices()
Return suitable services for facet in the active layout.

These will generally have been passed to methods such as newDesktopLayout(SFacet, LayoutFeatures), enabling a hosted AppSurface to delegate definition to an AppSurface.Contenter.


runHostedApp

void runHostedApp()
Run the application which created the AppHost.

Allows call to AppSurface.openApp() from a GUI thread.


newDialogs

Dialogs newDialogs(ActionAppSurface app)
Create a suitable Dialogs for use by an AppSurface.

Parameters:
app - should host the dialogs launched