|
||||||||||
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.panel.Panel org.apache.wicket.markup.html.tree.LabelIconPanel
public class LabelIconPanel
Simple panel that contains an icon next to a label.
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 | |
---|---|
LabelIconPanel(String id,
IModel<Object> model,
BaseTree tree)
Constructs the panel. |
Method Summary | |
---|---|
protected void |
addComponents(IModel<Object> model,
BaseTree tree)
Adds the icon and content components to the panel. |
protected ResourceReference |
getImageResourceReference(BaseTree tree,
Object node)
Returns the image resource reference based on the give tree node type. |
protected ResourceReference |
getResourceFolderClosed(Object node)
Returns resource reference for closed folder icon. |
protected ResourceReference |
getResourceFolderOpen(Object node)
Returns resource reference for open folder icon. |
protected ResourceReference |
getResourceItemLeaf(Object node)
Returns resource reference for a leaf icon. |
protected Component |
newContentComponent(String componentId,
BaseTree tree,
IModel<?> model)
Creates the content component (label in this case) for the node |
protected Component |
newImageComponent(String componentId,
BaseTree tree,
IModel<Object> model)
Creates the icon component for the node |
protected IModel<Object> |
wrapNodeModel(IModel<Object> 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 |
---|
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 LabelIconPanel(String id, IModel<Object> model, BaseTree tree)
id
- component idmodel
- model that is used to access the TreeNodetree
- Method Detail |
---|
protected void addComponents(IModel<Object> model, BaseTree tree)
model
- model that can be used to retrieve the TreeNodetree
- protected Component newImageComponent(String componentId, BaseTree tree, IModel<Object> model)
componentId
- tree
- model
-
protected Component newContentComponent(String componentId, BaseTree tree, IModel<?> model)
componentId
- tree
- model
-
protected ResourceReference getImageResourceReference(BaseTree tree, Object node)
tree
- node
-
protected IModel<Object> wrapNodeModel(IModel<Object> nodeModel)
nodeModel
-
protected ResourceReference getResourceFolderClosed(Object node)
node
-
protected ResourceReference getResourceFolderOpen(Object node)
node
-
protected ResourceReference getResourceItemLeaf(Object node)
node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |