|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.uiModel.AbstractApplicationUI
com.kuka.roboticsAPI.uiModel.ConsoleApplicationUI
public class ConsoleApplicationUI
This class displays a modal dialog in text form in the eclipse console. The user must input their answer by entering the number of their chosen response into the console.
| Constructor Summary | |
|---|---|
ConsoleApplicationUI()
|
|
| Method Summary | |
|---|---|
void |
cancelCurrentDialog(String reason)
Cancels the currently displayed dialog. |
IUserKeyBar |
createUserKeyBar(String name)
Creates a IUserKeyBar for user interaction during the
execution of a robot application or background task. |
int |
displayModalDialog(com.kuka.roboticsAPI.uiModel.ApplicationDialogType type,
String dialogText,
String... buttons)
Displays a modal dialog for user interaction during the run of a robot application. |
IUserKeyBar |
getUserKeyBar(String name)
Gets the user key bar with the specified name. |
void |
run()
|
| Methods inherited from class com.kuka.roboticsAPI.uiModel.AbstractApplicationUI |
|---|
checkDialogParams, dispose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleApplicationUI()
| Method Detail |
|---|
public int displayModalDialog(com.kuka.roboticsAPI.uiModel.ApplicationDialogType type,
String dialogText,
String... buttons)
The dialog remains active until the user chooses an answer or the
application is closed.
Only one dialog can be opened simultaneously from the same application.
The dialog is displayed on the UI configured for the Station on which the
application runs. If no UI is configured dialog will be shown in text
form on the standard console.
displayModalDialog in interface IApplicationUItype - the type of dialog that should be shown. The dialog icons vary
according to the chosen type.dialogText - the text that is shown to the user.buttons - the possible responses to the dialog are represented as
buttons. The user must choose and click one button to close
the dialog. There is a limit of twelve buttons per dialog.
public void run()
run in interface Runnablepublic void cancelCurrentDialog(String reason)
cancelCurrentDialog in class AbstractApplicationUIreason - the reason for canceling the dialog.public IUserKeyBar createUserKeyBar(String name)
ITaskUIIUserKeyBar for user interaction during the
execution of a robot application or background task.
A user key bar can hold one or more IUserKeys. A user
key can be set up by the programmer with custom functionality and
appearance.
The user key bar is displayed on the UI configured for the Station on
which the application or background task is running.
The user key bar needs to be published to be displayed on the UI. To do
this use the publish()-Method, after all
user keys have been added.
createUserKeyBar in interface ITaskUIname - the name of the user key bar. Must be unique. Can not be
null or empty string.
public IUserKeyBar getUserKeyBar(String name)
ITaskUI
getUserKeyBar in interface ITaskUIname - the name of the user key bar.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||