| org.jasig.portal.channels.jsp.tree.ISurrogate
All known Subclasses: org.jasig.portal.channels.jsp.tree.BaseSurrogateImpl,
ISurrogate | public interface ISurrogate (Code) | | Implementations of this class represent an object that knows how to acquire
specific pieces of information needed to present a node in a hierarchical
tree view.
author: Mark Boyd |
canContainChildren | public boolean canContainChildren(Object o)(Code) | | |
canResolve | public boolean canResolve(Object o)(Code) | | Determines if the passed in Object is an instance of an object for which
this class can act as a surrogate.
Parameters: o - true if this class can act as a surrogate for the passed in object. |
getAspects | public Object[] getAspects(Object o)(Code) | | Returns the aspects of the passed in object. This method is only called
hasAspects() returns true. Aspects act like children but do not include a
line from them to the parent-to-child branch and can be exposed without
expanding the parent to show the children. Unlike children, aspects can
not have any containing nodes. They are only meant to portray some
information of the parent node.
Parameters: o - |
getId | public String getId(Object o)(Code) | | Gets the unique id for the passed in object. This id will be used in as
the value of query parameter, jsp_tree_item, in the event that this
item supports any actions and the link for that action for thit item in
the view was selected by a user. It also is the value passed to the label
resolver to acquire the UI presentable label to represent the passed in
object in the view.
Parameters: o - the id for o. |
getLabelData | public Object getLabelData(Object o)(Code) | | Returns information needed for rendering the UI representation of this
node. Since label rendering is pluggable the object returned should be
known and understood by the plugged-in rendering JSP.
Parameters: o - the UI presentable label for o. |
hasAspects | public boolean hasAspects(Object o)(Code) | | Indicates if this object has aspects. Aspects act like children
but do not include a line from them to the parent-to-child branch and
can be exposed without expanding the parent to show the children. Unlike
children, aspects can not have any contained nodes. They are only meant
to portray some information of the parent node.
Parameters: o - |
|
|