|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
static final int CURSOR_DEFAULT
static final int CURSOR_TEXT
static final int CURSOR_HAND
static final int CURSOR_CROSSHAIR
static final int CURSOR_WAIT
static final int CURSOR_MOVE
static final int CURSOR_WEST
static final int CURSOR_NORTH
Method Detail |
---|
SView view()
SSelection selection()
void selectionChanged(SSelection selection)
selection
- defines the new selection.void selectionEdited(SSelection selection, java.lang.Object edit, boolean interim)
selection
- if null
implies edit should be applied to the
current selection; otherwise the selection should be changed to matchedit
- defines the change proposed to the selectioninterim
- if true
the edit forms part of a sequenceboolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |