facets.core.superficial.app
Interface SViewer

All Known Implementing Classes:
ActionViewerTarget, ViewerTarget

public interface SViewer

Supplies SView policy and SSelection content to a viewer facet.

SViewer defines the basic interface for a viewer, providing a suitable viewer facet with its view policy and content selection and enabling it to report mouse-defined actions.


Field Summary
static int CURSOR_CROSSHAIR
           
static int CURSOR_DEFAULT
           
static int CURSOR_HAND
           
static int CURSOR_MOVE
           
static int CURSOR_NORTH
           
static int CURSOR_TEXT
           
static int CURSOR_WAIT
           
static int CURSOR_WEST
           
 
Method Summary
 boolean isActive()
          Does the viewer facet have focus?
 SSelection selection()
          Defines a region of viewable content to be displayed by the viewer facet.
 void selectionChanged(SSelection selection)
          To be called by the viewer facet whenever it makes a selection change.
 void selectionEdited(SSelection selection, java.lang.Object edit, boolean interim)
          To be called by the viewer facet whenever it proposes an edit to the selection passed.
 SView view()
          Defines the viewer facet type and supplies its policy.
 

Field Detail

CURSOR_DEFAULT

static final int CURSOR_DEFAULT
See Also:
Constant Field Values

CURSOR_TEXT

static final int CURSOR_TEXT
See Also:
Constant Field Values

CURSOR_HAND

static final int CURSOR_HAND
See Also:
Constant Field Values

CURSOR_CROSSHAIR

static final int CURSOR_CROSSHAIR
See Also:
Constant Field Values

CURSOR_WAIT

static final int CURSOR_WAIT
See Also:
Constant Field Values

CURSOR_MOVE

static final int CURSOR_MOVE
See Also:
Constant Field Values

CURSOR_WEST

static final int CURSOR_WEST
See Also:
Constant Field Values

CURSOR_NORTH

static final int CURSOR_NORTH
See Also:
Constant Field Values
Method Detail

view

SView view()
Defines the viewer facet type and supplies its policy.


selection

SSelection selection()
Defines a region of viewable content to be displayed by the viewer facet.


selectionChanged

void selectionChanged(SSelection selection)
To be called by the viewer facet whenever it makes a selection change.

Parameters:
selection - defines the new selection.

selectionEdited

void selectionEdited(SSelection selection,
                     java.lang.Object edit,
                     boolean interim)
To be called by the viewer facet whenever it proposes an edit to the selection passed.

Parameters:
selection - if null implies edit should be applied to the current selection; otherwise the selection should be changed to match
edit - defines the change proposed to the selection
interim - if true the edit forms part of a sequence

isActive

boolean isActive()
Does the viewer facet have focus?