Indicators, Progress & Gauges · jdashboardUI 23.5 · B4J / JavaFX
Status bar for Success/Error/Warning/Info messages, custom text and a progress spinner.
The image shown on this page is a documentation reference visual. It is not intended to be a pixel-perfect screenshot; the real result depends on size, theme, colors and data.
Highlights
- Status bar for Success/Error/Warning/Info messages, custom text and a progress spinner.
When to use it
Status bar for Success/Error/Warning/Info messages, custom text and a progress spinner.
Designer Properties
| Property | Type | Default | Description |
|---|---|---|---|
| BackgroundColor | Color | 0xFF1E1E1E |
Background color of the status bar. |
| BorderColor | Color | 0xFF333333 |
Top border color. |
| TextColor | Color | 0xFFCCCCCC |
Default text color. |
| BarHeight | Int | 24 |
Height of the status bar. |
| InitialText | String | Listo |
Text shown when initialized. |
| ProgressColor | Color | 0xFF34C759 |
Color of the loading spinner. |
Creation and lifecycle
Private JStatusBarView1 As JStatusBarView
'Add JStatusBarView from the Designer and use it after Root.LoadLayout(...).
Working example
JStatusBarView1.ShowInfo("Connecting...")
JStatusBarView1.ShowProgress(True)
'After completion:
JStatusBarView1.ShowProgress(False)
JStatusBarView1.ShowSuccess("Ready")
Normalized B4X properties
Compatible public getX/setX accessors are presented as normal B4X properties. Parameterized accessors remain documented as methods.
| Property | Access | Type |
|---|---|---|
| Font | read / write | Font |
Events
No public events are declared in the analyzed version.
Export and rendering
This component does not expose a public PNG export function in the analyzed version.
Source-backed notes for the analyzed version
- The API below was extracted from the actual module source.
Indicator before the text
The image on this page remains a documentation reference visual, not a pixel-perfect screenshot. The difference is that the left indicator shown in that reference now corresponds to a real control feature.
You can show a text indicator before the message, such as ●, ✓, ! or any short String. Its color is independent from both the message text and the progress spinner:
JStatusBarView1.SetIndicator("●", xui.Color_Green)
JStatusBarView1.ShowMessage("Ready - build completed successfully")
It can also be changed or hidden at runtime:
JStatusBarView1.SetIndicatorColor(xui.Color_Red)
JStatusBarView1.SetIndicatorText("!")
JStatusBarView1.ShowIndicator(False)
JStatusBarView1.ShowIndicator(True)
JStatusBarView1.ClearIndicator
Compact call:
JStatusBarView1.ShowCustomIndicator( _
"Ready - build completed successfully", _
xui.Color_White, _
"✓", _
xui.Color_Green)
The indicator, message text and ProgressColor keep independent colors. Layout is recalculated on resize and the left indicator does not interfere with the spinner on the right.
Complete public API
-
ShowCustomIndicator(Text As String, TextColor As Int, IndicatorText As String, IndicatorColor As Int) -
ClearIndicator() -
ShowIndicator(Show As Boolean) -
SetIndicatorText(Text As String) -
SetIndicatorColor(Color As Int) -
SetIndicator(Text As String, Color As Int) -
Initialize(Callback As Object, EventName As String) -
DesignerCreateView(Base As Pane, Lbl As Label, Props As Map) -
ShowProgress(Show As Boolean) -
SetProgressColor(Color As Int) -
setFont(f As Font) -
getFont() As Font -
ShowMessage(Text As String) -
ShowCustom(Text As String, Color As Int, CustomFont As Font = Null) -
ShowCustomFull(Text As String, Color As Int, CustomFont As Font) -
ShowSuccess(Text As String) -
ShowError(Text As String) -
ShowWarning(Text As String) -
ShowInfo(Text As String) -
ApplyThemeColors(BackgroundColor As Int, BorderColor As Int, TextColor As Int, ProgressColor As Int) -
GetBase() As Pane
Related components
- JLoadingIndicator
- JProgressBar