Module io.github.mmm.ui.fx.core
Package io.github.mmm.ui.fx.widget
Class FxWidgetNode<W extends javafx.scene.Node>
-
- Type Parameters:
W
- type ofJavaFx widget
.
- All Implemented Interfaces:
EventSource<UiEvent,UiEventListener>
,AttributeReadEnabled
,AttributeReadId
,AttributeReadValid
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWriteReadOnly
,AttributeWriteTooltip
,AttributeWriteValidationFailure
,AttributeWriteVisible
,UiNativeWidget
,UiWidget
,UiNativeWidgetWrapper<W>
- Direct Known Subclasses:
FxAbstractImage
,FxActiveWidget
,FxBorderPanel
,FxChart
,FxComposite
,FxInputContainer
,FxInputContainer
,FxLabel
,FxMediaWidget
,FxText
public abstract class FxWidgetNode<W extends javafx.scene.Node> extends FxWidgetStyleable<W>
Implementation ofUiWidget
for JavaFx based onNode
.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.ui.fx.widget.FxWidget
CLASS_INVALID, CLASS_READ_ONLY, widget
-
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
STYLE_INVALID
-
-
Constructor Summary
Constructors Constructor Description FxWidgetNode(W widget)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.Node
getTopWidget()
protected void
setEnabledNative(boolean enabled)
protected void
setIdNative(String id)
protected void
setReadOnlyNative(boolean readOnly)
protected void
setTooltipNative(String newTooltip)
protected void
setVisibleNative(boolean visible)
-
Methods inherited from class io.github.mmm.ui.fx.widget.FxWidgetStyleable
createStyles
-
Methods inherited from class io.github.mmm.ui.fx.widget.FxWidget
getTopNode, getWidget, onAction, onClose, onFocusChange, onFocusChanged, onValueChange, onValueChanged, setTooltip, setWidget
-
Methods inherited from class io.github.mmm.ui.spi.widget.AbstractUiNativeWidgetWrapper
createDefaultStyles, getId, getStyles, getTooltip, onStylesChanged, setId, setTooltip
-
Methods inherited from class io.github.mmm.ui.spi.widget.AbstractUiNativeWidget
addListener, dispose, doDispose, doGetEnabledState, doGetVisibleState, doSetEnabledState, doSetEnabledState, doSetValidationFailure, doSetVisibleState, doSetVisibleState, ensureHandlers, fireEvent, getEventAdapter, getParent, getProgrammaticEventType, getReadOnlyFixed, getValidationFailure, hasListeners, isDisposed, isEnabled, isInitiallyVisible, isReadOnly, isValid, isVisible, isVisibleWithoutRoot, registerHandlers, removeListener, requireNotDisposed, setEnabled, setParent, setProgrammaticEventType, setReadOnly, setReadOnlyFixed, setValidationFailure, setVisible, unwrap, validateDown
-
Methods inherited from class io.github.mmm.ui.api.widget.AbstractUiWidget
isEmpty, setParent, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
setValidationFailure
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getModificationTimestamp, getParent, getReadOnlyFixed, isDisposed, isEnabled, isEnabled, isFocused, isModified, isReadOnly, isValid, isVisible, isVisible, reset, setEnabled, setEnabled, setFocused, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
-
-
-
Constructor Detail
-
FxWidgetNode
public FxWidgetNode(W widget)
The constructor.- Parameters:
widget
- theJavaFx widget
.
-
-
Method Detail
-
getTopWidget
public javafx.scene.Node getTopWidget()
- Specified by:
getTopWidget
in interfaceUiNativeWidgetWrapper<W extends javafx.scene.Node>
- Overrides:
getTopWidget
in classFxWidgetStyleable<W extends javafx.scene.Node>
- Returns:
- the top-level native widget of this wrapper. In many cases this is the same as
UiNativeWidgetWrapper.getWidget()
but in some cases this may be some kind of internal composite containing themain widget
.
-
setIdNative
protected void setIdNative(String id)
- Specified by:
setIdNative
in classAbstractUiNativeWidgetWrapper<W extends javafx.scene.Node>
- Parameters:
id
- the newID
.
-
setTooltipNative
protected void setTooltipNative(String newTooltip)
- Specified by:
setTooltipNative
in classAbstractUiNativeWidgetWrapper<W extends javafx.scene.Node>
- Parameters:
newTooltip
- the new tooltip to apply.
-
setVisibleNative
protected void setVisibleNative(boolean visible)
- Specified by:
setVisibleNative
in classAbstractUiNativeWidget
- Parameters:
visible
-true
to show this widget (in case its parent is also visible),false
to hide this widget.
-
setEnabledNative
protected void setEnabledNative(boolean enabled)
- Specified by:
setEnabledNative
in classAbstractUiNativeWidget
- Parameters:
enabled
- the newenabled state
. Usetrue
to enable andfalse
to disable this widget.
-
setReadOnlyNative
protected void setReadOnlyNative(boolean readOnly)
- Overrides:
setReadOnlyNative
in classFxWidget<W extends javafx.scene.Node>
- Parameters:
readOnly
- the new value ofAbstractUiNativeWidget.isReadOnly()
.
-
-