Class TouchscreenMouseListener
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- com.inductiveautomation.vision.api.client.components.touchscreen.TouchscreenMouseListener
-
- All Implemented Interfaces:
java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.awt.event.MouseWheelListener
,java.util.EventListener
- Direct Known Subclasses:
TouchscreenMouseListener
public class TouchscreenMouseListener extends java.awt.event.MouseAdapter
This mouse listener implements touchscreen logic for mostTouchscreenMouseListener.TouchscreenEnabledComponent
vision components. All you need to do to use this is add an instance of it as a mouse listener to your component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TouchscreenMouseListener.TouchscreenEnabledComponent
-
Field Summary
Fields Modifier and Type Field Description static int
MODE_DOUBLE_CLICK
static int
MODE_IGNORE
static int
MODE_SINGLE_CLICK
-
Constructor Summary
Constructors Constructor Description TouchscreenMouseListener(java.awt.Component parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addMobileFocusListener()
This is a bit of a hack to put this here - but it helps the mobile module know when to show a keyboard.void
mousePressed(java.awt.event.MouseEvent e)
void
mouseReleased(java.awt.event.MouseEvent e)
-
-
-
Field Detail
-
MODE_IGNORE
public static final int MODE_IGNORE
- See Also:
- Constant Field Values
-
MODE_SINGLE_CLICK
public static final int MODE_SINGLE_CLICK
- See Also:
- Constant Field Values
-
MODE_DOUBLE_CLICK
public static final int MODE_DOUBLE_CLICK
- See Also:
- Constant Field Values
-
-
Method Detail
-
addMobileFocusListener
protected void addMobileFocusListener()
This is a bit of a hack to put this here - but it helps the mobile module know when to show a keyboard. If you don't want this, override this and no-op it
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
- Overrides:
mousePressed
in classjava.awt.event.MouseAdapter
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Overrides:
mouseReleased
in classjava.awt.event.MouseAdapter
-
-