Members
(static, constant) FOCUS_BORDER_PADDING
- Default Value
- 12
(static, constant) LABEL_PADDING
- Default Value
- 30
Methods
(static) init() → {void}
- 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)
- Type:
- void
(static) onFocusChanged() → {void}
Shows or hides the 9patch focus border based on focus state
- Type:
- void
(static) onHorizAlignChanged() → {void}
Passes horizAlign through to the internal label
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
- Type:
- boolean
(static) onMaxLinesChanged() → {void}
Sets maxLines on the description label
- Type:
- void
(static) onShouldShowBackgroundChanged() → {void}
Toggles the background rectangle and recalculates layout padding
- Type:
- void
(static) onSizeChanged() → {void}
Resizes background, border, and content when width or height changes
- Type:
- void
(static) onTaglineChanged() → {void}
Dynamically creates or removes the tagline label based on tagline text
- Type:
- void
(static) onTaglineMaxLinesChanged() → {void}
Sets maxLines on the tagline label (if it exists)
- Type:
- void
(static) onTextChanged() → {void}
Updates the label text when the text field changes
- Type:
- void
(static) onVertAlignChanged() → {void}
Passes vertAlign through to the internal label
- 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.
- 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.
- Type:
- void