|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Component org.apache.wicket.MarkupContainer org.apache.wicket.markup.html.WebMarkupContainer org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup org.apache.wicket.markup.html.panel.Panel org.apache.wicket.markup.html.tree.LabelIconPanel
public class LabelIconPanel
Simple panel that contains an icon next to a label.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
LabelIconPanel(java.lang.String id,
IModel model,
BaseTree tree)
Constructs the panel. |
Method Summary | |
---|---|
protected void |
addComponents(IModel model,
BaseTree tree)
Adds the icon and content components to the panel. |
protected ResourceReference |
getImageResourceReference(BaseTree tree,
javax.swing.tree.TreeNode node)
Returns the image resource reference based on the give tree node type. |
protected ResourceReference |
getResourceFolderClosed(javax.swing.tree.TreeNode node)
Returns resource reference for closed folder icon. |
protected ResourceReference |
getResourceFolderOpen(javax.swing.tree.TreeNode node)
Returns resource reference for open folder icon. |
protected ResourceReference |
getResourceItemLeaf(javax.swing.tree.TreeNode node)
Returns resource reference for a leaf icon. |
protected Component |
newContentComponent(java.lang.String componentId,
BaseTree tree,
IModel model)
Creates the content component (label in this case) for the node |
protected Component |
newImageComponent(java.lang.String componentId,
BaseTree tree,
IModel model)
Creates the icon component for the node |
protected IModel |
wrapNodeModel(IModel nodeModel)
Optional method for wrapping (creating an intermediate model) for the tree node model |
Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
onComponentTag, onComponentTagBody, renderHead |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup |
---|
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getMarkupType, getWebPage |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LabelIconPanel(java.lang.String id, IModel model, BaseTree tree)
id
- component idmodel
- model that is used to access the TreeNodetree
- Method Detail |
---|
protected void addComponents(IModel model, BaseTree tree)
model
- model that can be used to retrieve the TreeNodetree
- protected Component newImageComponent(java.lang.String componentId, BaseTree tree, IModel model)
componentId
- tree
- model
-
protected Component newContentComponent(java.lang.String componentId, BaseTree tree, IModel model)
componentId
- tree
- model
-
protected ResourceReference getImageResourceReference(BaseTree tree, javax.swing.tree.TreeNode node)
tree
- node
-
protected IModel wrapNodeModel(IModel nodeModel)
nodeModel
-
protected ResourceReference getResourceFolderClosed(javax.swing.tree.TreeNode node)
node
-
protected ResourceReference getResourceFolderOpen(javax.swing.tree.TreeNode node)
node
-
protected ResourceReference getResourceItemLeaf(javax.swing.tree.TreeNode node)
node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |