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) onShowBackgroundChanged() → {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 pushed onto the scene stack Passes tagline separately so the dialog can style it distinctly
- 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.
- Type:
- void