- java.lang.Object
-
- io.github.mmm.ui.api.widget.AbstractUiWidget
-
- All Implemented Interfaces:
EventSource<UiEvent,UiEventListener>
,AttributeReadEnabled
,AttributeReadId
,AttributeReadValid
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWriteReadOnly
,AttributeWriteTooltip
,AttributeWriteVisible
,UiWidget
- Direct Known Subclasses:
AbstractUiCustomWidget
,AbstractUiNativeWidget
public abstract class AbstractUiWidget extends Object implements UiWidget
Abstract base implementation ofUiWidget
.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractUiWidget()
The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static boolean
isEmpty(String value)
Null-safe variant ofString.isEmpty()
for convenience.protected abstract void
setParent(UiComposite<?> parent)
protected static void
setParent(UiWidget widget, UiComposite<?> parent)
protected abstract UiNativeWidget
unwrap()
protected <T extends UiNativeWidget>
Tunwrap(UiWidget widget)
-
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.AttributeReadId
getId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltip
-
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, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isModified, isReadOnly, isValid, isVisible, isVisible, reset, setEnabled, setEnabled, setFocused, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
-
-
-
Method Detail
-
setParent
protected abstract void setParent(UiComposite<?> parent)
- Parameters:
parent
- the newparent
.
-
setParent
protected static void setParent(UiWidget widget, UiComposite<?> parent)
- Parameters:
widget
- theUiWidget
.parent
- the newparent
.- See Also:
setParent(UiComposite)
-
unwrap
protected abstract UiNativeWidget unwrap()
- Returns:
- the unwrapped widget.
- See Also:
UiCustomWidget.getDelegate()
-
unwrap
protected <T extends UiNativeWidget> T unwrap(UiWidget widget)
-
isEmpty
public static boolean isEmpty(String value)
Null-safe variant ofString.isEmpty()
for convenience.
-
-