javafx.ui

Widget

Extends: GroupElement, UIElement

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.
protected awtBackground: java.awt.Color?
protected awtFont: java.awt.Font?
protected awtForeground: java.awt.Color?
public background: AbstractColor?
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 component: javax.swing.JComponent
read-only attribute providing access to the underlying Swing component
public componentOrientation: java.awt.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.
private focusListener: java.awt.event.FocusListener?
public focusTraversalKeysEnabled: Boolean?
public focusable: Boolean?
Sets the focusable state of this Component to the specified value. This value overrides the Component's default focusability.
public focused: Boolean
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.
private inBoundsListener: Boolean
private keyListener: java.awt.event.KeyListener?
public keyboardAction: javafx.ui.KeyboardAction*
public maximumSize: java.awt.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: java.awt.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.
protected mouseListener: java.awt.event.MouseListener?
protected mouseMotionListener: java.awt.event.MouseMotionListener?
protected mouseWheelListener: java.awt.event.MouseWheelListener?
public onKeyDown: function(javafx.ui.KeyEvent):*
attribute onKeyDown: function(event:KeyEvent); Optional handler for key press events.
public onKeyTyped: function(javafx.ui.KeyEvent):*
attribute onKeyTyped: function(event:KeyEvent) Optional handler for key typed events.
public onKeyUp: function(javafx.ui.KeyEvent):*
attribute onKeyUp: function(event:KeyEvent); Optional handler for key release events.
public onMouseClicked: function(javafx.ui.MouseEvent):*
attribute onMouseClicked: function(e:MouseEvent)

Optional handler for mouse exit events.
public onMouseDragged: function(javafx.ui.MouseEvent):*
public onMouseEntered: function(javafx.ui.MouseEvent):*
attribute onMouseEntered: function(e:MouseEvent)

Optional handler for mouse enter events.
public onMouseExited: function(javafx.ui.MouseEvent):*
attribute onMouseExited: function(e:MouseEvent)

Optional handler for mouse exit events.
public onMouseMoved: function(javafx.ui.MouseEvent):*
attribute onMouseMoved: function(e:MouseEvent)

Optional handler for mouse motion events.
public onMousePressed: function(javafx.ui.MouseEvent):*
attribute onMousePressed: function(e:MouseEvent)

Optional handler for mouse press events.
public onMouseReleased: function(javafx.ui.MouseEvent):*
attribute onMouseReleased: function(e:MouseEvent)

Optional handler for mouse release events.
public onMouseWheelMoved: function(javafx.ui.MouseWheelEvent):*
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 preferredSize: java.awt.Dimension?
public size: java.awt.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.

Attributes Inherited from javafx.ui.GroupElement

Attributes Inherited from javafx.ui.UIElement

Operations/Functions

protected createComponent(): javax.swing.JComponent
factory method to create the underlying Swing component
public function():function(java.awt.event.KeyEvent):function(java.awt.event.KeyEvent):function(java.awt.event.KeyEvent):function(java.awt.event.KeyEvent):javafx.ui.KeyEvent(): javafx.ui.KeyEvent
public getBounds(): java.awt.Rectangle
public getComponent(): javax.swing.JComponent
public getNonScrollPaneComponent(): javax.swing.JComponent
protected installMouseListener()
protected installMouseMotionListener()
protected installMouseWheelListener()
private makeKeyEvent(e: java.awt.event.KeyEvent): KeyEvent
private makeMouseEvent(e: java.awt.event.MouseEvent): MouseEvent
private makeMouseWheelEvent(e: java.awt.event.MouseWheelEvent): MouseEvent
public maximumSize(): java.awt.Dimension
Returns the current maximum size of this component
public minimumSize(): java.awt.Dimension
Returns the current minimum size of this component
protected onSetOpaque(value: Boolean)
public preferredSize(): java.awt.Dimension
Returns the current preferred size of this component
public requestFocus()
public setBounds(b: java.awt.Rectangle)
public size(): java.awt.Dimension

Operations/Functions Inherited from javafx.ui.UIElement