public class UpdateActionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
UpdateActionManager.UpdateManagerListener
Listen from changes to update manager.
|
Constructor and Description |
---|
UpdateActionManager(WorkspaceUpdater workspace)
Construct a new update manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addAction(UpdateAction action)
Add an action to the list.
|
void |
addListener(UpdateActionManager.UpdateManagerListener listener)
Listen for updates to the update manager.
|
void |
clear()
Remove all actions completely.
|
java.util.List<UpdateAction> |
getActionList() |
java.util.List<UpdateAction> |
getAvailableActionList()
Returns a list of network update actions that can be added.
|
void |
postAddInit()
Perform initialization after deserializing.
|
void |
removeAction(UpdateAction action)
Completely remove an action.
|
void |
removeListener(UpdateActionManager.UpdateManagerListener listener)
Remove listener.
|
void |
setDefaultUpdateActions()
Puts the update in its default configuration, with Buffered update as the
default action.
|
void |
swapElements(int index1,
int index2)
Swap elements at the specified location.
|
public UpdateActionManager(WorkspaceUpdater workspace)
workspace
- reference to workspace updater.public void postAddInit()
public void addListener(UpdateActionManager.UpdateManagerListener listener)
listener
- the listener to addpublic void removeListener(UpdateActionManager.UpdateManagerListener listener)
listener
- the listener to removepublic java.util.List<UpdateAction> getActionList()
public void swapElements(int index1, int index2)
index1
- index of first elementindex2
- index of second elementpublic void addAction(UpdateAction action)
action
- the action to add.public void removeAction(UpdateAction action)
action
- the action to completely removepublic void clear()
public void setDefaultUpdateActions()
public java.util.List<UpdateAction> getAvailableActionList()