Class TickUpdateHandlerFixture
java.lang.Object
org.eclipse.nebula.widgets.nattable.test.fixture.TickUpdateHandlerFixture
- All Implemented Interfaces:
ITickUpdateHandler
-
Field Summary
Fields inherited from interface org.eclipse.nebula.widgets.nattable.tickupdate.ITickUpdateHandler
DEFAULT_TICK_UPDATE_HANDLER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecrementedValue(Object currentValue) Perform an decrement of the current value by a default value.getDecrementedValue(Object currentValue, double decrementSize) Perform an decrement of the current value by the given decrement value.getIncrementedValue(Object currentValue) Perform an increment of the current value by a default value.getIncrementedValue(Object currentValue, double incrementSize) Perform an increment of the current value by the given increment value.booleanisApplicableFor(Object value) Checks if the given object can be handled by this handler.
-
Constructor Details
-
TickUpdateHandlerFixture
public TickUpdateHandlerFixture()
-
-
Method Details
-
isApplicableFor
Description copied from interface:ITickUpdateHandlerChecks if the given object can be handled by this handler. Usually it will simply perform a instanceof check.- Specified by:
isApplicableForin interfaceITickUpdateHandler- Parameters:
value- The value to check.- Returns:
trueif this handler is able to perform tick updates on the given value,falseif not.
-
getDecrementedValue
Description copied from interface:ITickUpdateHandlerPerform an decrement of the current value by a default value.- Specified by:
getDecrementedValuein interfaceITickUpdateHandler- Parameters:
currentValue- The value to perform the decrement on.- Returns:
- The new value after decrement it by a default value.
-
getIncrementedValue
Description copied from interface:ITickUpdateHandlerPerform an increment of the current value by a default value.- Specified by:
getIncrementedValuein interfaceITickUpdateHandler- Parameters:
currentValue- The value to perform the increment on.- Returns:
- The new value after increment it by a default value.
-
getIncrementedValue
Description copied from interface:ITickUpdateHandlerPerform an increment of the current value by the given increment value.- Specified by:
getIncrementedValuein interfaceITickUpdateHandler- 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
Description copied from interface:ITickUpdateHandlerPerform an decrement of the current value by the given decrement value.- Specified by:
getDecrementedValuein interfaceITickUpdateHandler- 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.
-