Members

(static, constant) FOCUS_BORDER_PADDING

Default Value
  • 12

(static, constant) LABEL_PADDING

Default Value
  • 30

Methods

(static) init() → {void}

Returns:
Type: 
void

(static) onContentRendered() → {void}

Auto-sizes background and border height based on rendered content Only active when height is not explicitly set (height=0)

Returns:
Type: 
void

(static) onFocusChanged() → {void}

Shows or hides the 9patch focus border based on focus state

Returns:
Type: 
void

(static) onHorizAlignChanged() → {void}

Passes horizAlign through to the internal label

Returns:
Type: 
void

(static) onKeyEvent(key, press) → {boolean}

Parameters:
NameTypeDescription
keystring
pressboolean
Returns:
Type: 
boolean

(static) onMaxLinesChanged() → {void}

Sets maxLines on the description label

Returns:
Type: 
void

(static) onShowBackgroundChanged() → {void}

Toggles the background rectangle and recalculates layout padding

Returns:
Type: 
void

(static) onSizeChanged() → {void}

Resizes background, border, and content when width or height changes

Returns:
Type: 
void

(static) onTaglineChanged() → {void}

Dynamically creates or removes the tagline label based on tagline text

Returns:
Type: 
void

(static) onTaglineMaxLinesChanged() → {void}

Sets maxLines on the tagline label (if it exists)

Returns:
Type: 
void

(static) onTextChanged() → {void}

Updates the label text when the text field changes

Returns:
Type: 
void

(static) onVertAlignChanged() → {void}

Passes vertAlign through to the internal label

Returns:
Type: 
void

(static) openOverviewDialog() → {void}

Opens an OverviewDialog pushed onto the scene stack Passes tagline separately so the dialog can style it distinctly

Returns:
Type: 
void

(static) updateFocusBorderLayout() → {void}

Sizes the focus border based on background dimensions When showBackground is true, border matches background exactly since content padding already provides breathing room. When showBackground is false, border expands outward so it doesn't overlap flush text content.

Returns:
Type: 
void