Using reflection then, you have an ActionListener implementation, but don't have an added .class file in the file system.
然后使用反射,您有一个ActionListener实现,但是没有在文件系统中增加一个 .class 文件。
Here, the ActionListener implementation is defined in place, as an anonymous inner class, and directly attached to the button.
这里,ActionListener实现是适时定义的,它定义为一个匿名内部类,并直接附加到按钮上。
The IBM Portlet API defines action handling to be processed separately via ActionListener interface and its implementing classes.
IBMPortletapi定义action处理通过ActionListener接口及其实现类来单独进行。
The GenericPortlet class allows you to implement the processAction method, which handles action processing, provided within the ActionListener interface of the IBM portlet API.
GenericPortlet类允许您实现processAction方法,该方法处理action处理,其在IBMportlet API的ActionListener接口中提供。
While ActionListener only has one method in the interface, creating an implementation of an interface in this manner means all methods of that interface implementation will execute the same code.
虽然ActionListener只有接口中的一个方法,但是以这种方式创建接口的一个实现意味着这个接口实现的所有方法都将执行同样的代码。
While ActionListener only has one method in the interface, creating an implementation of an interface in this manner means all methods of that interface implementation will execute the same code.
虽然ActionListener只有接口中的一个方法,但是以这种方式创建接口的一个实现意味着这个接口实现的所有方法都将执行同样的代码。
应用推荐