|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
com.inmethod.grid.treegrid.TreePanel<T,I>
T - tree model object typeI - node model object typepublic abstract class TreePanel<T extends TreeModel,I extends TreeNode>
Represents the content of a tree column cell.
| Nested Class Summary | |
|---|---|
static interface |
TreePanel.ILinkCallback
Helper class for calling an action from a link. |
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
|---|
PANEL |
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
TreePanel(String id,
IModel<I> model,
int level)
Constructor. |
|
| Method Summary | |
|---|---|
protected IModel<I> |
getDefaultNodeModel()
|
protected abstract Icon |
getIcon(IModel<I> model)
Return the icon for this node or null if no icon should be used. |
IconImage |
getIconComponent()
Returns the icon component instance. |
protected Component |
newJunctionLink(MarkupContainer parent,
String id,
Object node)
Creates the junction link for given node. |
MarkupContainer |
newLink(String id,
TreePanel.ILinkCallback callback)
Creates a link of type specified by current linkType. |
protected abstract Component |
newNodeComponent(String id,
IModel<I> model)
Creates a new component for the given TreeNode. |
protected void |
onInitialize()
|
protected abstract void |
onJunctionLinkClicked(AjaxRequestTarget target,
Object node)
Callback function called after user clicked on an junction link. |
| Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
|---|
newMarkupSourcingStrategy |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getWebPage, getWebRequest |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreePanel(String id,
IModel<I> model,
int level)
id - component idmodel - model to access the TreeNodelevel - node depth level| Method Detail |
|---|
protected void onInitialize()
onInitialize in class Componentpublic IconImage getIconComponent()
protected abstract Icon getIcon(IModel<I> model)
model - model for the TreeNode
protected abstract Component newNodeComponent(String id,
IModel<I> model)
id - component IDmodel - model that returns the node
protected IModel<I> getDefaultNodeModel()
protected Component newJunctionLink(MarkupContainer parent,
String id,
Object node)
parent - parent component of the linkid - wicket:id of the componentnode - tree node for which the link should be created.
public MarkupContainer newLink(String id,
TreePanel.ILinkCallback callback)
id - The component idcallback - The link call back
protected abstract void onJunctionLinkClicked(AjaxRequestTarget target,
Object node)
target - Request target - may be null on non-ajax callnode - Node for which this callback is relevant
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||