facets.core.superficial.app
Interface SHost

All Known Subinterfaces:
AppHost, DialogHost, FacetFactory.AppletHost
All Known Implementing Classes:
Headless.HeadlessHost, WindowAppHost

public interface SHost

GUI context for a surface.

SHost must be implemented by a facets builder for each GUI context in which a surface is to be constructed.

Such a context can comprise a single widget eg for a modal dialog, or several eg the content area and menu, tool and status bars of a complete desktop application.


Nested Class Summary
static interface SHost.FacetLayout
          Arrangement of facets exposing application content.
 
Method Summary
 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 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.
 

Method Detail

wrapped

java.lang.Object wrapped()
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.


setLayout

void setLayout(SHost.FacetLayout layout)
Attach widgets managed by the facets of the SHost.FacetLayout to the GUI context.

Parameters:
layout - will generally have been created by the SHost implementation

updateLayout

void updateLayout(SSurface surface)
Update the layout last set and other features as specified by the application.


setTitle

void setTitle(java.lang.String title)