org.netbeans.swing.tabcontrol 1.36

org.netbeans.swing.tabcontrol.plaf
Class AbstractViewTabDisplayerUI.Controller

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI.Controller
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, PropertyChangeListener, EventListener, ChangeListener, ListDataListener, ComplexListDataListener
Enclosing class:
AbstractViewTabDisplayerUI

protected class AbstractViewTabDisplayerUI.Controller
extends MouseAdapter
implements MouseMotionListener, ChangeListener, PropertyChangeListener, ComplexListDataListener

Listen to mouse events and handles selection behaviour and close icon button behaviour.


Constructor Summary
protected AbstractViewTabDisplayerUI.Controller()
           
 
Method Summary
 void contentsChanged(ListDataEvent evt)
           
 boolean inControlButtonsRect(Point p)
           
 void indicesAdded(ComplexListDataEvent e)
          Elements have been added at the indices specified by the event's getIndices() value
 void indicesChanged(ComplexListDataEvent e)
          Elements have been changed at the indices specified by the event's getIndices() value.
 void indicesRemoved(ComplexListDataEvent e)
          Elements have been removed at the indices specified by the event's getIndices() value
 void intervalAdded(ListDataEvent evt)
           
 void intervalRemoved(ListDataEvent evt)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void propertyChange(PropertyChangeEvent pce)
           
protected  boolean shouldReact(MouseEvent e)
           
 void stateChanged(ChangeEvent ce)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewTabDisplayerUI.Controller

protected AbstractViewTabDisplayerUI.Controller()
Method Detail

shouldReact

protected boolean shouldReact(MouseEvent e)

stateChanged

public void stateChanged(ChangeEvent ce)
Specified by:
stateChanged in interface ChangeListener

propertyChange

public void propertyChange(PropertyChangeEvent pce)
Specified by:
propertyChange in interface PropertyChangeListener

inControlButtonsRect

public boolean inControlButtonsRect(Point p)
Parameters:
p - Mouse point location
Returns:
True if the point is in the control buttons panel.

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

indicesAdded

public void indicesAdded(ComplexListDataEvent e)
Description copied from interface: ComplexListDataListener
Elements have been added at the indices specified by the event's getIndices() value

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

indicesRemoved

public void indicesRemoved(ComplexListDataEvent e)
Elements have been removed at the indices specified by the event's getIndices() value

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

indicesChanged

public void indicesChanged(ComplexListDataEvent e)
Elements have been changed at the indices specified by the event's getIndices() value. If the changed data can affect display width (such as a text change or a change in icon size), the event's isTextChanged() method will return true.

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

intervalAdded

public void intervalAdded(ListDataEvent evt)
Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent evt)
Specified by:
intervalRemoved in interface ListDataListener

contentsChanged

public void contentsChanged(ListDataEvent evt)
Specified by:
contentsChanged in interface ListDataListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class MouseAdapter

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class MouseAdapter

org.netbeans.swing.tabcontrol 1.36

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