org.netbeans.swing.tabcontrol.plaf
Class AbstractViewTabDisplayerUI.Controller
java.lang.Object
java.awt.event.MouseAdapter
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractViewTabDisplayerUI.Controller
protected AbstractViewTabDisplayerUI.Controller()
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