public static final class HTMLViewerSpi.Context extends Object
new HTML view
is requested, it gets instance of this object which it shall use
to obtain information and make callbacks into the infrastructure.| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
The class loader to use.
|
URL |
getPage()
The page to display.
|
String[] |
getResources()
List of resources available to the page.
|
String[] |
getTechIds()
Set of technologies to prefer.
|
boolean |
isBlocking()
true if the HTMLViewerSpi.Context.isDialog() is supposed to be blocking. |
boolean |
isDialog()
true if the UI should be presented as a dialog. |
boolean |
isWindow()
true if a long lasting window shall be displayed. |
Lookup |
onPageLoad()
Initialize the page inside of a webview.
|
boolean |
onSubmit(String id)
Notify a button has been clicked.
|
public boolean isWindow()
true if a long lasting window shall be displayed.true to display the UI as a windowpublic boolean isDialog()
true if the UI should be presented as a dialog.true to display the UI as a dialogpublic boolean isBlocking()
true if the HTMLViewerSpi.Context.isDialog() is supposed to be blocking.
Blocking dialogs in Swing and JavaFX need special care where one
has to start a nested event queue. Use this method to find out
if such special care is needed.true if the dialog is supposed to block the current threadpublic boolean onSubmit(String id)
id - the ID of the button or null representing unconditional
escape or close of the dialogfalse if the click should be ignored, true
if the closing sequence shall continuepublic Lookup onPageLoad()
Fn.activePresenter(). Let the application code
handle its initializations and possibly return a Lookup
representing the content of the view.
Dialogs usually return null, but long living windows
created via OpenHTMLRegistration usually provide a lookup -
see specification on how to fill its
content.
nullpublic URL getPage()
public ClassLoader getClassLoader()
public String[] getResources()
public String[] getTechIds()