org.netbeans.core.spi.multiview
Interface CloseOperationHandler
public interface CloseOperationHandler
Handles closing of the MultiView component globally. Each opened MultiViewElement
creates a CloseOperationState instance to notify the environment of it's internal state.
resolveCloseOperation
boolean resolveCloseOperation(CloseOperationState[] elements)
- Perform the closeOperation on the opened elements in the multiview topcomponent.
Can resolve by itself just based on the states of the elements or ask the user for
the decision.
- Parameters:
elements - CloseOperationState instances of MultiViewElements that cannot be
closed and require resolution.
- Returns:
- true if component can be close, false if it shall remain opened.