public class ActionbarService extends Object
| Constructor and Description |
|---|
ActionbarService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createActionButton(ActionButton actionButton)
Creates an action button
|
ActionButton |
findActionButton(int nIdAction)
find an action button
|
List<ActionButton> |
findActionButtons(List<Integer> listIdActions)
Get a list of actions buttons from a list of ids
|
List<ActionButton> |
findActionButtonsByResourceType(String strResourceType)
Get the list of action buttons associated with a resource type.
|
List<ActionButton> |
findAllActionButtons()
Get the list of action buttons
|
int |
getNewOrder()
Get the next available order
|
void |
removeActionButton(int nIdAction)
Remove an action button from its id
|
void |
updateActionButton(ActionButton actionButton)
Update an action button
|
void |
updateActionButtonOrder(ActionButton action,
int nNewOrder)
Update the order of an action button.
|
public static final String BEAN_NAME
public List<ActionButton> findActionButtonsByResourceType(String strResourceType)
strResourceType - The resource type of buttonspublic List<ActionButton> findAllActionButtons()
public List<ActionButton> findActionButtons(List<Integer> listIdActions)
listIdActions - The list of ids of action buttons to getpublic void createActionButton(ActionButton actionButton)
actionButton - The action button to createpublic ActionButton findActionButton(int nIdAction)
nIdAction - The id of the action buttonpublic void updateActionButton(ActionButton actionButton)
actionButton - The action button to updatepublic void removeActionButton(int nIdAction)
nIdAction - The id of the action button to removepublic void updateActionButtonOrder(ActionButton action, int nNewOrder)
action - The action button to move. The order attribute of the
action button MUST be its old order.nNewOrder - The new order of the topicpublic int getNewOrder()
Copyright © 2015 City of Paris. All rights reserved.