facets.core.app
Class Headless.HeadlessHost

java.lang.Object
  extended by facets.core.app.Headless.HeadlessHost
All Implemented Interfaces:
AppHost, SHost
Enclosing class:
Headless

public static class Headless.HeadlessHost
extends java.lang.Object
implements AppHost

Empty AppHost for a headless AppSurface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface facets.core.app.AppHost
AppHost.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.
 void setLayout(SHost.FacetLayout layout)
          Attach widgets managed by the facets of the SHost.FacetLayout to the GUI context.
 void setTitle(java.lang.String title)
           
 void splashDown()
           
 void splashUp(java.lang.String msg)
           
 void updateLayout(SSurface surface)
          Update the layout last set and other features as specified by the application.
 java.lang.Object wrapped()
          The widget(s) wrapped by the SHost.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

runHostedApp

public void runHostedApp()
Description copied from interface: AppHost
Run the application which created the AppHost.

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

Specified by:
runHostedApp in interface AppHost

wrapped

public java.lang.Object wrapped()
Description copied from interface: SHost
The widget(s) wrapped by the SHost.

Gives access to the actual widget(s) used by the GUI context to attach the widget roots created by facet layouts.

Specified by:
wrapped in interface SHost

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface SHost

setLayout

public void setLayout(SHost.FacetLayout layout)
Description copied from interface: SHost
Attach widgets managed by the facets of the SHost.FacetLayout to the GUI context.

Specified by:
setLayout in interface SHost
Parameters:
layout - will generally have been created by the SHost implementation

activeServices

public SurfaceServices activeServices()
Description copied from interface: AppHost
Return suitable services for facet in the active layout.

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

Specified by:
activeServices in interface AppHost

newDesktopLayout

public SHost.FacetLayout newDesktopLayout(SFacet contentFacet,
                                          AppHost.LayoutFeatures features)
Description copied from interface: AppHost
Create a layout containing the features passed.

Specified by:
newDesktopLayout in interface AppHost

updateLayout

public void updateLayout(SSurface surface)
Description copied from interface: SHost
Update the layout last set and other features as specified by the application.

Specified by:
updateLayout in interface SHost

newDialogs

public Dialogs newDialogs(ActionAppSurface app)
Description copied from interface: AppHost
Create a suitable Dialogs for use by an AppSurface.

Specified by:
newDialogs in interface AppHost
Parameters:
app - should host the dialogs launched

splashDown

public void splashDown()

splashUp

public void splashUp(java.lang.String msg)