public interface MediaState
Modifier and Type | Interface and Description |
---|---|
static interface |
MediaState.Listener
Listener interface that receives important information
about the media state workflow.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRedoLastState() |
boolean |
canUndoLastState() |
void |
clearState()
Clears modification history which erases all the tracked steps.
|
void |
commitState()
Propagate changes to the original media state.
|
byte[] |
getState() |
void |
performMediaModification(String actionName)
Starts an action which will create a new state of the media opened in the media editor.
|
void |
redoLastState()
Redo last media state modification.
|
void |
revertState()
Roll back to original media state.
|
void |
setListener(MediaState.Listener listener) |
void |
setState(byte[] newState) |
void |
undoLastState()
Undo last media state modification.
|
void setListener(MediaState.Listener listener)
void clearState()
void performMediaModification(String actionName)
actionName
- the name of an action that performs the modification.void undoLastState() throws ActionExecutionException
ActionExecutionException
boolean canUndoLastState()
boolean canRedoLastState()
void redoLastState() throws ActionExecutionException
ActionExecutionException
void commitState()
void revertState()
byte[] getState()
void setState(byte[] newState)
newState
- set the current state of the media to the newState.Copyright © 2020 Magnolia International Ltd.. All rights reserved.