- java.lang.Object
-
- com.gluonhq.charm.glisten.application.StatusBar
-
public class StatusBar extends Object
API to allow for styling the native status bar elements on platforms such as iOS and Android. The primary benefit to using this class is that you can style the status bar from CSS using the.status-bar
style class in conjunction with the-fx-background-color
property.This class can no be instantiated directly, and should instead be accessed via
AppManager.getStatusBar()
.- Since:
- 4.0.0
-
-
Property Summary
Properties Type Property Description ObjectProperty<Color>
color
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProperty<Color>
colorProperty()
Color
getColor()
Gets the value of the property color.void
pseudoClassStateChanged(PseudoClass pseudoClass, boolean active)
It is possible to specify CSS rules such as.status-bar:error
, and have these pseudo class states be used to change the status bar color.void
setColor(Color color)
Sets the value of the property color.
-
-
-
Property Detail
-
color
public final ObjectProperty<Color> colorProperty
- See Also:
getColor()
,setColor(Color)
-
-
Method Detail
-
colorProperty
public final ObjectProperty<Color> colorProperty()
- See Also:
getColor()
,setColor(Color)
-
setColor
public final void setColor(Color color)
Sets the value of the property color.- Property description:
-
getColor
public final Color getColor()
Gets the value of the property color.- Property description:
-
pseudoClassStateChanged
public final void pseudoClassStateChanged(PseudoClass pseudoClass, boolean active)
It is possible to specify CSS rules such as.status-bar:error
, and have these pseudo class states be used to change the status bar color. If this is desired, simply use this method to pass in all pseudoclass state, toggling between active and inactive as desired.- Parameters:
pseudoClass
- the pseudo-class that has changed stateactive
- whether or not the state is active
-
-