|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.ui.navigator.Navigator
public class Navigator
The ZPad Navigator.
Tasks of the Navigator:
- Set the HTML page in the ZPad applet that is to be
shown in the Browser Window.
- Methods of the Navigator will be used by the ZPad applet as a reaction
on an action in the Browser Window. Those actions use
JavaScript to call a method of the ZPad applet.
- Start/stop Magicians.
- Show Feedback set by any Button within the Navigator.
- It acts as an intermediate for Sheets in order to:
By methods:
- get the Database.
- store the Database.
- get the Section Names.
By public variables:
- have an inputHandler.
- have an outputHandler.
- have a buttonFactory.
- have a session.
| Field Summary | |
|---|---|
protected Section |
_currentSection
|
protected Object |
_currentSectionID
Information about the current Section that is showing. |
protected int |
_currentSectionPage
|
protected MultiLevelExpiringCache |
_getChildrenCache
|
protected int |
_initializationLevel
The Zpad is still initializing if _initializationLevel < 2. |
protected int |
_lastLoginCount
If you log in, not only your own outputhandler will report it, but all of your (implicit) subscriptions too. |
protected long |
_lastSheetOpenClickTime
The time of the last click that opened a sheet -- for implementation of Double Click |
protected Vector |
_theLimitedSectionTree
|
protected Vector |
_theSectionNames
The sections |
protected Vector |
_theSectionTree
|
protected ZPadBrowser |
_zpadBrowser
The ZPadBrowser that I am working for. |
String |
coverName
The Cover's name, used for Cover specific storage of information. |
Entry |
entryControlV
|
Generator |
generator
The Generator I can use -- or manipulate in Meta Mode |
InputHandler |
inputHandler
Input from the User Location |
OutputHandler |
outputHandler
Output to the User Location |
String |
serverName
The mixed-case server name as used by the user. |
Session |
session
The Session that I am in. |
String |
targetName
The name to be used for "target" windows -- unique PER Navigator, not a static! it may contain "_top", "_blank" or a unique name. |
String |
userName
The mixed-case user name as used by the user. |
String |
userType
The applet type that is currently running. |
| Fields inherited from interface info.aduna.gee.publication.net.FileNames |
|---|
ASA_FILE_NAME, BAK_FILE_NAME, CAT_FILE_NAME, CFG_FILE_NAME, CHS_FILE_NAME, DAT_FILE_NAME, HLP_FILE_NAME, LOCAL_FILE_PREFIX, SBS_FILE_NAME, SSS_FILE_NAME, WIF_FILE_NAME |
| Fields inherited from interface info.aduna.gee.publication.net.IOListener |
|---|
CACHE_UPDATE, LOGIN_ADDED, PASSWORD_ERROR, QUEUE_UPDATE, SHOW_OBJECT, STORE_DONE, STORE_STARTED |
| Fields inherited from interface info.aduna.gee.publication.ui.magician.MagicianNames |
|---|
ACTIVE, BACK_EVENT, BRANCH, BRANCH_EVENT, CANCEL_EVENT, DEFEEDBACK_EVENT, FEEDBACK_EVENT, FINISH_EVENT, INACTIVE, INVISIBLE, MBACK, MCANCEL, MFINISH, MFINISH_FAILED, MNEXT, REBUTTON_EVENT, STEM |
| Constructor Summary | |
|---|---|
Navigator(ZPadBrowser zpadBrowser,
OutputHandler outputHandler,
Object dummy1,
Object dummy2,
int coverHeight,
Object dummy3,
Object dummy4)
Constructs a new Navigator. |
|
| Method Summary | |
|---|---|
protected void |
_addTo(Vector to,
Vector from)
|
protected boolean |
_entryIsIn(String pattern,
boolean useCase,
boolean onlyOwn,
Vector content)
Check whether the pattern is found in any of the entries. |
protected Vector |
_getAllChildren(PathString sectionName,
boolean createThem,
boolean sortThem)
|
protected Vector |
_getNonEmptyOnes(Vector currents)
|
protected boolean |
_inOwnerMode()
|
protected void |
_setCurrentSection(Object sectionID,
boolean remember)
Set the current section. |
Vector |
_toFullPaths(PathString parent,
Vector children)
|
void |
checkBrowser(String appName,
String appVersion)
Implement your actions for known limited browsers. |
void |
destroy()
Be careful to remove Listeners in order to avoid cyclic references. |
Result |
findContentEntry(String currentSectionID,
Section currentSection,
int currentSectionPage,
String pattern,
boolean useCase,
boolean searchFuture,
boolean onlyOwn)
Find a *page* that contains an entry that matches the requested pattern. |
Object |
firstSectionWithContent()
Return the first Section that contains content or null. |
Vector |
getChildren(PathString sectionName)
|
Vector |
getChildren(PathString sectionName,
boolean removeHiddenOrEmpty,
boolean createThem)
|
Vector |
getChildren(PathString sectionName,
boolean removeHiddenOrEmpty,
boolean createThem,
boolean sortThem)
|
Object |
getCurrentSection()
Get the sectionID of the current section. |
int |
getCurrentSectionPage()
Get the current Page of the current section. |
Database |
getDatabase()
Get the current Database. |
Object |
getSectionID(PathString sectionName)
Check whether current section still exists, otherwise best guess. |
Object |
getSectionID(PathString sectionName,
boolean allowDefault)
Check whether the current section still exists. |
Object |
getSectionID(String sectionIndicator)
Get a certain section for this ZPad. |
Vector |
getSectionNames()
Get all Section names sorted. |
Vector |
getSectionNames(boolean removeHiddenOrEmpty,
int ownDepthLimit,
int removeEmptySectionsLimit)
Get all Section names unsorted. |
Vector |
getSectionTree(boolean limited)
Get a complete tree of section names. |
int |
getStartPage(Object startSectionID,
String pageNo)
This function is a best effort. |
Object |
getStartSection(String sectionIndicator)
Give the correct start-section, given the String specified (e.g. |
void |
goHighestPL()
Go to the highest PL that can be achieved. |
void |
hideMagicians()
Hides the magicians and cancels all sheets currently in them. |
void |
ioStateChanged(WURL location,
int info,
String filename,
Object arg)
Required by IOListener interface |
Object |
lastSectionWithContent()
Return the last Section that contains content or null. |
void |
mustRecalculateSubscriptions()
|
void |
onException(WURL location,
Exception e,
String filename)
Required by IOListener interface |
void |
recalculateSubscriptions()
Recalculate all Subscriptions (either due to a store of zpad.sbs or due to a dynamic subscription). |
void |
refresh()
Refresh the page currently showing in the browser. |
void |
setGenerator(Generator g,
boolean permanent)
Hands the generator to the navigator. |
void |
setInitializationLevel(int initLevel)
Set the Navigator's initializationLevel. |
void |
showHelp(int helpIdentifier)
Show HTML help for a sheet or for this navigator itself. |
void |
showLinkOf(String entrySubId)
Show the link of an Entry. |
void |
showPage(int page,
boolean remember)
Show a page within the current section. |
void |
showSection(Object sectionID)
Show a section -- regenerate if already showing, show the first page if not already showing. |
void |
showSectionPage(Object sectionID,
int page,
boolean remember)
Show a section and a page within the section. |
String |
translateRelativeSection(String newOne)
Combine the current absolute section and the new (possibly relative) section to an absolute path. |
static String |
translateRelativeSection(String curOne,
String newOne)
Combine current absolute section and the new (possibly relative) section to an absolute path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String userName
public String userType
public String serverName
public String coverName
protected Object _currentSectionID
protected Section _currentSection
protected int _currentSectionPage
public String targetName
protected long _lastSheetOpenClickTime
protected int _initializationLevel
protected ZPadBrowser _zpadBrowser
public Session session
public Generator generator
public InputHandler inputHandler
public OutputHandler outputHandler
protected Vector _theSectionNames
protected Vector _theSectionTree
protected Vector _theLimitedSectionTree
public Entry entryControlV
protected int _lastLoginCount
protected MultiLevelExpiringCache _getChildrenCache
| Constructor Detail |
|---|
public Navigator(ZPadBrowser zpadBrowser,
OutputHandler outputHandler,
Object dummy1,
Object dummy2,
int coverHeight,
Object dummy3,
Object dummy4)
zpad - the ZPad Applet this Navigator is working for or null.
If it is null, keep this Navigator as cheap as possible.
In fact, it then is used for its ButtonFactory and Session only.outputHandler - the outputHandler to use.sharedButtonFactory - the Zpad generic buttonFactory.coverButtonFactory - the Cover specific buttonFactory.coverHeight - the height available for the Navigator.magicianBackground - background color for popup'smagicianForeground - foreground color for popup's| Method Detail |
|---|
public void setGenerator(Generator g,
boolean permanent)
g - the generator.permanent - if true, this is the Generator that has the user's database loaded, otherwise it is a temporary onepublic void setInitializationLevel(int initLevel)
public Vector getSectionNames()
public Vector getSectionNames(boolean removeHiddenOrEmpty,
int ownDepthLimit,
int removeEmptySectionsLimit)
removeHiddenOrEmpty - remove 'hidden' sectionsownDepthLimit - the maximum depth of a section nameremoveEmptySectionsLimit - the maximum number of section (inclusive), below which empty sections should be removedpublic Vector getSectionTree(boolean limited)
limited - if true, limit the size of the tree
public void ioStateChanged(WURL location,
int info,
String filename,
Object arg)
ioStateChanged in interface IOListenerlocation - the locationinfo - one of the constants listed below.filename - the name of the file the info is about.arg - an optional argument that (e.g.) contains extra information
public void onException(WURL location,
Exception e,
String filename)
onException in interface IOListenerlocation - the locatione - the encountered exception.filename - the name of the file the info is about.public Object getCurrentSection()
public int getCurrentSectionPage()
protected void _setCurrentSection(Object sectionID,
boolean remember)
public void hideMagicians()
public void showSection(Object sectionID)
sectionID - the sectionID of the section to show.
public void showSectionPage(Object sectionID,
int page,
boolean remember)
public void showPage(int page,
boolean remember)
public Database getDatabase()
public void refresh()
public Result findContentEntry(String currentSectionID,
Section currentSection,
int currentSectionPage,
String pattern,
boolean useCase,
boolean searchFuture,
boolean onlyOwn)
pattern - the pattern to search foruseCase - if true, don't ignore CasesearchFuture - if true, search future, otherwise search pastonlyOwn - if true, search only own contents, otherwise search all contents
protected boolean _entryIsIn(String pattern,
boolean useCase,
boolean onlyOwn,
Vector content)
pattern - the pattern you are searching for.useCase - if true case sensitive, case insensitive otherwise.onlyOwn - if true only own Entries, otherwise subscribed as well.content - a Vector of Entry's.public void destroy()
ZPad#destroypublic Object getSectionID(String sectionIndicator)
sectionIndicator - The name representation of the section, a String
containing a legal date representation
or the name of a named section.
public Object getSectionID(PathString sectionName)
public Object getSectionID(PathString sectionName,
boolean allowDefault)
public void checkBrowser(String appName,
String appVersion)
public void goHighestPL()
public void showHelp(int helpIdentifier)
public Object lastSectionWithContent()
public Object firstSectionWithContent()
public void showLinkOf(String entrySubId)
entrySubId - Either an single EntryId (e.g. 10) or an EntryId followed by a clabel number (e.g. 10.200).public void mustRecalculateSubscriptions()
public void recalculateSubscriptions()
public Object getStartSection(String sectionIndicator)
public int getStartPage(Object startSectionID,
String pageNo)
protected boolean _inOwnerMode()
public String translateRelativeSection(String newOne)
public static String translateRelativeSection(String curOne,
String newOne)
public Vector getChildren(PathString sectionName)
getChildren(PathString, boolean, boolean, boolean)
public Vector getChildren(PathString sectionName,
boolean removeHiddenOrEmpty,
boolean createThem)
getChildren(PathString, boolean, boolean, boolean)
public Vector getChildren(PathString sectionName,
boolean removeHiddenOrEmpty,
boolean createThem,
boolean sortThem)
sectionName - the section your interested inremoveHiddenOrEmpty - remove hidden or empty childrencreateThem - should they all exist after this callsortThem - return a sorted list of children
protected Vector _getAllChildren(PathString sectionName,
boolean createThem,
boolean sortThem)
protected void _addTo(Vector to,
Vector from)
public Vector _toFullPaths(PathString parent,
Vector children)
protected Vector _getNonEmptyOnes(Vector currents)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||