Package com.e1c.langtool.ui.collector
Class SelectionCollectingEvent
java.lang.Object
java.util.EventObject
com.e1c.langtool.ui.collector.SelectionCollectingEvent
- All Implemented Interfaces:
Serializable
The event of collecting process of selection is changed.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSelectionCollectingEvent(Object source, SelectionCollectingStatus status) Instantiates a new selection collecting event without result, the status should not beSelectionCollectingStatus.UPDATED.SelectionCollectingEvent(Object source, SelectionCollectingStatus status, FeatureValueCollectingResult result) Instantiates a new selection collecting event. -
Method Summary
Modifier and TypeMethodDescription@Nullable FeatureValueCollectingResultGets the current collecting result.@NonNull SelectionCollectingStatusGets the status of collecting event.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SelectionCollectingEvent
public SelectionCollectingEvent(Object source, SelectionCollectingStatus status, FeatureValueCollectingResult result) Instantiates a new selection collecting event. The status and result cannot be null, the means that usually status should beSelectionCollectingStatus.UPDATED.- Parameters:
source- the source, cannot benull.status- the status, cannot benull.result- the result, cannot benull.
-
SelectionCollectingEvent
Instantiates a new selection collecting event without result, the status should not beSelectionCollectingStatus.UPDATED.- Parameters:
source- the source, cannot benull.status- the status, cannot benull.
-
-
Method Details
-
getStatus
Gets the status of collecting event.- Returns:
- the status, cannot return
null.
-
getCurrentCollectingResult
Gets the current collecting result.- Returns:
- the current collecting result, may return
nullif result is empty.
-