Package javax.swing.event.HyperlinkEvent

Examples of javax.swing.event.HyperlinkEvent.EventType


  public TreeLogger getLogger() {
    return logger;
  }

  public void hyperlinkUpdate(HyperlinkEvent event) {
    EventType eventType = event.getEventType();
    if (eventType == HyperlinkEvent.EventType.ACTIVATED) {
      URL url = event.getURL();
      try {
        BrowserLauncher.browse(url.toExternalForm());
        return;
View Full Code Here


  public TreeLogger getLogger() {
    return logger;
  }

  public void hyperlinkUpdate(HyperlinkEvent event) {
    EventType eventType = event.getEventType();
    if (eventType == HyperlinkEvent.EventType.ACTIVATED) {
      URL url = event.getURL();
      try {
        BrowserLauncher.browse(url.toExternalForm());
        return;
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final String targetFrame = "targetFrame";

        HTMLFrameHyperlinkEvent event = new HTMLFrameHyperlinkEvent(source, type, url, targetFrame);
        assertSame(source, event.getSource());
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, String, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLStringString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final String targetFrame = "targetFrame";
        final String descr = "description";

        HTMLFrameHyperlinkEvent event = new HTMLFrameHyperlinkEvent(source, type, url, descr, targetFrame);
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, String, Element, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLStringElementString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final Element element = new HTMLDocument().getDefaultRootElement();
        final String targetFrame = "targetFrame";
        final String descr = "description";

View Full Code Here

    return logger;
  }

  @Override
  public void hyperlinkUpdate(HyperlinkEvent event) {
    EventType eventType = event.getEventType();
    if (eventType == HyperlinkEvent.EventType.ACTIVATED) {
      URL url = event.getURL();
      try {
        BrowserLauncher.browse(url.toExternalForm());
        return;
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, Element, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLElementString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final Element element = new HTMLDocument().getDefaultRootElement();
        final String targetFrame = "targetFrame";

        HTMLFrameHyperlinkEvent event = new HTMLFrameHyperlinkEvent(source, type, url, element, targetFrame);
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final String targetFrame = "targetFrame";

        HTMLFrameHyperlinkEvent event = new HTMLFrameHyperlinkEvent(source, type, url, targetFrame);
        assertSame(source, event.getSource());
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, String, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLStringString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final String targetFrame = "targetFrame";
        final String descr = "description";

        HTMLFrameHyperlinkEvent event = new HTMLFrameHyperlinkEvent(source, type, url, descr, targetFrame);
View Full Code Here

    /*
     * Test method for 'javax.swing.text.html.HTMLFrameHyperlinkEvent.HTMLFrameHyperlinkEvent(Object, EventType, URL, String, Element, String)'
     */
    public void testHTMLFrameHyperlinkEventObjectEventTypeURLStringElementString() throws Exception {
        final Object source = new Object();
        final EventType type = EventType.ENTERED;
        final URL url = new URL("file:///");
        final Element element = new HTMLDocument().getDefaultRootElement();
        final String targetFrame = "targetFrame";
        final String descr = "description";

View Full Code Here

TOP

Related Classes of javax.swing.event.HyperlinkEvent.EventType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.