Overview
Attribute Summary
name | type | description |
---|---|---|
Public | ||
alignmentX | Number |
Returns the alignment along the x axis. |
alignmentY | Number |
Returns the alignment along the y axis. |
background | Color |
Sets the background color of this component. |
border | Border |
Sets the border of this component. |
component | JComponent | |
componentOrientation | ComponentOrientation |
Sets the language-sensitive orientation that is to be used to order the elements or text within this component. |
cursor | Cursor |
Sets the cursor image to the specified cursor. |
doubleBuffered | Boolean |
Sets whether the this component should use a buffer to paint. |
enabled | Boolean |
True when the object is enabled. |
focusable | Boolean |
Sets the focusable state of this Widget to the specified value. |
focused | Boolean | |
focusTraversalKeysEnabled | Boolean | |
font | Font |
Sets the |
foreground | Color |
Sets the foreground color of this component. |
height | Number |
Sets the height of this component. |
keyboardAction | KeyboardAction[] | |
maximumSize | Dimension |
Sets the maximum size of this component to a constant value. |
minimumSize | Dimension |
Sets the minimum size of this component to a constant value. |
name | String | |
onKeyDown | function(:KeyEvent):Void |
|
onKeyTyped | function(:KeyEvent):Void |
|
onKeyUp | function(:KeyEvent):Void |
|
onMouseClicked | function(:MouseEvent):Void |
|
onMouseDragged | function(:MouseEvent):Void |
|
onMouseEntered | function(:MouseEvent):Void |
|
onMouseExited | function(:MouseEvent):Void |
|
onMouseMoved | function(:MouseEvent):Void |
|
onMousePressed | function(:MouseEvent):Void |
|
onMouseReleased | function(:MouseEvent):Void |
|
onMouseWheelMoved | function(:MouseWheelEvent):Void |
|
opaque | Boolean |
If true the component paints every pixel within its bounds. |
preferredSize | Dimension | |
size | Dimension |
Resizes this component to the specified dimensions. |
sizeToFitColumn | Boolean |
Hint to GroupLayout to make this component's width equal to others in the same column |
sizeToFitRow | Boolean |
Hint to GroupLayout to make this component's height equal to others in the same row |
toolTipText | String |
Registers the text to display in a tool tip. |
visible | Boolean |
True when the object is visible. |
width | Number |
Sets width of this component. |
x | Number |
Sets the x coordinate of this component within its parent. |
y | Number |
Sets the y coordinate of this component within its parent. |
Protected | ||
awtBackground | Color | |
awtFont | Font | |
awtForeground | Color | |
keyListener | KeyListener | |
mouseListener | MouseListener | |
mouseMotionListener | MouseMotionListener | |
mouseWheelListener | MouseWheelListener |
Inherited Attributes
javafx.ui.GroupElement
public | name | type |
---|---|---|
column | Column |
The column this element is contained in within a GroupLayout. |
horizontal | Spring |
Optional horizontal spring that determines the horizontal resizing behavior of this element when contained in a GroupLayout. |
row | Row |
The row this element is contained in within a GroupLayout. |
vertical | Spring |
Optional vertical spring that determines the vertical resizing behavior of this element when contained in a GroupLayout. |
javafx.ui.UIElement
public | name | type |
---|---|---|
context | UIContext | |
lookAndFeel | String |
Function Summary
- protected abstract createComponent() : JComponent
-
factory method to create the underlying Swing component
- public getComponent() : JComponent
- public getJComponent() : JComponent
- public getMaximumSize() : Dimension
-
Returns the current maximum size of this component
- public getMinimumSize() : Dimension
-
Returns the current minimum size of this component
- public getNonScrollPaneComponent() : JComponent
- public getPreferredSize() : Dimension
-
Returns the current preferred size of this component
- public getSize() : Dimension
- public bound getWindow() : Window
- protected installMouseListener() : Void
- protected installMouseMotionListener() : Void
- protected installMouseWheelListener() : Void
- protected onSetOpaque(value: Boolean, ) : Void
- public requestFocus() : Void
Inherited Functions
javafx.ui.UIElement
- public static __EASE(a: Object, t: Number, f: Function1, interpolate: Function3, ) : Object
- public static __EASEBOTH(t: Number, ) : Number
- public static __EASEIN(t: Number, ) : Number
- public static __EASEOUT(t: Number, ) : Number
- public static __INTERPOLATE_NUM(value1: Number, value2: Number, t: Number, ) : Number
- public static cmToPixel(cm: Number, ) : Number
- public static DISCRETE(a: Number, t: Number, ) : Number
- public static EASEBOTH(a: Number, t: Number, ) : Number
- public static EASEIN(a: Number, t: Number, ) : Number
- public static EASEOUT(a: Number, t: Number, ) : Number
- public static getScreenResolution() : Integer
- public static getUIContext() : UIContext
- public bound getWindow() : Window
- public static inchToPixel(inch: Number, ) : Number
- public static LINEAR(a: Number, t: Number, ) : Number
- public static mmToPixel(mm: Number, ) : Number
- public static pointToPixel(pt: Integer, ) : Number
Attributes
public alignmentX: Number
Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
public alignmentY: Number
Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
public background: Color
Sets the background color of this component.
public border: Border
Sets the border of this component. The Border
object is
responsible for defining the insets for the component
(overriding any insets set directly on the component) and
for optionally rendering any border decorations within the
bounds of those insets. Borders should be used (rather
than insets) for creating both decorative and non-decorative
(such as margins and padding) regions for a swing component.
Compound borders can be used to nest multiple borders within a
single component.
public componentOrientation: ComponentOrientation
Sets the language-sensitive orientation that is to be used to order
the elements or text within this component. Language-sensitive
LayoutManager
and Component
subclasses will use this property to
determine how to lay out and draw components.
public cursor: Cursor
Sets the cursor image to the specified cursor. This cursor
image is displayed when the contains
method for
this component returns true for the current cursor location, and
this Component is visible, displayable, and enabled. Setting the
cursor of a Container
causes that cursor to be displayed
within all of the container's subcomponents, except for those
that have a non-null
cursor.
public doubleBuffered: Boolean
Sets whether the this component should use a buffer to paint. If set to true, all the drawing from this component will be done in an offscreen painting buffer. The offscreen painting buffer will the be copied onto the screen.
public enabled: Boolean
True when the object is enabled. An object that is not
enabled does not interact with the user. Defaults to true
.
public focusable: Boolean
Sets the focusable state of this Widget to the specified value. This value overrides the Widget's default focusability, wich is true.
public font: Font
Sets the Font
of this object.
public foreground: Color
Sets the foreground color of this component.
public height: Number
Sets the height of this component. Has no effect unless contained in a Panel.
public maximumSize: Dimension
Sets the maximum size of this component to a constant
value. Subsequent calls to maximumSize()
will always
return this value; the component's UI will not be asked
to compute it. Setting the maximum size to null
restores the default behavior.
public minimumSize: Dimension
Sets the minimum size of this component to a constant
value. Subsequent calls to minimumSize()
will always
return this value; the component's UI will not be asked
to compute it. Setting the minimum size to null
restores the default behavior.
public onKeyDown: function(:KeyEvent):Void
attribute onKeyDown: function(:KeyEvent):Void;
Optional handler for key press events.
public onKeyTyped: function(:KeyEvent):Void
attribute onKeyTyped: function(:KeyEvent):Void
Optional handler for key typed events.
public onKeyUp: function(:KeyEvent):Void
attribute onKeyUp: function(:KeyEvent):Void;
Optional handler for key release events.
public onMouseClicked: function(:MouseEvent):Void
attribute onMouseClicked: function(:MouseEvent):Void
Optional handler for mouse exit events.
public onMouseDragged: function(:MouseEvent):Void
attribute onMouseDragged: function(:MouseEvent):Void
Optional handler for mouse dragged events.
public onMouseEntered: function(:MouseEvent):Void
attribute onMouseEntered: function(:MouseEvent):Void
Optional handler for mouse enter events.
public onMouseExited: function(:MouseEvent):Void
attribute onMouseExited: function(:MouseEvent):Void
Optional handler for mouse exit events.
public onMouseMoved: function(:MouseEvent):Void
attribute onMouseMoved: function(:MouseEvent):Void
Optional handler for mouse motion events.
public onMousePressed: function(:MouseEvent):Void
attribute onMousePressed: function(:MouseEvent):Void
Optional handler for mouse press events.
public onMouseReleased: function(:MouseEvent):Void
attribute onMouseReleased: function(:MouseEvent):Void
Optional handler for mouse release events.
public onMouseWheelMoved: function(:MouseWheelEvent):Void
attribute onMouseWheelMoved: function(:MouseWheelEvent):Void
Optional handler for mouse wheel events.
public opaque: Boolean
If true the component paints every pixel within its bounds.
Otherwise, the component may not paint some or all of its
pixels, allowing the underlying pixels to show through.
The default value of this attribute is false
.
public size: Dimension
Resizes this component to the specified dimensions.
public sizeToFitColumn: Boolean
Hint to GroupLayout to make this component's width equal to others in the same column
public sizeToFitRow: Boolean
Hint to GroupLayout to make this component's height equal to others in the same row
public toolTipText: String
Registers the text to display in a tool tip. The text displays when the cursor lingers over the component.
public visible: Boolean
True when the object is visible. An object that is not visible is not drawn on the screen.
public width: Number
Sets width of this component. Has no effect unless contained in a Panel.
public x: Number
Sets the x coordinate of this component within its parent. Has no effect unless contained in a Panel.
public y: Number
Sets the y coordinate of this component within its parent. Has no effect unless contained in a Panel.
Functions
protected abstract createComponent():JComponent
-
Returns
- JComponent
factory method to create the underlying Swing component
public getMaximumSize():Dimension
-
Returns
- Dimension
Returns the current maximum size of this component
public getMinimumSize():Dimension
-
Returns
- Dimension
Returns the current minimum size of this component
public getPreferredSize():Dimension
-
Returns
- Dimension
Returns the current preferred size of this component
public getSize():Dimension
-
Returns
- Dimension