Overview
A component that displays a list of ListItems objects and allows the user to select one or more items.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
items | ListItem[] |
Defines the array of ListItems objects
to be displayed by this Defines the array of ListItems objects
to be displayed by this |
selectedIndex | Integer |
Defines the smallest selected cell index; the selection when only a single item is selected in the list. More: [+]Defines the smallest selected cell index; the selection when only
a single item is selected in the list. When multiple items are selected,
it is simply the smallest selected index. Returns |
selectedItem | ListItem |
Defines the ListItem for the smallest selected cell index; the selected value when only a single item is selected in the list. More: [+]Defines the ListItem for the smallest selected cell index;
the selected value when only a single item is selected in the
list. When multiple items are selected, it is simply the ListItem for
the smallest selected index. Returns |
Protected |
Inherited Attributes
javafx.ext.swing.ScrollableComponent
name | type | description |
---|---|---|
scrollable | Boolean |
Determines if the horizontal and vertical scrollbars
appear in the Determines if the horizontal and vertical scrollbars
appear in the |
javafx.ext.swing.Component
name | type | description |
---|---|---|
enabled | Boolean |
Sets whether or not this component is enabled. More: [+]Sets whether or not this component is enabled. A component that is enabled may respond to user input, while a component that is not enabled cannot respond to user input. Some components may alter their visual representation when they are disabled in order to provide feedback to the user that they cannot take input. Note: Disabling a component does not disable it's children. Note: Disabling a lightweight component does not prevent it from receiving MouseEvents |
font | Font |
Sets the font for this component. More: [+]Sets the font for this component. |
foreground | Color |
Sets the foreground color of this component. More: [+]Sets the foreground color of this component. |
halign | Alignment | More: [+] |
height | Integer |
Sets the height of the component. More: [+]Sets the height of the component. The default value isnull .
|
hisbaseline | Boolean | More: [+] |
hmax | Integer | More: [+] |
hmin | Integer | More: [+] |
hpref | Integer | More: [+] |
name | String |
The component's name, which may be The component's name, which may be |
preferredSize | Integer[] |
The The |
valign | Alignment | More: [+] |
visbaseline | Boolean | More: [+] |
visible | Boolean |
Makes the component visible or invisible. More: [+]Makes the component visible or invisible. |
vmax | Integer | More: [+] |
vmin | Integer | More: [+] |
vpref | Integer | More: [+] |
width | Integer |
Sets the width of the component. More: [+]Sets the width of the component. The default value isnull .
|
x | Integer |
Defines the X coordinate of the component. More: [+]Defines the X coordinate of the component. The default value isnull .
|
y | Integer |
Defines the Y coordinate of the component. More: [+]Defines the Y coordinate of the component. The default value isnull .
|
Function Summary
- protected createJComponent() : javax.swing.JComponent
-
Creates the specific JComponent delegate for this component.
More: [+]Creates the specific JComponent delegate for this component.
-
Returns
- JComponent
- public getJList() : javax.swing.JList
-
Returns the JList delegate for this component.
More: [+]Returns the JList delegate for this component.
-
Returns
- JList
Inherited Functions
javafx.ext.swing.ScrollableComponent
- public getJScrollPane() : javax.swing.JScrollPane
-
Returns the
More: [+]JScrollPane
delegate for this component.Returns the
JScrollPane
delegate for this component.-
Returns
- JScrollPane
- public getRootJComponent() : javax.swing.JComponent
-
Some
Component
implementations are backed by a hierarchy of SwingJComponents
rather than a singleJComponent
. This method returns the topJComponent
in the hierarchy, the one which is to be used to embed thisComponent
in an underlying Swing scene graph or hierarchy. This is also theJComponent
on which thex, y, width, height
attributes operate.This method must never return
null
, even during initialization.The default implementation delegates to #getJComponent().
This implementation is overridden to delegate to #getJScrollPane().
-
Returns
- JComponent
javafx.ext.swing.Component
- protected abstract createJComponent() : javax.swing.JComponent
-
Creates the JComponent delegate for this component.
More: [+]Creates the JComponent delegate for this component.
-
Returns
- JComponent
- public static fromJComponent(jComponent: javax.swing.JComponent) : Component
-
Get the size and location values from the component.
More: [+]Get the size and location values from the component.
-
Parameters
- jComponent
-
Returns
- Component
- public static getComponentFor(jComponent: javax.swing.JComponent) : Component
-
Determines if this component or one of its immediate subcomponents is an object of the property with the specified key, and if so, returns the containing component.
More: [+]Determines if this component or one of its immediate subcomponents is an object of the property with the specified key, and if so, returns the containing component.
-
Parameters
- jComponent
-
Returns
- Component
- public getJComponent() : javax.swing.JComponent
-
Returns the Swing
More: [+]JComponent
encapsulated by thisComponent
.Returns the Swing
JComponent
encapsulated by thisComponent
. Never returnsnull
.See again Also:
#getRootJComponent(),-
Returns
- JComponent
-
the Swing
JComponent
encapsulated by thisComponent
- public bound getName() : java.lang.String
-
Returns this
More: [+]Component's
name, ornull
if it doesn't have a name.Returns this
Component's
name, ornull
if it doesn't have a name.See again Also:
#name,-
Returns
- String
-
this
Component's
name ornull
- public bound getParent() : Container
-
Returns this
More: [+]Component's
parentContainer
, ornull
if it doesn't have a parent.Returns this
Component's
parentContainer
, ornull
if it doesn't have a parent.-
Returns
- Container
-
this
Component's
parent ornull
- public getRootJComponent() : javax.swing.JComponent
-
Some
More: [+]Component
implementations are backed by a hierarchy of SwingJComponents
rather than a singleJComponent
.Some
Component
implementations are backed by a hierarchy of SwingJComponents
rather than a singleJComponent
. This method returns the topJComponent
in the hierarchy, the one which is to be used to embed thisComponent
in an underlying Swing scene graph or hierarchy. This is also theJComponent
on which thex, y, width, height
attributes operate.This method must never return
null
, even during initialization.The default implementation delegates to #getJComponent().
-
Returns
- JComponent
-
the root
JComponent