|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.nav2.servlets.TreeWidget
public class TreeWidget
EXPERIMENTAL: This class is highly experimental. We recommend that you not use this class. If you do, expect it to break in the next version.
Field Summary | |
---|---|
protected static int |
CLOSE
Deprecated. |
protected static int |
CLOSE_ALL
Deprecated. |
protected static int |
EXPAND_ALL
Deprecated. |
protected java.lang.String |
imageurl
Deprecated. |
protected java.lang.String |
nodepage
Deprecated. |
protected static int |
OPEN
Deprecated. |
protected java.util.Set |
openNodes
Deprecated. |
protected QueryProcessorIF |
processor
Deprecated. |
protected java.lang.String |
staticurl
Deprecated. |
protected static int |
WINDOW_SIZE
Deprecated. |
protected int |
windowSize
Deprecated. |
Constructor Summary | |
---|---|
TreeWidget(TopicMapIF topicmap,
java.lang.String query,
java.lang.String topquery,
java.lang.String ownpage,
java.lang.String nodepage)
Deprecated. Sets up the widget ready for use. |
Method Summary | |
---|---|
protected void |
endRender(java.io.Writer out)
Deprecated. |
protected java.lang.String |
getId(TopicIF topic)
Deprecated. |
protected TopicIF |
getTopic(java.lang.String id)
Deprecated. |
protected java.lang.String |
list(java.util.Set nodes)
Deprecated. |
void |
loadRules(java.io.Reader rulereader)
Deprecated. EXPERIMENTAL: We really don't recommend that you use this method. |
protected void |
renderBackButton(java.io.Writer out,
int topline)
Deprecated. EXPERIMENTAL: Renders the back button at the top/bottom of the form. |
protected void |
renderCloseAllButton(java.io.Writer out,
int topline)
Deprecated. EXPERIMENTAL: Renders the close all button at the top/bottom of the form. |
protected void |
renderExpandAllButton(java.io.Writer out,
int topline)
Deprecated. EXPERIMENTAL: Renders the expand all button at the top/bottom of the form. |
protected void |
renderForwardButton(java.io.Writer out,
int topline)
Deprecated. EXPERIMENTAL: Renders the close all button at the top/bottom of the form. |
protected void |
renderNode(TopicTreeNode node,
java.io.Writer out)
Deprecated. EXPERIMENTAL: This method renders the tree node, including its link, but not the button in front of the node. |
protected void |
renderNodeButton(int topline,
int level,
int action,
java.lang.String id,
java.io.Writer out)
Deprecated. EXPERIMENTAL: Renders the +/- button in front of the node. |
void |
run(javax.servlet.jsp.PageContext ctxt,
java.io.Writer writer)
Deprecated. EXPERIMENTAL: Runs the widget, producing the output. |
void |
setAddAnchor(boolean addAnchor)
Deprecated. EXPERIMENTAL: FIXME. |
void |
setImageUrl(java.lang.String imageurl)
Deprecated. EXPERIMENTAL: The URL at which the graphics used by the widget are found. |
void |
setNodeFrame(java.lang.String nodeFrame)
Deprecated. EXPERIMENTAL: The name of the HTML frame in which to open links to nodes. |
void |
setWidgetName(java.lang.String name)
Deprecated. EXPERIMENTAL: The name of the session key in which the set of open nodes is stored. |
void |
setWindowSize(int windowSize)
Deprecated. EXPERIMENTAL: FIXME |
protected void |
startRender(java.io.Writer out)
Deprecated. |
java.lang.String |
toString(TopicIF topic)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int OPEN
protected static final int CLOSE
protected static final int EXPAND_ALL
protected static final int CLOSE_ALL
protected static final int WINDOW_SIZE
protected QueryProcessorIF processor
protected java.lang.String nodepage
protected java.lang.String staticurl
protected java.util.Set openNodes
protected java.lang.String imageurl
protected int windowSize
Constructor Detail |
---|
public TreeWidget(TopicMapIF topicmap, java.lang.String query, java.lang.String topquery, java.lang.String ownpage, java.lang.String nodepage) throws InvalidQueryException
topicmap
- The topic map being displayed.query
- A tolog query that given a node generates its
children. Use the %parent% parameter to reference the parent node
in the query. Make sure the query produces a 1-column result.topquery
- A tolog query that generates the list of top
nodes. Make sure the query produces a 1-column result.ownpage
- The URI of the page the widget is on. The widget
will append request parameters in the form "a=b&c=d&e=f..."nodepage
- The URI of of the page that shows the nodes.
InvalidQueryException
Method Detail |
---|
public void setWidgetName(java.lang.String name)
public void setImageUrl(java.lang.String imageurl)
public void setAddAnchor(boolean addAnchor)
public void setWindowSize(int windowSize)
public void setNodeFrame(java.lang.String nodeFrame)
public void loadRules(java.io.Reader rulereader) throws java.io.IOException, InvalidQueryException
java.io.IOException
InvalidQueryException
public void run(javax.servlet.jsp.PageContext ctxt, java.io.Writer writer) throws java.io.IOException, InvalidQueryException, NavigatorRuntimeException
java.io.IOException
InvalidQueryException
NavigatorRuntimeException
protected TopicIF getTopic(java.lang.String id)
protected java.lang.String getId(TopicIF topic)
protected java.lang.String list(java.util.Set nodes)
public java.lang.String toString(TopicIF topic)
protected void renderNode(TopicTreeNode node, java.io.Writer out) throws java.io.IOException
java.io.IOException
protected void renderNodeButton(int topline, int level, int action, java.lang.String id, java.io.Writer out) throws java.io.IOException
java.io.IOException
protected void renderBackButton(java.io.Writer out, int topline) throws java.io.IOException
java.io.IOException
protected void renderExpandAllButton(java.io.Writer out, int topline) throws java.io.IOException
java.io.IOException
protected void renderCloseAllButton(java.io.Writer out, int topline) throws java.io.IOException
java.io.IOException
protected void renderForwardButton(java.io.Writer out, int topline) throws java.io.IOException
java.io.IOException
protected void startRender(java.io.Writer out) throws java.io.IOException
java.io.IOException
protected void endRender(java.io.Writer out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |