Annotation Interface UI
refOnly = true, as a class that only uses a panel or context menu.The constructor of a UI class must be public and cannot have any parameters: the server instantiates the class the panel's class reference names.
Example:
@UI(ref="Proj:/panel/subFolder/MyPanel" [, refOnly = true])
public class MyPanelListener
{
public MyPanelListener()
{
...
}
}
- Author:
- Christopher Mindus
Required Element Summary
Required ElementsOptional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanOption to use the annotation for referencing in the Java code only, together with@UIRef, and be able to use String refactoring.
Element Details
ref
String refThe Full String Reference to the Panel property. This property must be of main type, i.e. being a Resource (.iiziPanel file).- Returns:
- The Full String Reference to the Property (includes the Module Project and slashes).
refOnly
boolean refOnlyOption to use the annotation for referencing in the Java code only, together with@UIRef, and be able to use String refactoring.With the default
falsethe class is the panel's or context menu's class: its class reference must name it (iiziGo checks both sides), the server instantiates it once per virtualized panel and invokes its@OnUI...event methods.When
refOnlyistrue, the class only uses the panel or context menu: its@UIRefstrings (fields, variables, casts and the annotated String parameters of the API such asUIContainer.getUIComponent) are checked against the panel and refactored when it changes, the panel or context menu does not have to have a back reference to the class and keeps its one class, the server never instantiates the class through the panel, and an event method annotated in it is never invoked (iiziGo reports such a method). A panel cannot name a reference-only class as its class.- Default:
false