public enum BindAttr
- Object
- Enum<BindAttr>
- BindAttr
ImplementsComparable<BindAttr>
Picks which property of a
Component a @Bind field mirrors. Only TEXT
and SELECTED participate in two-way bindings; the rest are write-only from
model to component.Enum constants
TEXT | getText / setText on Label, TextField, TextArea, Button, SpanLabel, SpanButton. |
UIID | getUIID / setUIID. |
HIDDEN | isVisible / setVisible. |
VISIBLE | isVisible / setVisible. |
ENABLED | isEnabled / setEnabled. |
SELECTED | isSelected / setSelected on CheckBox, RadioButton, and any other selectable component. |
ICON_NAME | getIcon – accepts a String resource name; the binder runs it through Resources.getGlobalResources().getImage(name). |
NAME | getName / setName. |
Methods
public static BindAttr[] values() | |
public static BindAttr valueOf(String name) |
Inherited methods
Enum constant details
TEXT
TEXTgetText / setText on Label, TextField, TextArea, Button,
SpanLabel, SpanButton. Two-way for editable text inputs.UIID
UIIDgetUIID / setUIID. Write-only.HIDDEN
HIDDENisVisible / setVisible. Inverted – true hides the component.
Write-only.VISIBLE
VISIBLEisVisible / setVisible. Write-only.ENABLED
ENABLEDisEnabled / setEnabled. Write-only.SELECTED
SELECTEDisSelected / setSelected on CheckBox, RadioButton, and any
other selectable component. Two-way.ICON_NAME
ICON_NAMEgetIcon – accepts a String resource name; the binder runs it
through Resources.getGlobalResources().getImage(name). Write-only.NAME
NAMEgetName / setName. Write-only.Method details
values
public static BindAttr[] values()valueOf
public static BindAttr valueOf(String name)