编辑portlet类的过程操作代码,以发布事件。
Modify the process action code in the portlet class to publish the event.
现在可以操作代码片段生成的代码来满足您的设计要求。
You can now manipulate the code generated by the snippets to suit your design.
首先,必须了解操作代码并未直接绑定到任何具体的视图或视图实例。
First, you must understand that the action code is not directly tied to any particular view or view instance.
It could be, preconditions I want to have on input It could be, explanations of specific things you're doing.
也可以是我对输入的预期是什么,也可以是,对代码,正在进行的特定操作的解释。
Notice what this does. Certainly the heart of it, right in here, is still the same thing.
注释代码进行的操作,当然代码的核心,也就是这里。
This chart, very boring and uninteresting but useful to say there are very well defined rules as to when you're writing code, what operators, like what syntax should get evaluated first.
这个图表,看起来很烦,很无趣,但是它很有用,有非常明确的规定,譬如,当你写代码时,就会涉及操作符的优先级。
应用推荐