public enum BindAttr

  1. Object
  2. Enum<BindAttr>
  3. 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

TEXTgetText / setText on Label, TextField, TextArea, Button, SpanLabel, SpanButton.
UIIDgetUIID / setUIID.
HIDDENisVisible / setVisible.
VISIBLEisVisible / setVisible.
ENABLEDisEnabled / setEnabled.
SELECTEDisSelected / setSelected on CheckBox, RadioButton, and any other selectable component.
ICON_NAMEgetIcon – accepts a String resource name; the binder runs it through Resources.getGlobalResources().getImage(name).
NAMEgetName / setName.

Methods

public static BindAttr[] values()
public static BindAttr valueOf(String name)

Inherited methods

Enum constant details

TEXT

TEXT
getText / setText on Label, TextField, TextArea, Button, SpanLabel, SpanButton. Two-way for editable text inputs.

UIID

UIID
getUIID / setUIID. Write-only.

HIDDEN

HIDDEN
isVisible / setVisible. Inverted – true hides the component. Write-only.

VISIBLE

VISIBLE
isVisible / setVisible. Write-only.

ENABLED

ENABLED
isEnabled / setEnabled. Write-only.

SELECTED

SELECTED
isSelected / setSelected on CheckBox, RadioButton, and any other selectable component. Two-way.

ICON_NAME

ICON_NAME
getIcon – accepts a String resource name; the binder runs it through Resources.getGlobalResources().getImage(name). Write-only.

NAME

NAME
getName / setName. Write-only.

Method details

values

public static BindAttr[] values()

valueOf

public static BindAttr valueOf(String name)