|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
com.vwp.swing.XWebPane.XWebPane
public class XWebPane
Creates a panel which is able to display a HTML-page.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JEditorPane |
|---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
XWebPane(String clientName,
boolean enableHistory,
boolean downloadBlocking)
Constructs a XWebPane HTML panel |
|
| Method Summary | |
|---|---|
String |
getActualAddress()
Returns the URL of the currently visited address |
String |
getDocText(int offset,
int length)
Delivers a part out of the displayed documents source |
String |
getNextAddress()
Returns the URL of the next address in case the page history is enabled and the method gotoPrecedingAddress() was called at least once |
BufferedImage |
getPageImage()
This method returns the webpage as image which can be used e.g. for texturing or saving |
String |
getPrecedingAddress()
Returns the URL of the previously visited address in case the page history is enabled |
void |
gotoNextAddress()
Goes to the URL of the next address in case the page history is enabled and the method gotoPrecedingAddress() was called at least once |
void |
gotoPrecedingAddress()
Goes to the URL of the preceding address in case the page history is enabled |
void |
hyperlinkUpdate(HyperlinkEvent event)
Called after a click on a-tag |
void |
setNewAddress(String newAddr)
This method can be used to set a completely new address which has to be visited |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XWebPane(String clientName,
boolean enableHistory,
boolean downloadBlocking)
clientName - the name of the client which has to be visible for the accessed
webserverenableHistory - enables (true) or disables (false) the history which can be
used to jump backward and forward in the list of already visited pagesdownloadBlocking - if this parameter is true the webpage isn't downloaded
in background, all appropriate methods wait until the page could be
fetched| Method Detail |
|---|
public BufferedImage getPageImage()
public void hyperlinkUpdate(HyperlinkEvent event)
hyperlinkUpdate in interface HyperlinkListenerevent - the hyperLinkEvent activedpublic String getActualAddress()
public String getDocText(int offset,
int length)
throws BadLocationException
offset - start-position to fetchthesource data fromlength - the size of the data
BadLocationExceptionpublic String getPrecedingAddress()
public String getNextAddress()
public void gotoNextAddress()
public void gotoPrecedingAddress()
public void setNewAddress(String newAddr)
newAddr - the URL of the address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||