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

All Known Implementing Classes:
PaneDataAdapter

public interface DocumentDataListener<T extends DocumentData>

Special listener that tracks DocumentData changes. Its general purpose is to keep WebDocumentPane updated with DocumentData changes.

Author:
Mikle Garin

Method Summary
 void backgroundChanged(T document, java.awt.Color oldBackground, java.awt.Color newBackground)
          Inform about tab background changes.
 void contentChanged(T document, java.awt.Component oldComponent, java.awt.Component newComponent)
          Informs about tab component changes.
 void titleChanged(T document)
          Informs about data changes which affects document tab view.
 

Method Detail

titleChanged

void titleChanged(T document)
Informs about data changes which affects document tab view.

Parameters:
document - modified document

backgroundChanged

void backgroundChanged(T document,
                       java.awt.Color oldBackground,
                       java.awt.Color newBackground)
Inform about tab background changes.

Parameters:
document - modified document
oldBackground - previous background color
newBackground - new background color

contentChanged

void contentChanged(T document,
                    java.awt.Component oldComponent,
                    java.awt.Component newComponent)
Informs about tab component changes.

Parameters:
document - modified document
oldComponent - previous tab content
newComponent - new tab content