protected void registerCommonAttributes ( ) { addAttributeProcessor ( new ActionLmlAttribute ( ) , "action" , "onShow" ) ; addAttributeProcessor ( new ColorAlphaLmlAttribute ( ) , "alpha" , "a" ) ; // Actor addAttributeProcessor ( new ColorBlueLmlAttribute ( ) , "blue" , "b" ) ; addAttributeProcessor ( new ColorGreenLmlAttribute ( ) , "green" , "g" ) ; addAttributeProcessor ( new ColorLmlAttribute ( ) , "color" ) ; addAttributeProcessor ( new ColorRedLmlAttribute ( ) , "red" , "r" ) ; addAttributeProcessor ( new DebugLmlAttribute ( ) , "debug" ) ; addAttributeProcessor ( new IdLmlAttribute ( ) , "id" ) ; addAttributeProcessor ( new MultilineLmlAttribute ( ) , "multiline" ) ; addAttributeProcessor ( new OnChangeLmlAttribute ( ) , "onChange" , "change" ) ; addAttributeProcessor ( new OnClickLmlAttribute ( ) , "onClick" , "click" ) ; addAttributeProcessor ( new OnCloseLmlAttribute ( ) , "onClose" , "close" , "onTagClose" , "tagClose" ) ; addAttributeProcessor ( new OnCreateLmlAttribute ( ) , "onCreate" , "create" , "onInit" , "init" ) ; addAttributeProcessor ( new RotationLmlAttribute ( ) , "rotation" , "angle" ) ; addAttributeProcessor ( new ScaleLmlAttribute ( ) , "scale" ) ; addAttributeProcessor ( new ScaleXLmlAttribute ( ) , "scaleX" ) ; addAttributeProcessor ( new ScaleYLmlAttribute ( ) , "scaleY" ) ; addAttributeProcessor ( new TooltipLmlAttribute ( ) , "tooltip" ) ; addAttributeProcessor ( new TouchableLmlAttribute ( ) , "touchable" ) ; addAttributeProcessor ( new TreeNodeLmlAttribute ( ) , "node" ) ; addAttributeProcessor ( new VisibleLmlAttribute ( ) , "visible" ) ; addAttributeProcessor ( new XLmlAttribute ( ) , "x" ) ; addAttributeProcessor ( new YLmlAttribute ( ) , "y" ) ; addAttributeProcessor ( new TransformLmlAttribute ( ) , "transform" ) ; // Group addAttributeProcessor ( new DebugRecursivelyLmlAttribute ( ) , "debugRecursively" ) ; // Since Layout is an interface and interfaces listing is not supported on GWT, widgets can be mapped only to // their superclasses. This requires Layout-based attributes to be registered to a class that can apply to any // Layout-implementing widget. addAttributeProcessor ( new FillParentLmlAttribute ( ) , "fillParent" ) ; // Layout addAttributeProcessor ( new LayoutEnabledLmlAttribute ( ) , "layout" , "layoutEnabled" ) ; addAttributeProcessor ( new PackLmlAttribute ( ) , "pack" ) ; // Same goes for Disableable. Fails if the widget does not implement the interface. addAttributeProcessor ( new DisabledLmlAttribute ( ) , "disabled" , "disable" ) ; // Disableable }
Attributes applied to all actors .