public abstract class SideBarItemDescriptor extends Object implements Comparable<SideBarItemDescriptor>
SideBarItem annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
SideBarItemDescriptor.ActionItemDescriptor
Side bar item descriptor for action items.
|
static class |
SideBarItemDescriptor.ViewItemDescriptor
Side bar item descriptor for view items.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SideBarItemDescriptor(String beanName,
ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SideBarItemDescriptor o) |
protected ApplicationContext |
getApplicationContext()
TODO Document me
|
protected String |
getBeanName()
TODO Document me
|
String |
getCaption()
Returns the caption of this side bar item.
|
Resource |
getIcon()
Returns the icon of the side bar item.
|
int |
getOrder()
Returns the order of this side bar item within the section.
|
boolean |
isMemberOfSection(SideBarSectionDescriptor section)
Checks if this item is a member of the specified side bar section.
|
abstract void |
itemInvoked(UI ui)
This method must be called when the user clicks the item in the UI.
|
protected SideBarItemDescriptor(String beanName, ApplicationContext applicationContext)
protected ApplicationContext getApplicationContext()
protected String getBeanName()
public String getCaption()
SideBarItem.captionCode(),
this method will fetch the string from I18N.null.public Resource getIcon()
null if the item has no icon.public int getOrder()
public boolean isMemberOfSection(SideBarSectionDescriptor section)
section - the side bar section, must not be null.public int compareTo(SideBarItemDescriptor o)
compareTo in interface Comparable<SideBarItemDescriptor>public abstract void itemInvoked(UI ui)
ui - the UI in which the item was invoked, must not be null.Copyright © 2015. All rights reserved.