JDashboardUI · Complete API guide · B4J/JavaFX · October 30, 2026 source bundle
Floating panel for filters, popovers and additional controls with anchor-relative positioning, bounds correction, close behavior and shadows.
Illustrative documentation mockup, not an exact control screenshot.
What it does and when to use it
Floating panel for filters, popovers and additional controls with anchor-relative positioning, bounds correction, close behavior and shadows.
Initialization and practical examples
The example demonstrates the available operations. Root, where used, refers to an existing B4XView. Example image files must actually be included in the project's Files folder.
' Popup settings panel
Private Popup As jFloatingPanel
Popup.Initialize(Me, "Popup", Root)
Popup.BackgroundColor = xui.Color_RGB(28,34,52)
Popup.ShadowColor = xui.Color_Black
Popup.CornerRadius = 16
Popup.Duration = 200
Popup.OpenOrientation = Popup.OpenOrientationBottomTop
Popup.CloseOnTap = True
Popup.ShowRelativeTo(BtnFilters, "BOTTOM_LEFT", 320dip, 220dip, True)
' Insert arbitrary content before displaying the panel
Dim Lbl As Label
Lbl.Initialize("")
Lbl.Text = "Filter by status"
Popup.Panel.AddView(Lbl, 18dip, 18dip, 200dip, 35dip)
' Open immediately if animation is unwanted
Popup.ShowImmediate(50dip, 50dip, 320dip, 220dip)
Popup.ClosePanel
Private Sub Popup_Close
Log("Panel closed")
End Sub
Private Sub Popup_Reset
Log("Panel reset")
End Sub
Complete public API reference
This module exposes 30 public methods/accessors in the inspected version. All declarations, including variants, getters/setters and Designer lifecycle hooks, appear below.
| Exact source declaration | Purpose |
|---|---|
Initialize(callBack As Object, eventName As String, parent As B4XView) |
Initializes the instance and, when required, binds Callback and EventName. |
PreSize(width As Float, height As Float) |
Sets an initial size before display. |
Show(left As Float, top As Float, width As Float, height As Float) |
Opens the panel with explicit position and size. |
ShowImmediate(left As Float, top As Float, width As Float, height As Float) |
Shows the panel without animation. |
ShowRelativeTo(AnchorView As B4XView, Position As String, Width As Float, Height As Float, AutoBoundsCorrection As Boolean) |
Shows the panel by an anchor, optionally correcting overflow. |
ShowImmediateRelativeTo(AnchorView As B4XView, Position As String, Width As Float, Height As Float, AutoBoundsCorrection As Boolean) |
Immediately shows the panel by an anchor. |
CloseImmediate |
Closes immediately. |
getPanel As B4XView |
Reads the Panel property. |
ClosePanel |
Closes the panel. |
ResetPanel |
Resets the panel and emits Reset when appropriate. |
setDisableOutside(enabled As Boolean) |
Configures DisableOutside; single-argument setters commonly use B4X property syntax. |
setDuration(d As Long) |
Configures Duration; single-argument setters commonly use B4X property syntax. |
setOpenOrientation(o As String) |
Activates the opening orientation indicated by the method. |
setCloseOnTap(v As Boolean) |
Configures CloseOnTap; single-argument setters commonly use B4X property syntax. |
setCornerRadius(cr As Float) |
Configures CornerRadius; single-argument setters commonly use B4X property syntax. |
getBackgroundColor As Int |
Reads the BackgroundColor property. |
setBackgroundColor(color As Int) |
Configures BackgroundColor; single-argument setters commonly use B4X property syntax. |
getShadowColor As Int |
Reads the ShadowColor property. |
setShadowColor(color As Int) |
Configures ShadowColor; single-argument setters commonly use B4X property syntax. |
getOpenOrientationLeftBottom As String |
Returns the named opening orientation as String. |
getOpenOrientationRightBottom As String |
Returns the named opening orientation as String. |
getOpenOrientationNone As String |
Returns the named opening orientation as String. |
getOpenOrientationLeftTop As String |
Returns the named opening orientation as String. |
getOpenOrientationRightTop As String |
Returns the named opening orientation as String. |
getOpenOrientationLeftRight As String |
Returns the named opening orientation as String. |
getOpenOrientationRightLeft As String |
Returns the named opening orientation as String. |
getOpenOrientationTopBottom As String |
Returns the named opening orientation as String. |
getOpenOrientationBottomTop As String |
Returns the named opening orientation as String. |
setDropShadow(Offset As Double, color As Int) |
Configures outer shadow offset and color. |
setInnerShadow(color As Int) |
Configures an inner shadow. |
B4X properties: read/write access
Public getX/setX members correspond to standard B4X Control.X property syntax when their signatures are property-compatible. Use multi-argument members as methods.
| Property | Access |
|---|---|
Panel |
read |
DisableOutside |
write |
Duration |
write |
OpenOrientation |
write |
CloseOnTap |
write |
CornerRadius |
write |
BackgroundColor |
read / write |
ShadowColor |
read / write |
OpenOrientationLeftBottom |
read |
OpenOrientationRightBottom |
read |
OpenOrientationNone |
read |
OpenOrientationLeftTop |
read |
OpenOrientationRightTop |
read |
OpenOrientationLeftRight |
read |
OpenOrientationRightLeft |
read |
OpenOrientationTopBottom |
read |
OpenOrientationBottomTop |
read |
InnerShadow |
write |
Public fields
No additional public instance fields are declared.
Designer properties
This module declares no custom Designer properties.
Events
CloseReset
Lifecycle, compatibility and limitations
Add child controls to Popup.Panel before Show. Orientation getters expose constants; setDropShadow has two arguments and is not a regular B4X property.
DesignerCreateView and Base_Resize, where listed, are Custom View lifecycle hooks managed by B4J. Normally you should not call them manually. When adding the view through the Designer, do not initialize the same instance again.
API conventions
- All signatures and argument types come from the inspected source bundle.
B4XViewdenotes an XUI view,B4XFontan XUI font, andObjectan arbitrary value.- Variable names in samples are illustrative: use those from your actual project.
- Source review was performed; no real B4J compilation was performed in this environment.