org.robokind.api.animation.editor.actions
Class EditorAction<T extends AbstractEditor<B,C>,B,C>

java.lang.Object
  extended by org.robokind.api.animation.editor.actions.EditorAction<T,B,C>
Type Parameters:
T -
C -
B -
All Implemented Interfaces:
ActionListener, EventListener
Direct Known Subclasses:
AnimationAction, ChannelActions.ChannelAction, EditorAction.AddChild, EditorAction.AddChildController, EditorAction.Remove, EditorAction.RemoveChild, EditorAction.SetState, HistoryStack.EmptyAction, MotionPathActions.PathAction, SynchronizedPointGroup.LinkAction, SynchronizedPointGroup.UnlinkAction

public abstract class EditorAction<T extends AbstractEditor<B,C>,B,C>
extends Object
implements ActionListener

Author:
Matthew Stevenson

Nested Class Summary
static class EditorAction.AddChild<T extends AbstractEditor<B,C>,B,C>
           
static class EditorAction.AddChildController<T extends AbstractEditor<B,C>,B,C>
           
static class EditorAction.Remove<T extends AbstractEditor<B,C>,B,C>
           
static class EditorAction.RemoveChild<T extends AbstractEditor<B,C>,B,C>
           
static class EditorAction.SetSelect<T extends AbstractEditor<B,C>,B,C>
           
static class EditorAction.SetState<T extends AbstractEditor<B,C>,B,C>
           
 
Field Summary
protected  T myController
           
protected  HistoryStack myHistory
           
 
Constructor Summary
EditorAction(T editor)
           
EditorAction(T controller, HistoryStack hist)
           
 
Method Summary
static EditorAction.SetState Disabled(AbstractEditor controller)
           
 HistoryStack getHistory()
           
 AbstractEditor getParent()
           
static EditorAction.SetState Locked(AbstractEditor controller)
           
static EditorAction.SetState Select(AbstractEditor controller)
           
 void setHistory(HistoryStack hist)
           
static EditorAction.SetState Visible(AbstractEditor controller)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

myController

protected T extends AbstractEditor<B,C> myController

myHistory

protected HistoryStack myHistory
Constructor Detail

EditorAction

public EditorAction(T editor)
Parameters:
label -
editor -

EditorAction

public EditorAction(T controller,
                    HistoryStack hist)
Method Detail

getParent

public AbstractEditor getParent()
Returns:

getHistory

public HistoryStack getHistory()

setHistory

public void setHistory(HistoryStack hist)

Locked

public static EditorAction.SetState Locked(AbstractEditor controller)
Parameters:
controller -
set -
unset -
Returns:

Disabled

public static EditorAction.SetState Disabled(AbstractEditor controller)
Parameters:
controller -
set -
unset -
Returns:

Visible

public static EditorAction.SetState Visible(AbstractEditor controller)
Parameters:
controller -
set -
unset -
Returns:

Select

public static EditorAction.SetState Select(AbstractEditor controller)
Parameters:
controller -
set -
unset -
Returns:


Copyright © 2011-2013. All Rights Reserved.