public class Theme extends Object
Theme
consists of several
Theme.Definition
s, one for each Theme.Category
value. When components are setting
their colors according to the theme, they do so by calling TextGraphics.applyTheme
.Modifier and Type | Class and Description |
---|---|
static class |
Theme.Category
Represents things which can be styled.
|
static class |
Theme.Definition
A style definition encompassing colors and effects.
|
Modifier | Constructor and Description |
---|---|
protected |
Theme() |
Modifier and Type | Method and Description |
---|---|
protected Theme.Definition |
getBorder()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getButtonActive()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getButtonInactive()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getButtonLabelActive()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getButtonLabelInactive()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getCheckBox()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getCheckBoxSelected()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getDefault()
Deprecated.
use
getDefaultStyle() instead |
protected Theme.Definition |
getDefaultStyle()
Gets the default style to use when no Category-specific style is set.
|
static Theme |
getDefaultTheme() |
Theme.Definition |
getDefinition(Theme.Category category) |
protected Theme.Definition |
getDialogEmptyArea()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getItem()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getItemSelected()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getRaisedBorder()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getScreenBackground()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getShadow()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getTextBox()
Deprecated.
use
getDefinition instead. |
protected Theme.Definition |
getTextBoxFocused()
Deprecated.
use
getDefinition instead. |
protected void |
setDefinition(Theme.Category category,
Theme.Definition def) |
public Theme.Definition getDefinition(Theme.Category category)
protected void setDefinition(Theme.Category category, Theme.Definition def)
protected Theme.Definition getDefaultStyle()
@Deprecated protected Theme.Definition getDefault()
getDefaultStyle()
instead@Deprecated protected Theme.Definition getDialogEmptyArea()
getDefinition
instead.@Deprecated protected Theme.Definition getScreenBackground()
getDefinition
instead.@Deprecated protected Theme.Definition getShadow()
getDefinition
instead.@Deprecated protected Theme.Definition getBorder()
getDefinition
instead.@Deprecated protected Theme.Definition getRaisedBorder()
getDefinition
instead.@Deprecated protected Theme.Definition getButtonLabelActive()
getDefinition
instead.@Deprecated protected Theme.Definition getButtonLabelInactive()
getDefinition
instead.@Deprecated protected Theme.Definition getButtonActive()
getDefinition
instead.@Deprecated protected Theme.Definition getButtonInactive()
getDefinition
instead.@Deprecated protected Theme.Definition getItem()
getDefinition
instead.@Deprecated protected Theme.Definition getItemSelected()
getDefinition
instead.@Deprecated protected Theme.Definition getCheckBox()
getDefinition
instead.@Deprecated protected Theme.Definition getCheckBoxSelected()
getDefinition
instead.@Deprecated protected Theme.Definition getTextBoxFocused()
getDefinition
instead.@Deprecated protected Theme.Definition getTextBox()
getDefinition
instead.public static Theme getDefaultTheme()
Copyright © 2015. All Rights Reserved.