@Deprecated public class TreeWidget extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
CLOSE
Deprecated.
|
protected static int |
CLOSE_ALL
Deprecated.
|
protected static int |
EXPAND_ALL
Deprecated.
|
protected String |
imageurl
Deprecated.
|
protected String |
nodepage
Deprecated.
|
protected static int |
OPEN
Deprecated.
|
protected Set |
openNodes
Deprecated.
|
protected QueryProcessorIF |
processor
Deprecated.
|
protected String |
staticurl
Deprecated.
|
protected static int |
WINDOW_SIZE
Deprecated.
|
protected int |
windowSize
Deprecated.
|
Constructor and Description |
---|
TreeWidget(TopicMapIF topicmap,
String query,
String topquery,
String ownpage,
String nodepage)
Deprecated.
Sets up the widget ready for use.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getId(TopicIF topic)
Deprecated.
|
protected TopicIF |
getTopic(String id)
Deprecated.
|
protected String |
list(Set nodes)
Deprecated.
|
void |
loadRules(Reader rulereader)
Deprecated.
EXPERIMENTAL: We really don't recommend that you use this
method.
|
protected void |
renderBackButton(Writer out,
int topline)
Deprecated.
EXPERIMENTAL: Renders the back button at the top/bottom of the form.
|
protected void |
renderCloseAllButton(Writer out,
int topline)
Deprecated.
EXPERIMENTAL: Renders the close all button at the top/bottom of
the form.
|
protected void |
renderExpandAllButton(Writer out,
int topline)
Deprecated.
EXPERIMENTAL: Renders the expand all button at the top/bottom of
the form.
|
protected void |
renderForwardButton(Writer out,
int topline)
Deprecated.
EXPERIMENTAL: Renders the close all button at the top/bottom of
the form.
|
protected void |
renderNode(TopicTreeNode node,
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,
String id,
Writer out)
Deprecated.
EXPERIMENTAL: Renders the +/- button in front of the node.
|
void |
run(javax.servlet.jsp.PageContext ctxt,
Writer writer)
Deprecated.
EXPERIMENTAL: Runs the widget, producing the output.
|
void |
setAddAnchor(boolean addAnchor)
Deprecated.
EXPERIMENTAL: FIXME.
|
void |
setImageUrl(String imageurl)
Deprecated.
EXPERIMENTAL: The URL at which the graphics used by the widget
are found.
|
void |
setNodeFrame(String nodeFrame)
Deprecated.
EXPERIMENTAL: The name of the HTML frame in which to open links
to nodes.
|
void |
setWidgetName(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
|
String |
toString(TopicIF topic)
Deprecated.
|
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 String nodepage
protected String staticurl
protected Set openNodes
protected String imageurl
protected int windowSize
public TreeWidget(TopicMapIF topicmap, String query, String topquery, String ownpage, 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
public void setWidgetName(String name)
public void setImageUrl(String imageurl)
public void setAddAnchor(boolean addAnchor)
public void setWindowSize(int windowSize)
public void setNodeFrame(String nodeFrame)
public void loadRules(Reader rulereader) throws IOException, InvalidQueryException
IOException
InvalidQueryException
public void run(javax.servlet.jsp.PageContext ctxt, Writer writer) throws IOException, InvalidQueryException, NavigatorRuntimeException
protected void renderNode(TopicTreeNode node, Writer out) throws IOException
IOException
protected void renderNodeButton(int topline, int level, int action, String id, Writer out) throws IOException
IOException
protected void renderBackButton(Writer out, int topline) throws IOException
IOException
protected void renderExpandAllButton(Writer out, int topline) throws IOException
IOException
protected void renderCloseAllButton(Writer out, int topline) throws IOException
IOException
protected void renderForwardButton(Writer out, int topline) throws IOException
IOException