|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.gui.view.ViewNotifier
public final class ViewNotifier
This class serves as a container for all existing views. The observer pattern is used to inform all views on user interactions.
Field Summary | |
---|---|
int |
hist
History pointer. |
static int |
MAXHIST
Maximum history size. |
Constructor Summary | |
---|---|
ViewNotifier(GUI main)
Constructor. |
Method Summary | |
---|---|
void |
context(Nodes nodes,
boolean quick,
View vw)
Notifies all views of a context change. |
void |
focus(int pre,
View vw)
Notifies all views of a focus change. |
void |
hist(boolean forward)
Moves around in the internal history and notifies all views of a context change. |
void |
init()
Notifies all views of a data reference change. |
void |
layout()
Notifies all views of layout changes. |
void |
mark(int mode,
View vw)
Notifies all views of a selection change. |
void |
mark(Nodes mark,
View vw)
Notifies all views of a selection change. |
java.lang.String |
query(boolean back)
Returns the last or next query string. |
void |
update()
Notifies all views of updates in the data structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAXHIST
public int hist
Constructor Detail |
---|
public ViewNotifier(GUI main)
main
- reference to the main windowMethod Detail |
---|
public void init()
public void focus(int pre, View vw)
pre
- focused pre valuevw
- the calling viewpublic void mark(Nodes mark, View vw)
mark
- marked nodesvw
- the calling viewpublic void mark(int mode, View vw)
mode
- mark modevw
- the calling viewpublic void hist(boolean forward)
forward
- move forward or backwardpublic void context(Nodes nodes, boolean quick, View vw)
nodes
- new context set (may be null
if root nodes are addressed)quick
- quick switchvw
- the calling viewpublic void update()
public void layout()
public java.lang.String query(boolean back)
back
- back/forward flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |