public static interface Fn.Presenter
META-INF/services, for example with
@ServiceProvider(service = Fn.Presenter.class)annotation.
Since 0.7 a presenter may implement
Executor interface, in case
it supports single threaded execution environment. The executor's
Executor.execute(java.lang.Runnable) method is then supposed
to invoke the runnable immediately (in case we are on the right thread
already) or return and asynchronously invoke the runnable later on the
right thread (if we are on wrong thread).
|Modifier and Type||Method and Description|
Creates new function with given parameter names and provided body.
Opens the browser, loads provided page and when the page is ready, it calls back to the provider runnable.
code- the body of the function. Can refer to variables named as
names- names of parameters of the function - these will be available when the
page- the URL for the page to display
onPageLoad- callback when the page is ready
Copyright © 2018 NetBeans. All rights reserved.