First, let's define a simple Button class.
首先,让我们定义一个简单的button类。
Of course, the button class makes it into a button.
当然button类是将这个链接放进一个按钮中的。
Just sit back and watch, playing your one-button class like never before.
只要坐着看,你就可以玩这个史无前例的一键控制的职业了。
Test button: used for testing the application in "unplugged" mode (UIButton class).
Test按钮:用于在“为插接”模式下测试应用程序(uibutton类)。
To define an event using the Managed Extensions, you use the __event keyword. For example, the Button class in Windows: : Forms has a Click event.
为了用托管扩展定义一个事件,你得用__event关键字。
Notice the anchor has the class button back.
注意到锚点有返回类按钮。
To demonstrate this code, let's start with a class for observing button clicks that simply counts the number of clicks.
要演示这部分代码,让我们从一个观察按钮点击和记录点击数目的类开始。
In Class outlets, click the "+" button, twice to create two new outlets.
在ClassOutlets上,点击“+”按钮两次来创建两个新的Outlet。
Looking back at Listing 3, notice that this links to another page called New. Also notice that the class on this link is button flip.
回到清单3,注意到这个链接连接到另一个名为new的页面,也注意一下这链接上的类是按钮翻转。
To add an attribute, click the add button in the Properties view and enter the attribute Name and Class, as shown in Figure 7.
要添加属性,可以点击Properties视图中的Add按钮并输入属性Name和Class,如图7所示。
The SimpleGWTApp class then defines a textbox and button, which you can use to input someone's name and send them a greeting (see Listing 10).
SimpleGWTApp类随后定义一个文本框和按钮,可以使用它们输入某人的名字并发送一句问候语(参见清单 10)。
You also highlight the active button in these functions by adding and removing the btnActive CSS class, which changes the border color to white.
通过添加和删除btnActiveCSS类还突出了这些函数内的活动按钮,这可以将边界颜色更改为白色。
When you click the Open button, the Desktop class invokes the system's default PDF viewer, as you can see in the following code.
在单击open按钮时,Desktop类将调用系统默认的PDF阅读器,就像在下面的代码中可以看到的那样。
Now, to select the base class, click the Add button, and select LibraryEntry from the dialog box.
现在,可以选择这个基类,点击add按钮,然后从对话框中选择LibraryEntry。
Clicking the "add" button will cause the controller class to be created and added to the project.
点击“添加”按钮会生成一个控制器类,并将它加到项目中去。
IconClass: icon CSS class displays the specified icon on the button.
iconClass:图标css类在按钮上显示指定的图标。
The last thing to notice about the form in Listing 6 is the submit button. Notice that its class is submit.
最后一点值得注意的是,清单6中的表单是submit按钮,注意它的类是submit。
Use the Browse button to select the mediation handler class.
使用Browse按钮选择中介处理程序类。
You can create a new submit button on a form and link the button to a method on your Page class using the declaration shown in Listing 2.
可以在表单上创建新的提交按钮并把它链接到page类中的一个方法,使用的声明见清单2。
Tip: If you don't want to type in the full class name, you can use the Browse button to locate it.
提示:如果您不想输入完整的类名称,您可以使用Browse按钮来定位它。
Here, the button style class used by HATS is HATSBUTTON.
在这里,HATS使用的按钮样式类是HATSBUTTON。
The RunMailRules class contains a run() method; this is where your code gets called when the button is clicked.
RunMailRules类包含一个run()方法;这就是单击按钮时调用代码的地方。
The controller class is where you define handlers for Swing events (such as button clicks and text-field changes) and control the state of the model.
在控制器类中,可以定义Swing事件(例如单击按钮或更改文本字段)的处理程序,并控制模型的状态。
Finally, you can diagram the relationship between the classes by clicking on the Association button (fifth from the left) and drawing a line from the Person class to the Address class.
最后,您可以单击association按钮(左起第五个),绘制一条从person类指向address类的线段,从而绘制这两个类之间的关系图。
When the user clicks the Acronym Expander button, the run method of the preceding class is invoked.
当用户单击Acronym Expander按钮时,将调用前述类中的run方法。
Either use the browse button to browse to an existing class, or manually enter a valid class name in the text box.
使用Browse按钮浏览现有的类,或在文本框中手工输入有效的类名。
Click the button beside the class box and type in the name of the root class: root, for this example.
点击class框旁边的按钮,以这个根类为名字输入:Root,这个例子是这样的。
Click the Add button and select this class from the list provided. Configure the initial parameters for this handler as follows.
单击add按钮,然后从弹出的列表中选择这个类。
In the Create new bean dialog of the AAT, if you select the home interface using the Browse button, the remote interface and the bean class are automatically filled in.
在AAT的Createnewbean对话框中,如果您使用Browse按钮选择了本地接口,就会自动填充远程接口和bean类。
Click the add External JARs button and navigate to the Notes.jar file to add it to the class path.
单击addExternalJARs按钮,导航到Notes . jar文件,以将其添加到类路径中。
应用推荐