http://www.jpicedt.org

jpicedt.ui.util
Class HtmlViewer

java.lang.Object
  extended by jpicedt.ui.util.HtmlViewer
All Implemented Interfaces:
EventListener, HyperlinkListener

public class HtmlViewer
extends Object
implements HyperlinkListener

A frame for displaying HTML content (e.g. on-line help, license,…)

Since:
PicEdt 1.1.2
Version:
$Id: HtmlViewer.java,v 1.14 2013/03/27 06:50:21 vincentb1 Exp $
Author:
Sylvain Reynal.

Constructor Summary
HtmlViewer(String fileName, String title, MDIManager mdimgr)
          Construct a new HTML Window with the given file and title
HtmlViewer(URL contentUrl, String title, MDIManager mdimgr)
          Construct a new HTML Window with the given file and title
 
Method Summary
static boolean fileExits(String fileName)
          Teste l'accessibilité d'une resource.
 void hyperlinkUpdate(HyperlinkEvent e)
          called when a click occurs on a HTML hyperlink (aka <a href=…>)
static void main(String[] args)
          test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlViewer

public HtmlViewer(String fileName,
                  String title,
                  MDIManager mdimgr)
Construct a new HTML Window with the given file and title

Parameters:
fileName - name of resource accessible from the current classloader
mdimgr - frame provider

HtmlViewer

public HtmlViewer(URL contentUrl,
                  String title,
                  MDIManager mdimgr)
Construct a new HTML Window with the given file and title

Parameters:
mdimgr - frame provider
Method Detail

fileExits

public static boolean fileExits(String fileName)
Teste l'accessibilité d'une resource.

Parameters:
fileName - nom d'une resource accessible depuis le classLoader courant.

hyperlinkUpdate

public void hyperlinkUpdate(HyperlinkEvent e)
called when a click occurs on a HTML hyperlink (aka <a href=…>)

Specified by:
hyperlinkUpdate in interface HyperlinkListener

main

public static void main(String[] args)
test


http://www.jpicedt.org

Submit a bug : syd@jpicedt.org