You can declare a button first as a variable or define it directly in the parent object's content attribute. Listing 9 displays the definition of the Back button
可以首先将一个按钮声明为一个变量,或者直接在其父对象的content属性中定义它。
If you find this really annoying or want to do some quick prototyping, you could consider Guice's built-in @Named annotation, which accepts a string attribute. Listing 14 illustrates that alternative
如果您觉得这很繁琐,或者需要执行快速的原型设计,可以考虑Guice 的内置 @Named注释,它接受一个字符串属性。
If you find this really annoying or want to do some quick prototyping, you could consider Guice's built-in @Named annotation, which accepts a string attribute. Listing 14 illustrates that alternative
如果您觉得这很繁琐,或者需要执行快速的原型设计,可以考虑Guice 的内置 @Named注释,它接受一个字符串属性。
应用推荐