|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.navigationbar.NavigationLinkTreePool
Provides a "Pool" of NavigationTreeModels that can be "checked out" by the "name" of the section.
This class "checks out" and returns a NavigationTreeModel by the "name" of the section in the Navigation Configuration XML file. The instance that is returned is from a "Pool" of available instancess of that named section . If there are not enough entries in the pool of sections of that name, an ad-hoc instance will be created and added to the pool. There is a time out of 1 minute for the ad-hoc instances.
The Navigation Configuration XML file that is read is defined by the properties file entry
wt.templateutil.components.navigationbar.file
Here is an example of using the NavigationLinkTreePool
NavigationTreeModel treeModel = NavigationLinkTreePool.checkOut("SomeSectionName");
NavigationTreeNode rootNode = (NavigationTreeNode) this.treeModel.getRoot();
...
Peform some action with the NavigationTreeModel
...
NavigationLinkTreePool.checkIn(treeModel, "SomeSectionName");
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
Deprecated. |
private static boolean |
DEBUG
Deprecated. |
private static String |
DEFAULT_FILE_NAME
Deprecated. |
private static long |
expirationTime
Deprecated. |
private static Hashtable |
lockedTreeHashtable
Deprecated. |
private static DebugWriter |
LOG
Deprecated. |
private static String |
NAME_ELEMENT
Deprecated. |
private static String |
NAVIGATION_TREE
Deprecated. |
private static String |
NAVIGATION_TREES
Deprecated. |
private static Document |
navigationBarDocument
Deprecated. |
private static Hashtable |
unlockedTreeHashtable
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Constructor Summary | |
private |
NavigationLinkTreePool()
Deprecated. |
Method Summary | |
static void |
checkIn(NavigationTreeModel o,
String navigationTreeName)
Deprecated. Check in an instance of NavigationTreeModel into the Pool with the name provided by navigationTreeName. |
static NavigationTreeModel |
checkOut(String navigationTreeName)
Deprecated. Returns a NavigationTreeModel with the name provided by, navigationTreeName, from the Pool by checking the NavigationTreeModel instance out from the Pool, OR if no NavigationTreeModel instances with the name provided by navigationTreeName are available in the Pool, a NavigationTreeModel instance is created, added to the Pool, and then checked out the NavigationTreeModel instance. |
private static NavigationTreeModel |
create(String navigationTreeName)
Deprecated. Creates a NavigationTreeModel instance from the section in the Navigation Configuration XML file with the name provided by, navigationTreeName. |
private static void |
expire(Object o)
Deprecated. |
static Document |
getNavigationBarXml()
Deprecated. |
private static boolean |
isCorrectNode(Node linksNode,
String navigationTreeName)
Deprecated. Returns a flag indicating if the linksNode is a sub-tree with the "name" navigationTreeName |
static void |
refreshNavigationBarXml()
Deprecated. Re-reads the Navigation Configuration XML file so that all new NavigationTreeModels will be created using this file |
static void |
setNavigationBarDocument()
Deprecated. |
private static boolean |
validate(Object o)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Document navigationBarDocument
private static final String DEFAULT_FILE_NAME
private static final String NAVIGATION_TREES
private static final String NAVIGATION_TREE
private static final String NAME_ELEMENT
private static final boolean VERBOSE
private static long expirationTime
private static Hashtable lockedTreeHashtable
private static Hashtable unlockedTreeHashtable
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
private NavigationLinkTreePool()
Method Detail |
public static Document getNavigationBarXml()
public static void setNavigationBarDocument()
public static NavigationTreeModel checkOut(String navigationTreeName)
navigationTreeName
- - Name of the section in the XML file to usepublic static void checkIn(NavigationTreeModel o, String navigationTreeName)
o
- - NavigationTreeModel instance to check innavigationTreeName
- - Name of the Pool to check it in to.private static NavigationTreeModel create(String navigationTreeName)
navigationTreeName
- - Name of the section of the Navigation Configuration XML file
to use for the NavigationTreeModelprivate static void expire(Object o)
private static boolean validate(Object o)
private static boolean isCorrectNode(Node linksNode, String navigationTreeName)
linksNode
- - Node that represents the root of a navigation sectionnavigationTreeName
- - Name that linksNode Node should matchpublic static void refreshNavigationBarXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |