|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.ui.HelpDialog
public class HelpDialog
A help dialog which is able to show HTML pages that are located in a jar file.
Nested Class Summary | |
---|---|
protected static class |
HelpDialog.HistoryStackElement
|
protected class |
HelpDialog.ScrollBarUpdater
|
Field Summary | |
---|---|
static java.awt.Dimension |
MAX_HELP_DIALOG_SIZE
The maximum size of the help dialog. |
static java.awt.Dimension |
MIN_HELP_DIALOG_SIZE
The minimum size of the help dialog. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
protected void |
addThisSiteToHistory()
helper method for hyperlinkUpdate . |
protected static java.lang.String |
extractPath(java.lang.String dateiname)
Extrahiert aus einem gegebenen Dateinamen den Pfad. |
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent evt)
|
protected void |
openSite(java.lang.String filename,
java.lang.Class clazz)
return content of a HTML page as string. |
protected void |
popFromHistory()
helper method for actionPerformed(ActionEvent) . |
protected void |
setEditorText(java.lang.String text,
double updateScrollBarTo)
Sets the text currently show. |
void |
show()
|
static void |
showHelpPage(java.awt.Component parent,
java.lang.String filename,
java.lang.Class clazz)
Shows the specified site in the help dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Dimension MIN_HELP_DIALOG_SIZE
public static final java.awt.Dimension MAX_HELP_DIALOG_SIZE
Method Detail |
---|
public static void showHelpPage(java.awt.Component parent, java.lang.String filename, java.lang.Class clazz)
parent
- If there is currently no help dialog shown, this parent is
used for creating a new one.filename
- The name of the HTML file to show.clazz
- A class in the jar where the HTML file is in.public void show()
protected void setEditorText(java.lang.String text, double updateScrollBarTo)
text
- The HTML text.updateScrollBarTo
- The relative position to scroll to. (Between 0 and 1)protected void addThisSiteToHistory()
hyperlinkUpdate
.
adds the current page to the mHistoryStack.
protected void popFromHistory()
actionPerformed(ActionEvent)
.
return most current page of mHistoryStack.
protected void openSite(java.lang.String filename, java.lang.Class clazz)
Die Seite kann auch in der Jar-Datei sein, in dem diese Klasse ist.
clazz
- A class in the jar where the HTML site is located.filename
- Der Dateiname der HTML-Seite.protected static java.lang.String extractPath(java.lang.String dateiname)
dateiname
- Der Dateiname.public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent evt)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |