Package jmri.jmrit.beantable
Class ListedTableFrame.ActionJList
- java.lang.Object
-
- jmri.util.swing.JmriMouseAdapter
-
- jmri.jmrit.beantable.ListedTableFrame.ActionJList
-
- All Implemented Interfaces:
java.util.EventListener
,JmriMouseListener
- Enclosing class:
- ListedTableFrame<E extends NamedBean>
class ListedTableFrame.ActionJList extends JmriMouseAdapter
ActionJList This deals with handling non-default mouse operations on the List panel and allows for right click popups and double click to open new windows of the items we are hovering over.
-
-
Field Summary
Fields Modifier and Type Field Description protected BeanTableFrame<E>
frame
(package private) javax.swing.JMenuItem
menuItem
(package private) javax.swing.JPopupMenu
popUp
-
Constructor Summary
Constructors Constructor Description ActionJList(BeanTableFrame<E> f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(JmriMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.void
mousePressed(JmriMouseEvent e)
Invoked when a mouse button has been pressed on a component.void
mouseReleased(JmriMouseEvent e)
Invoked when a mouse button has been released on a component.(package private) void
openNewTableWindow(int index)
(package private) void
selectListItem(int index)
(package private) void
setCurrentItem(int current)
(package private) void
showPopup(JmriMouseEvent e)
-
Methods inherited from class jmri.util.swing.JmriMouseAdapter
mouseEntered, mouseExited
-
-
-
-
Constructor Detail
-
ActionJList
ActionJList(BeanTableFrame<E> f)
-
-
Method Detail
-
mousePressed
public void mousePressed(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressed
in interfaceJmriMouseListener
- Overrides:
mousePressed
in classJmriMouseAdapter
- Parameters:
e
- the event to be processed
-
mouseReleased
public void mouseReleased(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleased
in interfaceJmriMouseListener
- Overrides:
mouseReleased
in classJmriMouseAdapter
- Parameters:
e
- the event to be processed
-
showPopup
void showPopup(JmriMouseEvent e)
-
setCurrentItem
void setCurrentItem(int current)
-
mouseClicked
public void mouseClicked(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when the mouse button has been clicked (pressed and released) on a component.- Specified by:
mouseClicked
in interfaceJmriMouseListener
- Overrides:
mouseClicked
in classJmriMouseAdapter
- Parameters:
e
- the event to be processed
-
openNewTableWindow
void openNewTableWindow(int index)
-
selectListItem
void selectListItem(int index)
-
-