| com.pnfsoftware.jeb.client.api.IGraphicalClientContext |
Specialized context for clients displaying a graphical user interface.
Note: The public context of the official RCP desktop client implements this interface.
Note: Additional methods will be provided in to offer basic manipulation of UI elements.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract int |
displayMessageBox(String caption, String message, IconType iconType, ButtonGroupType bgType)
Display a message box to the user.
| ||||||||||
| abstract String |
displayQuestionBox(String caption, String message, String defaultValue)
Display a message box prompting the user for input.
| ||||||||||
| abstract boolean |
executeAsync(String taskName, Runnable runnable)
Execute a task asynchronously.
| ||||||||||
| abstract <T> T |
executeAsyncWithReturn(String taskName, Callable<T> callable)
Execute a task asynchronously, and retrieve a value returned by the task.
| ||||||||||
| abstract IUnitView |
getFocusedView()
Get the view that currently has the focus.
| ||||||||||
| abstract List<? extends IUnitView> |
getViews()
Get the list of all views in the current UI client.
| ||||||||||
| abstract List<? extends IUnitView> |
getViews(IUnit targetUnit)
Get the list of views representing the given unit within the UI client.
| ||||||||||
| abstract boolean |
openView(IUnit unit)
Create or open the view or set of views representing a given unit.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.client.api.IClientContext
| |||||||||||
Display a message box to the user.
| caption | title for the message box |
|---|---|
| message | text to be displayed, can be multi-line |
| iconType | icon to be displayed in the message box (default: none) |
| bgType | button to be provided in the message box (default: OK) |
Display a message box prompting the user for input.
| caption | title for the message box |
|---|---|
| message | information, should be a single line of text |
| defaultValue | optional default input value, will be selected if provided |
Execute a task asynchronously. The task will not be executed on the UI thread; users are offered a way to cancel task execution. Therefore, if possible, the runnable should check for user-requested interruption, and interrupt processing accordingly.
| taskName | optional task name |
|---|---|
| runnable | a runnable |
Execute a task asynchronously, and retrieve a value returned by the task. See
executeAsync(String, Runnable).
| taskName | optional task name |
|---|---|
| callable | a callable |
Get the view that currently has the focus.
Get the list of all views in the current UI client.
Get the list of views representing the given unit within the UI client.
| targetUnit | the target unit, null to get all views |
|---|
Create or open the view or set of views representing a given unit. On success, one view will also receive focus.
| unit | the unit |
|---|
getViews(IUnit)