protected static class TabCloseIcon.TabCloseIconMouseListener
extends java.awt.event.MouseAdapter
| Modifier | Constructor and Description |
|---|---|
protected |
TabCloseIconMouseListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMenuItem(javax.swing.JPopupMenu pop,
javax.swing.JMenuItem mi)
Adds the menu item to the popup menu.
|
protected void |
addMenuItems(javax.swing.JPopupMenu pop,
java.lang.String curTitle)
Adds the menu item to the popup menu.
|
void |
checkAddListenerToComp(java.awt.Component compObj)
Checks if this listener was previously added to the given component
and adds it if not.
|
protected boolean |
getTabInfo(java.awt.event.MouseEvent e)
Get the tab information.
|
protected void |
maybeShowPopup(java.awt.event.MouseEvent e)
Show the popup if the event is a popup trigger.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class java.awt.event.MouseAdaptere - the MouseEvent.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdaptere - the MouseEvent.public void checkAddListenerToComp(java.awt.Component compObj)
compObj - Component object to use.protected void addMenuItem(javax.swing.JPopupMenu pop,
javax.swing.JMenuItem mi)
pop - the popup menu.mi - the menu item.protected void addMenuItems(javax.swing.JPopupMenu pop,
java.lang.String curTitle)
pop - the popup menu.curTitle - the current title.protected boolean getTabInfo(java.awt.event.MouseEvent e)
e - the MouseEvent.protected void maybeShowPopup(java.awt.event.MouseEvent e)
e - the MouseEvent.getCurrentInfo