|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.BrowserHelper
public class BrowserHelper
A little helper class for browser related stuff.
TheopenURL method is based on
Bare Bones Browser Launch,
which is placed in the public domain.
| Field Summary | |
|---|---|
static String[] |
LINUX_BROWSERS
Linux/Unix binaries to look for |
| Constructor Summary | |
|---|---|
BrowserHelper()
|
|
| Method Summary | |
|---|---|
static JLabel |
createLink(String url,
String text)
Generates a label with a clickable link. |
static void |
openURL(Component parent,
String url)
opens the URL in a browser. |
static void |
openURL(Component parent,
String url,
boolean showDialog)
opens the URL in a browser. |
static void |
openURL(String url)
opens the URL in a browser. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] LINUX_BROWSERS
| Constructor Detail |
|---|
public BrowserHelper()
| Method Detail |
|---|
public static void openURL(String url)
url - the URL to open
public static void openURL(Component parent,
String url)
parent - the parent componenturl - the URL to open
public static void openURL(Component parent,
String url,
boolean showDialog)
parent - the parent componenturl - the URL to openshowDialog - whether to display a dialog in case of an error or
just print the error to the console
public static JLabel createLink(String url,
String text)
url - the url of the linktext - the text to display instead of URL. if null or of
length 0 then the URL is used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||