com.alee.extended.tab
Interface DocumentListener<T extends DocumentData>

All Known Implementing Classes:
DocumentAdapter

public interface DocumentListener<T extends DocumentData>

Documents state listener for WebDocumentPane component.

Author:
Mikle Garin
See Also:
How to use WebDocumentPane, WebDocumentPane

Method Summary
 void closed(T document, PaneData<T> pane, int index)
          Informs that provided document is closed.
 boolean closing(T document, PaneData<T> pane, int index)
          Informs that provided document is being closed.
 void opened(T document, PaneData<T> pane, int index)
          Informs that provided document was opened inside document pane.
 

Method Detail

opened

void opened(T document,
            PaneData<T> pane,
            int index)
Informs that provided document was opened inside document pane.

Parameters:
document - document data
pane - specific document pane
index - document tab index

closing

boolean closing(T document,
                PaneData<T> pane,
                int index)
Informs that provided document is being closed. Returns whether document is allowed to close or not.

Parameters:
document - document data
pane - specific document pane
index - document tab index
Returns:
true if document is allowed to close, false otherwise

closed

void closed(T document,
            PaneData<T> pane,
            int index)
Informs that provided document is closed.

Parameters:
document - document data
pane - specific document pane
index - document tab index