facets.core.app
Interface SurfaceServices

All Known Implementing Classes:
FacetAppSurface

public interface SurfaceServices

Can respond to requests from surface facets.

SurfaceServices defines useful functionality required by SFacets from their enclosing surface.


Method Summary
 MenuFacets getContextMenuFacets()
          Return suitable facets for a viewer context menu.
 void handleInvalidInput(STarget target, java.lang.Object input)
          Respond to an input to a facet which is invalid for its target.
 

Method Detail

getContextMenuFacets

MenuFacets getContextMenuFacets()
Return suitable facets for a viewer context menu.

The source of the request will generally be redundant as the receiver will be able to determine which viewer is active; in any case, other considerations such as the current selection will determine the facets to be returned.


handleInvalidInput

void handleInvalidInput(STarget target,
                        java.lang.Object input)
Respond to an input to a facet which is invalid for its target.

A simple facet will generally check validity by querying a TargetCoupler attached to the target; a viewer facet by querying its SView.

Parameters:
target - exposed by the facet
input - is known to be invalid