All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.javafx.util.ActionContainer.dml Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version



    动作的容器(ActionContainer),可以定义一些动作在运行后期被调用。

比如一个工作台(Workbentch)的界面通常需要提供打开视图、打开编辑器等功能,这些功能则可以定义在动作容器中。调用动作的方法是<动作容器名>.doAction(<name>, ....),如workbentchActions.doAction("openView", ["viewName":"outline"])。

动作容器的方法主要有:

  • public Object doAction(String name)
  • public Object doAction(String name, ActionContext context)
  • public Object doAction(String name, Map<String, Object> parameters)
  • public Object doAction(String name, ActionContext context, Map<String, Object> parameters)

注意:

   避免添加名为init的子动作,因为init是控件事物自己的初始化方法,会和其它冲突。

]]>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy