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) onShouldShowBackgroundChanged() → {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 as a full-screen overlay on the scene, through the standard helper. Tagline goes separately so the dialog can style it distinctly.

This used to hand-roll the append (createObject + appendChild + setFocus). The helper does the same thing AND stamps the shared overlay id, which is what isOverlayDialogOpen / isDialogOpen / cancelOpenDialog find an open dialog by — so the hand-rolled version was invisible to all three, and OverviewDialog's own cancelDialog() was unreachable on this path.

We pass returnFocusTo explicitly rather than letting the helper derive it: the opener is us, we know it, and a derived answer is only incidentally the same node.

Returns:
Type: 
void

(static) updateFocusBorderLayout() → {void}

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

Returns:
Type: 
void