B4J Programming Press on the image to return to the main documentation page.

jCustomWindow

List of types:

jCustomWindow

jCustomWindow


Events:

None

Members:


  ACTION_EXIT As Int

  ACTION_FULLSCREEN As Int

  ACTION_MAXIMIZE As Int

  ACTION_MINIMIZE As Int

  AnimationsActivated As Boolean

  AnimationSpeedMultiplier As Float

  BorderStyle As String

  BorderWidth As Double

  ButtonAdd (Text As String, index As Int) As ButtonWrapper

  ButtonBindToAction (Btn As ButtonWrapper, ACTION As Int) As String

  Buttons As List [read only]

  ButtonSetImage (Btn As ButtonWrapper, ImageDir As String, ImageFileName As String) As String

  Focused As Boolean

  getAnimationsActivated As Boolean

  getAnimationSpeedMultiplier As Float

  getBorderStyle As String

  getBorderWidth As Double

  getButtons As List

  getResizable As Boolean

  getRootPane As AnchorPaneWrapper

  getTopBarStyle As String

  Initialize (moduleParent As Object, parentForm As Form, eventName As String) As String

  IsInitialized As Boolean

  Resizable As Boolean

  RootPane As AnchorPaneWrapper [read only]

  setAnimationsActivated (Value As Boolean) As String

  setAnimationSpeedMultiplier (Multiplier As Float) As String

  setBorderStyle (Style As String) As String

  setBorderWidth (Width As Double) As String

  SetIcon (Dir As String, FileName As String) As String

  setResizable (Value As Boolean) As String

  setTopBarStyle (Style As String) As String

  SetWindowSizeLimits (minWidth As Int, minHeight As Int, maxWidth As Int, MaxHeight As Int) As String

  Title As LabelWrapper

  TopBarStyle As String

Members description:

ACTION_EXIT As Int
ACTION_FULLSCREEN As Int
ACTION_MAXIMIZE As Int
ACTION_MINIMIZE As Int
AnimationsActivated As Boolean
Enable or disable the animations.
AnimationSpeedMultiplier As Float
Multiplier for the animation speed. e.g: To multiply the maximize animation by 2, set Multiplier to 2.
BorderStyle As String
The css style for the left, right and bottom borders.
BorderWidth As Double
The left, right and bottom border size.
ButtonAdd (Text As String, index As Int) As ButtonWrapper
Adds a button to the top bar.
Parameters:
Text: The button's text. Set to "" for no text.
Index: The index of the button. Index are 0 based, and start from the left of the window.
ImageDir and ImageFileName: the image's directory and file name. Set both to "" if you don't want to set an image.
ButtonBindToAction (Btn As ButtonWrapper, ACTION As Int) As String
Binds the given button to an Action.
Parameters:
Btn: A button
ACTION: one of the ACTION_* constants.
Buttons As List [read only]
Returns all the buttons in a list. Useful to skin them one by one for example.
ButtonSetImage (Btn As ButtonWrapper, ImageDir As String, ImageFileName As String) As String
Adds a button to the top bar.
Parameters:
Text: The button's text. Set to "" for no text.
Index: The index of the button. Index are 0 based, and start from the left of the window.
ImageDir and ImageFileName: the image's directory and file name. Set both to "" if you don't want to set an image.
Focused As Boolean
Returns true if the window has the keyboard or mouse focus.
getAnimationsActivated As Boolean
getAnimationSpeedMultiplier As Float
getBorderStyle As String
getBorderWidth As Double
getButtons As List
Returns all the buttons in a list. Useful to skin them one by one for example.
getResizable As Boolean
getRootPane As AnchorPaneWrapper
Returns the rootPane of the custom content area. You can load your layout there.
getTopBarStyle As String
Initialize (moduleParent As Object, parentForm As Form, eventName As String) As String
Initializes the Custom Window Class.
Parameters:
moduleParent: The module that created this Custom Window instance.
parentForm: The form that will hold the Custom Window.
eventName: The event name.
IsInitialized As Boolean
Tests whether the object has been initialized.
Resizable As Boolean
Set the window resizable or not.
RootPane As AnchorPaneWrapper [read only]
Returns the rootPane of the custom content area. You can load your layout there.
setAnimationsActivated (Value As Boolean) As String
Enable or disable the animations.
setAnimationSpeedMultiplier (Multiplier As Float) As String
Multiplier for the animation speed. e.g: To multiply the maximize animation by 2, set Multiplier to 2.
setBorderStyle (Style As String) As String
The css style for the left, right and bottom borders.
setBorderWidth (Width As Double) As String
The left, right and bottom border size.
SetIcon (Dir As String, FileName As String) As String
The icon that is displayed at the top left of the window.
setResizable (Value As Boolean) As String
Set the window resizable or not.
setTopBarStyle (Style As String) As String
Set the css style for the top bar.
SetWindowSizeLimits (minWidth As Int, minHeight As Int, maxWidth As Int, MaxHeight As Int) As String
Sets the window size limits.
Note: This method should be called after the showing the mainform.
Title As LabelWrapper
Returns the title as a label.
TopBarStyle As String
Set the css style for the top bar.
Top