Package org.nuclos.api.ui
Interface ResultToolbarItemFactory
public interface ResultToolbarItemFactory
-
Method Summary
Modifier and TypeMethodDescriptionReturns the UID of the business object for the result list the button is shown in.getIcon()
Returns the button's icon which is placed left of the label.getId()
Returns the idgetLabel()
Returns the button's label.int
getOrder()
Returns an integer which is used to determine the order of the buttons in the result list toolbar.Returns the button's tooltip.boolean
Returns true if the user is allowed to use this button based on actions in T_AD_ACTION granted to him/her.Resturns new button.
-
Method Details
-
getId
Object getId()Returns the id- Returns:
- the id
-
getEntityUid
UID getEntityUid()Returns the UID of the business object for the result list the button is shown in. If the return value is null the button is shown in every result list of all business objects- Returns:
- the UID of the business object
-
getLabel
String getLabel()Returns the button's label.- Returns:
- the button's label
-
getTooltip
String getTooltip()Returns the button's tooltip.- Returns:
- the button's tooltip
-
getIcon
Icon getIcon()Returns the button's icon which is placed left of the label.- Returns:
- the button's icon
-
getOrder
int getOrder()Returns an integer which is used to determine the order of the buttons in the result list toolbar. If two button share the same order number the order depends on which class is found first by the class loader which is unpredictable.- Returns:
- order number
-
isAllowed
Returns true if the user is allowed to use this button based on actions in T_AD_ACTION granted to him/her.- Parameters:
grantedActions
- set of UIDs from actions defined in T_AD_ACTION granted to the current user via "administration/user roles"- Returns:
- true if user is allowed to use this button
-
newInstance
ResultToolbarItem newInstance()Resturns new button.- Returns:
- new button
-