org.apache.wicket.extensions.markup.html.tree.table
Class TreeTable

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.markup.html.WebMarkupContainer
              extended by org.apache.wicket.markup.html.panel.Panel
                  extended by org.apache.wicket.extensions.markup.html.tree.AbstractTree
                      extended by org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree
                          extended by org.apache.wicket.extensions.markup.html.tree.table.TreeTable
All Implemented Interfaces:
Serializable, Iterable<Component>, EventListener, TreeModelListener, AjaxRequestTarget.ITargetRespondListener, IEventSink, IEventSource, ITreeStateListener, IConverterLocator, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

Deprecated. Use TableTree instead

@Deprecated
public class TreeTable
extends DefaultAbstractTree

TreeTable is a component that represents a grid with a tree. It's divided into columns. One of the columns has to be column derived from PropertyTreeColumn.

Author:
Matej Knopp
See Also:
Serialized Form

Nested Class Summary
static interface TreeTable.IRenderNodeCallback
          Deprecated. Callback for rendering tree node text.
 
Nested classes/interfaces inherited from class org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree
DefaultAbstractTree.ILinkCallback
 
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
TreeTable(String id, IColumn[] columns)
          Deprecated. Creates the TreeTable for the given array of columns.
TreeTable(String id, IModel<? extends TreeModel> model, IColumn[] columns)
          Deprecated. Creates the TreeTable for the given model and array of columns.
TreeTable(String id, TreeModel model, IColumn[] columns)
          Deprecated. Creates the TreeTable for the given TreeModel and array of columns.
 
Method Summary
protected  void addHeader()
          Deprecated. Adds the header to the TreeTable.
protected  ResourceReference getCSS()
          Deprecated. Returns the resource reference of default stylesheet.
static Component newTreeCell(MarkupContainer parent, String id, TreeNode node, int level, TreeTable.IRenderNodeCallback callback, TreeTable table)
          Deprecated. Creates a tree cell for given node.
protected  Component newTreePanel(MarkupContainer parent, String id, TreeNode node, int level, TreeTable.IRenderNodeCallback renderNodeCallback)
          Deprecated. Creates a new instance of the TreeFragment.
protected  void onBeforeAttach()
          Deprecated. This method is called before the onAttach is called.
protected  void populateTreeItem(WebMarkupContainer item, int level)
          Deprecated. Populates one row of the tree.
 
Methods inherited from class org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree
getFolderClosed, getFolderOpen, getItem, getLinkType, getNodeIcon, newIndentation, newJunctionImage, newJunctionLink, newLink, newNodeIcon, newNodeLink, onJunctionLinkClicked, onNodeLinkClicked, renderHead, setLinkType
 
Methods inherited from class org.apache.wicket.extensions.markup.html.tree.AbstractTree
addComponent, allNodesCollapsed, allNodesExpanded, getChildAt, getChildCount, getModel, getModelObject, getNodeComponent, getParentNode, getTreeState, invalidateAll, isForceRebuildOnSelectionChange, isLeaf, isNodeExpanded, isRootLess, markNodeChildrenDirty, markNodeDirty, newTreeState, nodeChildren, nodeCollapsed, nodeExpanded, nodeSelected, nodeUnselected, onAfterRender, onBeforeRender, onDetach, onTargetRespond, setModel, setModelObject, setRootLess, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, updateTree, updateTree
 
Methods inherited from class org.apache.wicket.markup.html.panel.Panel
newMarkupSourcingStrategy
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeTable

public TreeTable(String id,
                 IColumn[] columns)
Deprecated. 
Creates the TreeTable for the given array of columns.

Parameters:
id -
columns -

TreeTable

public TreeTable(String id,
                 TreeModel model,
                 IColumn[] columns)
Deprecated. 
Creates the TreeTable for the given TreeModel and array of columns.

Parameters:
id - The component id
model - The tree model
columns - The columns

TreeTable

public TreeTable(String id,
                 IModel<? extends TreeModel> model,
                 IColumn[] columns)
Deprecated. 
Creates the TreeTable for the given model and array of columns.

Parameters:
id - The component id
model - The tree model
columns - The columns
Method Detail

newTreeCell

public static Component newTreeCell(MarkupContainer parent,
                                    String id,
                                    TreeNode node,
                                    int level,
                                    TreeTable.IRenderNodeCallback callback,
                                    TreeTable table)
Deprecated. 
Creates a tree cell for given node. This method is supposed to be used by TreeColumns (columns that draw the actual tree).

Parameters:
parent - Parent component
id - Component ID
node - Tree node for the row
level - How deep is the node nested (for convenience)
callback - Used to get the display string
table - Tree table
Returns:
The tree cell

addHeader

protected void addHeader()
Deprecated. 
Adds the header to the TreeTable.


getCSS

protected ResourceReference getCSS()
Deprecated. 
Description copied from class: DefaultAbstractTree
Returns the resource reference of default stylesheet.

Overrides:
getCSS in class DefaultAbstractTree
Returns:
The package resource reference
See Also:
DefaultAbstractTree.getCSS()

newTreePanel

protected Component newTreePanel(MarkupContainer parent,
                                 String id,
                                 TreeNode node,
                                 int level,
                                 TreeTable.IRenderNodeCallback renderNodeCallback)
Deprecated. 
Creates a new instance of the TreeFragment.

Parameters:
parent - The parent component
id - The component id
node - The tree node
level - The level of the tree row
renderNodeCallback - The node call back
Returns:
The tree panel

onBeforeAttach

protected void onBeforeAttach()
Deprecated. 
Description copied from class: AbstractTree
This method is called before the onAttach is called. Code here gets executed before the items have been populated.

Overrides:
onBeforeAttach in class AbstractTree
See Also:
AbstractTree.onBeforeAttach()

populateTreeItem

protected void populateTreeItem(WebMarkupContainer item,
                                int level)
Deprecated. 
Populates one row of the tree.

Specified by:
populateTreeItem in class AbstractTree
Parameters:
item - the tree node component
level - the current level


Copyright © 2006–2020 Apache Software Foundation. All rights reserved.