public interface TitleBarProperties extends TextStyleProperties, PaddingStyleProperties
TitleBarProperties
interface represents styling properties applied to the title bar of a TitlePanelControl
.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHAlign()
Horizontal alignment for the title bar - both the title text and any optional image are aligned together as a block.
|
void |
setHAlign(java.lang.String hAlign)
Sets the horizontal alignment for the title bar - both the title text and any optional image are aligned together as a block.
|
getLineHeight, getTextBold, getTextColor, getTextDecoration, getTextFont, getTextItalic, getTextSize, setLineHeight, setTextBold, setTextColor, setTextDecoration, setTextFont, setTextItalic, setTextSize
getAllPadding, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, setAllPadding, setBottomPadding, setLeftPadding, setRightPadding, setTopPadding
java.lang.String getHAlign()
setHAlign(String)
for details of supported values when setting this property.void setHAlign(java.lang.String hAlign)
Supported values:
Value | Constant |
---|---|
Center | ControlConstants.HORIZONTAL_ALIGNMENT_CENTER |
Left | ControlConstants.HORIZONTAL_ALIGNMENT_LEFT |
Right | ControlConstants.HORIZONTAL_ALIGNMENT_RIGHT |
Example:
controls.TITLEPANEL1.titleBarStyle.setHAlign(ControlConstants.HORIZONTAL_ALIGNMENT_CENTER);