|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.greenstone.gs3client.Displays
public class Displays
Class containing static methods, static variables and inner classes that are used by both SearchResultsDisplay and BrowseDisplay.
Nested Class Summary | |
---|---|
static class |
Displays.MetadataComparator
Static inner class MetadataComparator is a Comparator for the metadata fields stored as a list of Pair objects (name, values). |
(package private) static class |
Displays.PopupListener
Handles rightclicks on a treeview of documentNodeData objects by showing the popupMenu with associated files that, when selected, can be displayed in the htmlPane. |
Field Summary | |
---|---|
protected static Displays.MetadataComparator |
comparator
Static Comparator object for Pair objects of (name, value) Metadata |
Constructor Summary | |
---|---|
Displays()
|
Method Summary | |
---|---|
static void |
createNodesForChildren(DocumentNodeData docNode,
javax.swing.tree.DefaultMutableTreeNode treeNode)
Recursion to add all descendent docnodes into the tree. |
static java.lang.String |
getImgUrlEnclosedInHtml(java.lang.String imgURL)
JEditorPane cannot deal with <img src="" />. |
static void |
showMeta(NodeData nodeData,
javax.swing.JList metanames,
javax.swing.JList metavalues)
Sorts the metadata of the docNode into the required order and displays metadata names in the JList metanames and the associated metadata values in the JList metavalues. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Displays.MetadataComparator comparator
Constructor Detail |
---|
public Displays()
Method Detail |
---|
public static void createNodesForChildren(DocumentNodeData docNode, javax.swing.tree.DefaultMutableTreeNode treeNode)
docNode
- - the documentNodeData object for whose children treenodes
need to be created.treeNode
- - the treeNode associated with the docNode parameter.public static java.lang.String getImgUrlEnclosedInHtml(java.lang.String imgURL)
imgURL
- - src URL for a (web) image
public static void showMeta(NodeData nodeData, javax.swing.JList metanames, javax.swing.JList metavalues)
nodeData
- is the NodeData object (classifierNodeData or
documentNodeData)
whose metadata is to be displayed in the metanames and metavalues components.metanames
- - a JList to display all the metadata names of nodeDatametavalues
- - a JList to display all the metadata values of nodeData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |