public class LinkListener extends DefaultFSMouseListener
BasicPanel,
in particular to handle anchors and navigation. When a Box is clicked, if it has an anchor associated with it, the
panel will be requested to navigate to that URI.| Constructor and Description |
|---|
LinkListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
linkClicked(BasicPanel panel,
String uri)
Utility method to request the panel navigate to the given URI.
|
void |
onMouseUp(BasicPanel panel,
Box box)
Triggers the click on a box.
|
onMouseDragged, onMouseOut, onMouseOver, onMousePressed, resetpublic void linkClicked(BasicPanel panel, String uri)
panel - the panel on which the listener is attacheduri - the URI to navigate topublic void onMouseUp(BasicPanel panel, Box box)
onMouseUp in interface FSMouseListeneronMouseUp in class DefaultFSMouseListenerpanel - the panel where the mouse button has been released.box - the box on which the mouse cursor is currently locatedCopyright © 2018. All rights reserved.