Class FunctionModifiedEvent
java.lang.Object
org.dawnsci.common.widgets.gda.function.internal.model.FunctionModifiedEvent
- All Implemented Interfaces:
IFunctionModifiedEvent
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionModifiedEvent(IFunction beforeFunction, IFunction afterFunction, IOperator parentOperator, int indexInParentOperator) -
Method Summary
Modifier and TypeMethodDescriptionReturn the function after the modification.Return the function prior to the modification.intReturn the index of the modified function in the parent operator.Return the index of the modified function in the parent operator, if known.
-
Constructor Details
-
FunctionModifiedEvent
-
-
Method Details
-
getBeforeFunction
Description copied from interface:IFunctionModifiedEventReturn the function prior to the modification. If the modification was made in place thenIFunctionModifiedEvent.getBeforeFunction()==IFunctionModifiedEvent.getAfterFunction().On a new function being created, returns
null- Specified by:
getBeforeFunctionin interfaceIFunctionModifiedEvent- Returns:
-
getAfterFunction
Description copied from interface:IFunctionModifiedEventReturn the function after the modification.On a new function being deleted, returns
null- Specified by:
getAfterFunctionin interfaceIFunctionModifiedEvent- Returns:
-
getParentOperator
Description copied from interface:IFunctionModifiedEventReturn the index of the modified function in the parent operator, if known. Otherwise return null.- Specified by:
getParentOperatorin interfaceIFunctionModifiedEvent- Returns:
-
getIndexInParentOperator
public int getIndexInParentOperator()Description copied from interface:IFunctionModifiedEventReturn the index of the modified function in the parent operator. Only valid ifIFunctionModifiedEvent.getParentOperator()is not null.- Specified by:
getIndexInParentOperatorin interfaceIFunctionModifiedEvent- Returns:
-