|
||||||||||
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 stores all views in a window and notifies views of global changes.
Field Summary | |
---|---|
int |
hist
History pointer. |
static int |
MAXHIST
Maximum history size. |
Constructor Summary | |
---|---|
ViewNotifier(GUI main)
Constructor. |
Method Summary | |
---|---|
void |
add(View v)
Adds a new view. |
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. |
String |
tooltip(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 |
---|
equals, 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 add(View v)
v
- view to be addedpublic 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 setquick
- quick switchvw
- the calling viewpublic void update()
public void layout()
public String tooltip(boolean back)
back
- back/forward flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |