org.netbeans.swing.tabcontrol 1.36

org.netbeans.swing.tabcontrol.plaf
Class AbstractTabDisplayerUI.ModelListener

java.lang.Object
  extended by org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI.ModelListener
All Implemented Interfaces:
EventListener, ChangeListener, ListDataListener, ComplexListDataListener
Direct Known Subclasses:
BasicTabDisplayerUI.BasicModelListener
Enclosing class:
AbstractTabDisplayerUI

protected class AbstractTabDisplayerUI.ModelListener
extends Object
implements ComplexListDataListener, ChangeListener

Simple implementation of a listener on a TabDataModel. The default implementation simply does a full repaint of the tabs area on a ChangeEvent. More optimized implementations are possible by handling ListDataEvents.


Constructor Summary
protected AbstractTabDisplayerUI.ModelListener()
           
 
Method Summary
 void contentsChanged(ListDataEvent e)
          No-op implementation
 void indicesAdded(ComplexListDataEvent e)
          No-op implementation
 void indicesChanged(ComplexListDataEvent e)
          No-op implementation
 void indicesRemoved(ComplexListDataEvent e)
          No-op implementation
 void intervalAdded(ListDataEvent e)
          No-op implementation
 void intervalRemoved(ListDataEvent e)
          No-op implementation
 void stateChanged(ChangeEvent e)
          Called whenever any change happens in the data model (one of the above methods will also be called with specific data about the change).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTabDisplayerUI.ModelListener

protected AbstractTabDisplayerUI.ModelListener()
Method Detail

contentsChanged

public void contentsChanged(ListDataEvent e)
No-op implementation

Specified by:
contentsChanged in interface ListDataListener

indicesAdded

public void indicesAdded(ComplexListDataEvent e)
No-op implementation

Specified by:
indicesAdded in interface ComplexListDataListener
Parameters:
e - The event

indicesChanged

public void indicesChanged(ComplexListDataEvent e)
No-op implementation

Specified by:
indicesChanged in interface ComplexListDataListener
Parameters:
e - The event

indicesRemoved

public void indicesRemoved(ComplexListDataEvent e)
No-op implementation

Specified by:
indicesRemoved in interface ComplexListDataListener
Parameters:
e - The event

intervalAdded

public void intervalAdded(ListDataEvent e)
No-op implementation

Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent e)
No-op implementation

Specified by:
intervalRemoved in interface ListDataListener

stateChanged

public final void stateChanged(ChangeEvent e)
Called whenever any change happens in the data model (one of the above methods will also be called with specific data about the change). This method is final, and simply calls modelChanged(). To discard some cached data when the model changes, simply override that.

Specified by:
stateChanged in interface ChangeListener

org.netbeans.swing.tabcontrol 1.36

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.