Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## kieker.webgui.web.beans.view
Class AnalysisEditorHistoryBean

    java.lang.Object
      kieker.webgui.web.beans.view.AnalysisEditorHistoryBean

All Implemented Interfaces:
  IGraphListener

    @Component
    @Scope(value="view")
    public final class AnalysisEditorHistoryBean

extends Object
implements IGraphListener

This bean contains the necessary data behind an instance of the analysis editor for the undo and redo operations.
The class is a Spring managed bean with view scope to make sure that one user (even in one session) can open multiple projects at a time without causing any problems.

Author:
  Nils Christian Ehmke

Constructor Summary
`AnalysisEditorHistoryBean()` Creates a new instance of this class.

Method Summary
`void` | `componentDeletedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent deletedComponent)` An event occurring when a component has been deleted.
`void` | `componentSelectedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent selectedComponent)` An event occurring when a component has been selected.
`void` | `connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort sourcePort, kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)` An event occurring when a connection has been created.
`void` | `connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort, kieker.analysis.model.analysisMetaModel.MIRepository targetRepo)` An event occurring when a connection has been created.
`void` | `connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort sourcePort, kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)` An event occurring when a connection has been deleted.
`void` | `connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort, kieker.analysis.model.analysisMetaModel.MIRepository targetRepo)` An event occurring when a connection has been deleted.
`boolean` | `isRedoStackEmpty()` Tells whether the redo stack is empty or not.
`boolean` | `isUndoStackEmpty()` Tells whether the undo stack is empty or not.
`void` | `redoLastCommand()` Redos the last command.
`void` | `undoLastCommand()` Undos the last command.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AnalysisEditorHistoryBean

    public AnalysisEditorHistoryBean()

  Creates a new instance of this class. Do not call this constructor manually. It will only be accessed by Spring.

Method Detail

### undoLastCommand

    public void undoLastCommand()

  Undos the last command.

### redoLastCommand

    public void redoLastCommand()

  Redos the last command.

### isUndoStackEmpty

    public boolean isUndoStackEmpty()

  Tells whether the undo stack is empty or not.

  Returns:
    true iff the undo stack is empty.

### isRedoStackEmpty

    public boolean isRedoStackEmpty()

  Tells whether the redo stack is empty or not.

  Returns:
    true iff the redo stack is empty.

### componentSelectedEvent

    public void componentSelectedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent selectedComponent)

  Description copied from interface: `IGraphListener`
  An event occurring when a component has been selected.

  Specified by:
    `componentSelectedEvent` in interface `IGraphListener`
  Parameters:
    `selectedComponent` - The selected component.

### componentDeletedEvent

    public void componentDeletedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent deletedComponent)

  Description copied from interface: `IGraphListener`
  An event occurring when a component has been deleted.

  Specified by:
    `componentDeletedEvent` in interface `IGraphListener`
  Parameters:
    `deletedComponent` - The deleted component.

### connectionAddedEvent

    public void connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort,
                                     kieker.analysis.model.analysisMetaModel.MIRepository targetRepo)

  Description copied from interface: `IGraphListener`
  An event occurring when a connection has been created.

  Specified by:
    `connectionAddedEvent` in interface `IGraphListener`
  Parameters:
    `sourcePort` - The source port.
    `targetRepo` - The target.

### connectionAddedEvent

    public void connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort sourcePort,
                                     kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)

  Description copied from interface: `IGraphListener`
  An event occurring when a connection has been created.

  Specified by:
    `connectionAddedEvent` in interface `IGraphListener`
  Parameters:
    `sourcePort` - The source port.
    `targetPort` - The target port.

### connectionDeletedEvent

    public void connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort,
                                       kieker.analysis.model.analysisMetaModel.MIRepository targetRepo)

  Description copied from interface: `IGraphListener`
  An event occurring when a connection has been deleted.

  Specified by:
    `connectionDeletedEvent` in interface `IGraphListener`
  Parameters:
    `sourcePort` - The source port.
    `targetRepo` - The target.

### connectionDeletedEvent

    public void connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort sourcePort,
                                       kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)

  Description copied from interface: `IGraphListener`
  An event occurring when a connection has been deleted.

  Specified by:
    `connectionDeletedEvent` in interface `IGraphListener`
  Parameters:
    `sourcePort` - The source port.
    `targetPort` - The target port.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All rights reserved.