Class TickUpdateHandlerFixture

java.lang.Object
org.eclipse.nebula.widgets.nattable.test.fixture.TickUpdateHandlerFixture
All Implemented Interfaces:
ITickUpdateHandler

public class TickUpdateHandlerFixture extends Object implements ITickUpdateHandler
  • Constructor Details

    • TickUpdateHandlerFixture

      public TickUpdateHandlerFixture()
  • Method Details

    • isApplicableFor

      public boolean isApplicableFor(Object value)
      Description copied from interface: ITickUpdateHandler
      Checks if the given object can be handled by this handler. Usually it will simply perform a instanceof check.
      Specified by:
      isApplicableFor in interface ITickUpdateHandler
      Parameters:
      value - The value to check.
      Returns:
      true if this handler is able to perform tick updates on the given value, false if not.
    • getDecrementedValue

      public Object getDecrementedValue(Object currentValue)
      Description copied from interface: ITickUpdateHandler
      Perform an decrement of the current value by a default value.
      Specified by:
      getDecrementedValue in interface ITickUpdateHandler
      Parameters:
      currentValue - The value to perform the decrement on.
      Returns:
      The new value after decrement it by a default value.
    • getIncrementedValue

      public Object getIncrementedValue(Object currentValue)
      Description copied from interface: ITickUpdateHandler
      Perform an increment of the current value by a default value.
      Specified by:
      getIncrementedValue in interface ITickUpdateHandler
      Parameters:
      currentValue - The value to perform the increment on.
      Returns:
      The new value after increment it by a default value.
    • getIncrementedValue

      public Object getIncrementedValue(Object currentValue, double incrementSize)
      Description copied from interface: ITickUpdateHandler
      Perform an increment of the current value by the given increment value.
      Specified by:
      getIncrementedValue in interface ITickUpdateHandler
      Parameters:
      currentValue - The value to perform the increment on.
      incrementSize - The value the currentValue should be incremented by.
      Returns:
      The new value after increment it by the specified value.
    • getDecrementedValue

      public Object getDecrementedValue(Object currentValue, double decrementSize)
      Description copied from interface: ITickUpdateHandler
      Perform an decrement of the current value by the given decrement value.
      Specified by:
      getDecrementedValue in interface ITickUpdateHandler
      Parameters:
      currentValue - The value to perform the decrement on.
      decrementSize - The value the currentValue should be decremented by.
      Returns:
      The new value after decrement it by the specified value.