public class DefaultActionProvider extends Object implements IActionProvider
ActionLayer.setActionProvider(IActionProvider)
Constructor and Description |
---|
DefaultActionProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Class timelineObjectType,
Action... action)
Adds a new action for the given type of timeline objects.
|
List<Action> |
getTimelineObjectActions(LayerContainer lc,
TimelineObjectPath path)
Returns the actions registered for the timeline object specified by the
given timeline object path.
|
void |
removeAction(Class timelineObjectType,
Action... action)
Removes the action for the given timeline object type.
|
void |
setActions(Class timelineObjectType,
List<Action> actions)
Sets the given list of actions as the available quick actions for
timeline objects of the given type.
|
public List<Action> getTimelineObjectActions(LayerContainer lc, TimelineObjectPath path)
getTimelineObjectActions
in interface IActionProvider
lc
- the layer container where the action layer is usedpath
- the path to the timeline objectpublic void addAction(Class timelineObjectType, Action... action)
timelineObjectType
- the object typeaction
- the action to addpublic void setActions(Class timelineObjectType, List<Action> actions)
timelineObjectType
- the type of timeline objects for which the given actions are
availableactions
- the actions to register for the given timeline objectCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.