[254:7] extends: FxObj
This class provides easy to use helpers for setting JavaFX Node values. Node is pretty much the root object of all JavaFX containers and controls.
setId (string Id
)
Sets the ID of the node. If you set 'myId' you can reference it from a stylesheet using #myId.
Id
is a string with the ID to set.this
objectsetStyle (string StyleStr
)
Sets the inline style CSS for the node. This is similar to HTML style tag.
setRotate (double Angle
)
Sets the rotation of the Node with the provided angle.
Angle
is a double with the angle.this
objectsetTranslateX (double Val
)
Sets the X translation with the provided value.
Val
is a double with the translation.this
objectsetTranslateY (double Val
)
Sets the Y translation with the provided value.
Val
is a double with the translation.this
object[13:21] static
(extern: com.lehman.aussom.stdlib.AussomFx) extends: object
This is the base JavaFX class. It provides support for creating a new JavaFX application or dialog and provides support functions.
fxApp (string Title = "Aussom Application", int Width = 800, int Height = 600
)
Creates a new JavaFX application and returns a fxApp object with the application.
Title
is a string with the application window title.Width
is an int with the width of the app in pixels.Height
is an int with the height of the app in pixels.A
fxApp object.fxDialog (string Title = "Aussom Dailog", int Width = null, int Height = null
)
Creates a new JavaFX dialog and returns a fxApp object with the dialog window.
Title
is a string with the dialog window title.Width
is an int with the width of the dialog in pixels.Height
is an int with the height of the dialog in pixels.A
fxApp object.shutdown ()
Stops the JavaFX application and associated background processes for the current running app.
runLater (callback ToRun, ...
)
Runs a UI task async. Runs UI updates properly. Any args after ToRun will be passed to called function.
ToRun
is a callback with the function to run.etc
is an optional list of arguments to pass to the called function.isUiThread ()
Checks if the current executing thread is the FX UI thread.
A
bool with true if it's running on the UI thread and false if not.actionEventHandler (callback OnEvent
)
Creates a JavaFX Action event handler and returns it with the event. The OnEvent function just takes a single string argument with the action.
OnEvent
is a callback with the function to call on the event.A
AussomJavaObject with the EventHandlertoHexString (object ColorObj
)
Converts the provided AussomJavaObject with the Java Color object to be converted to a hex string.
ColorObj
is a AussomJavaObject to convert.A
string with the hex value.getClosure (string InterfaceClass, callback OnAction
)
[310:7] extends: object
Represents a base class for JavaFX controls, providing functionality to set tooltips.
setTooltip (Val
)
Sets a tooltip for the control.
Val
Val is a Tooltip object to display when hovering over the control.this
object for chaining[346:7] extends: object
This class provides some of the common functionality that the JavaFX Pane class provides and containers such as AnchorPane and VBox subclass this.
add (Items
)
Add a signgle item, or multiple items to the pane.
Items
is either a single item or a list of items to add.this
object[209:7] extends: object
Represents a base class for JavaFX objects, providing utility methods for copying, creating observable lists, and managing style classes.
copy (Val
)
Copy constructor to set the value. If an AussomJavaObject is passed, this.obj is set to it. Returns true if it sets the value successfully.
Val
is any value to check and set if it is an AussomJavaObject.A
bool with true if set and false if not.observableArrayList (Items = null
)
Creates an observable ArrayList, optionally with initial items.
Items
is a list of initial items or null for an empty list.An
observable ArrayList object.getStyleClass ()
Gets a list of the JavaFX style classes for the node.
A
list of strings with the style classes.[326:7] extends: object
Represents a base class for JavaFX regions, allowing for preferred size configuration.
setPrefSize (double Width, double Height
)
Sets the preferred width and height for the region.
Width
Width is a double value to set as the preferred width.Height
Height is a double value to set as the preferred height.this
object for chaining[85:14] (extern: com.lehman.aussom.stdlib.AussomFxApp) extends: object
Represents the main application or dialog class for creating UI applications in Aussom.
The fxApp
class serves as the base object for all other UI elements, acting as the container
and primary controller of the application interface. Although it is a native Aussom object,
all JavaFX objects can be created and manipulated within it using AJI (Aussom-Java Interface).
getAjo ()
Retrieves the underlying AussomJavaObject associated with this application instance.
The
AussomJavaObject object.show (bool BlockThread = true
)
Displays the application or dialog. Optionally blocks the thread.
BlockThread
A bool specifying if the thread should be blocked. Defaults to true._show (bool BlockThread = true
)
close ()
Closes the application or dialog.
A
result indicating the closure status._close ()
add (object FxObj
)
Adds a JavaFX object (e.g., a UI component) to the application.
FxObj
The object to be added to the application's UI.addStyleSheet (string StyleSheetFile
)
Adds a CSS stylesheet to the application's scene.
StyleSheetFile
The path to the stylesheet file.openInBrowser (string HostUri
)
Opens the specified URI in the default web browser.
HostUri
The URI to be opened.setOnShow (callback OnShown = null
)
Sets a callback function that is executed when the application is shown.
OnShown
The callback function, or null for no action.setOnClosing (callback OnClosing = null
)
Sets a callback function that is executed when the application is closing.
OnClosing
The callback function, or null for no action.setLayout (object FxObj
)
Sets the layout node for the application's scene.
FxObj
The layout node to set.setMenuBar (object MenuBar
)
Sets a menu bar for the application window.
MenuBar
The menu bar object to set.setMaximized (bool Maximized
)
Sets the maximized state of the application window.
Maximized
A bool indicating if the window should be maximized.setFullScreen (bool FullScreen
)
Sets the application window to full-screen mode.
FullScreen
A bool indicating if full-screen mode should be enabled.getMaximized ()
Retrieves whether the application window is maximized.
A
bool indicating if the window is maximized.getFullScreen ()
Retrieves whether the application window is in full-screen mode.
A
bool indicating if full-screen mode is enabled.getStyle ()
Retrieves the current style of the application.
The
style string.getId ()
Retrieves the ID of the application.
The
ID string.setStyle (string Style
)
Sets the style for the application.
Style
A string specifying the style to set.setId (string Id
)
Sets the ID for the application.
Id
A string specifying the ID to set.setToolTip (object ToolTip = null
)
Sets a tooltip for the application window.
ToolTip
The tooltip object to attach, or null for no tooltip.