viper.api.impl
Class DescriptorImpl.UndoableValidRangeChangeEvent

java.lang.Object
  extended byviper.api.impl.AbstractViperChangeEvent
      extended byviper.api.impl.AbstractMinorChange
          extended byviper.api.impl.DescriptorImpl.ValidRangeChangeEvent
              extended byviper.api.impl.DescriptorImpl.UndoableValidRangeChangeEvent
All Implemented Interfaces:
MinorNodeChangeEvent, ViperChangeEvent, ViperUndoableEvent
Enclosing class:
DescriptorImpl

public class DescriptorImpl.UndoableValidRangeChangeEvent
extends viper.api.impl.DescriptorImpl.ValidRangeChangeEvent
implements ViperUndoableEvent


Nested Class Summary
 
Nested classes inherited from class viper.api.extensions.ViperUndoableEvent
ViperUndoableEvent.Undoable
 
Field Summary
 
Fields inherited from class viper.api.impl.AbstractMinorChange
index, localName, source
 
Constructor Summary
DescriptorImpl.UndoableValidRangeChangeEvent(DescriptorImpl src, TemporalRange oldRange, TemporalRange newRange, int index)
          Creates a new event describing a change of the validity region
 
Method Summary
 TemporalRange getNewRange()
          Gets the range over which the descriptor is valid after the change.
 TemporalRange getOldRange()
          Gets the range over which the descriptor was valid before the change.
 ViperUndoableEvent.Undoable getUndoable()
          Gets the undoable edit object associated with the event.
 
Methods inherited from class viper.api.impl.AbstractMinorChange
getIndexes, getParent, getSource, getUri
 
Methods inherited from class viper.api.impl.AbstractViperChangeEvent
addProperty, getProperty, listProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface viper.api.extensions.ViperChangeEvent
getIndexes, getParent, getProperty, getSource, getUri, listProperties
 

Constructor Detail

DescriptorImpl.UndoableValidRangeChangeEvent

public DescriptorImpl.UndoableValidRangeChangeEvent(DescriptorImpl src,
                                                    TemporalRange oldRange,
                                                    TemporalRange newRange,
                                                    int index)
Creates a new event describing a change of the validity region

Parameters:
src - the source descriptor
oldRange - the old range
newRange - the new range
index - the index of the descriptor
Method Detail

getUndoable

public ViperUndoableEvent.Undoable getUndoable()
Description copied from interface: ViperUndoableEvent
Gets the undoable edit object associated with the event.

Specified by:
getUndoable in interface ViperUndoableEvent
Returns:
the Undoable editor
See Also:
ViperUndoableEvent.getUndoable()

getNewRange

public TemporalRange getNewRange()
Gets the range over which the descriptor is valid after the change.

Returns:
the new validity range

getOldRange

public TemporalRange getOldRange()
Gets the range over which the descriptor was valid before the change.

Returns:
the old validity range