Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
View (Library API) JavaScript is disabled on your browser. Skip navigation links Overview Package Class Tree Deprecated Index Help Summary:  Nested |  Field |  Constr |  Method Detail:  Field |  Constr |  Method SEARCH: Package ippo.assignment1.library.view Interface View All Known Implementing Classes: ButtonView, JavaFxView, MenuView, ViewFromProperties public interface View A view for the PictureViewer application. Method Summary All MethodsInstance MethodsAbstract Methods Modifier and Type Method Description int addSelection​(java.lang.String label) Add an item to the interface which the user can select. void clearErrorMessage() Clear the error message. void setCaption​(java.lang.String caption) Display the specified text in the interface. void setController​(Controller controller) Set the controller. void showErrorMessage​(java.lang.String message) Display the specified error message in the interface. void showPicture​(Picture picture) Display the specified picture in the interface. void start() Start the view. Method Details start void start() Start the view. The interface waits for user interaction and calls the controller's select() method when the user selects an item. setController void setController​(Controller controller) Set the controller. Parameters: controller - the controller to be notified when the user selects an item addSelection int addSelection​(java.lang.String label) Add an item to the interface which the user can select. Parameters: label - a label for the item, to be displayed in the interface Returns: an identifier for the selection. This identifier will be passed to the controller as the argument of the select() method when the user selects this item in the interface. Note that some controllers may return consecutive integers for the selection identifiers, but this is not required. showPicture void showPicture​(Picture picture) Display the specified picture in the interface. Parameters: picture - the picture to display setCaption void setCaption​(java.lang.String caption) Display the specified text in the interface. Parameters: caption - the text to display showErrorMessage void showErrorMessage​(java.lang.String message) Display the specified error message in the interface. Parameters: message - the error message to display clearErrorMessage void clearErrorMessage() Clear the error message. Skip navigation links Overview Package Class Tree Deprecated Index Help Summary:  Nested |  Field |  Constr |  Method Detail:  Field |  Constr |  Method