A Server widget implementation is a Java class which store the values of a widgets properties.
<widget arincID="A661_PUSH_BUTTON"> <path path="arinc661.server.model.arinc.ARINCPushButton"/> </widget>
ServerWidgetinterface. Generally "normal" widgets only have to declare fields which will store their associated widget properties.
@AttrJava annotation, to sepcify which property is implemented. For example, to declare the implementation of the "A661_STRING" propety of the PushButton widget:
@Attr(arincID = "A661_STRING") public String labelString = "";The annotation can also declare the property "type" which will be useful for the widget renderer implementation. The available types are:
Attr.Type.PROPERTYfor general properties
Attr.Type.SIZEfor properties which represent a size, such as
Attr.Type.POSITIONfor properties which represent a position, such as
Attr.Type.CHILDfor properties which represent a child reference attribute, such as
Attr.Type.COORDINATEfor properties which represent a Map widget coordinate attribute, such as
Attr.Type.BUFFEROFITEMSfor properties which represent a BufferOfMapItem, such as as
@Attr(arincID = "A661_SIZE_X", type = Attr.Type.SIZE) public long width;Note that if no type is declared, the assumed type will be
ServerContainerinterface. They also can extend the