Members

(static, constant) focusBorderOffset

Used for positioning calculations only (matches 6px border in 9-patch image); does not control actual border rendering

Default Value
  • 6

(static, constant) spinnerSize

Used for positioning calculations only (matches 6px border in 9-patch image); does not control actual border rendering

Default Value
  • 42

Methods

(static) OnImageLoadStatusChanged(event) → {void}

Parameters:
NameTypeDescription
eventobject
Returns:
Type: 
void

(static) applyTheme() → {void}

Returns:
Type: 
void

(static) init() → {void}

Returns:
Type: 
void

(static) layoutForIconSize(iconWidth, iconHeight) → {void}

Size the backdrop around an icon of the given size, and center the icon in it.

Parameters:
NameTypeDescription
iconWidthfloat
iconHeightfloat
Returns:
Type: 
void

(static) onBackgroundChanged() → {void}

Returns:
Type: 
void

(static) onEnabledChanged() → {void}

Returns:
Type: 
void

(static) onFocusChanged() → {void}

Returns:
Type: 
void

(static) onIconBackgroundChanged() → {void}

Returns:
Type: 
void

(static) onIconChanged() → {void}

Returns:
Type: 
void

(static) onLoadingChanged() → {void}

onLoadingChanged: Swap icon for a spinner while loading. Does not set isEnabled=false: the button stays focusable. OK blocking is handled by JRButtonGroup.

Returns:
Type: 
void

(static) onPaddingChanged() → {void}

Returns:
Type: 
void

(static) onSelectedChanged() → {void}

Returns:
Type: 
void

(static) onTextChanged() → {void}

Returns:
Type: 
void

(static) setFocusBorderSize() → {void}

Returns:
Type: 
void

(static) setIconSize() → {void}

Returns:
Type: 
void

(static) updateButtonPositioning() → {void}

Updates button and text positioning based on ICON_BUTTON_TEXT_EXTENSION constant This centers button elements under the wider text label

Returns:
Type: 
void