N
- the business controlNN
- the container typeM
- the model elementpublic abstract class WLayoutedWidgetImpl<N,NN extends javafx.scene.Node,M extends org.eclipse.e4.ui.model.application.ui.MUIElement> extends WWidgetImpl<N,M> implements WLayoutedWidget<M>
WLayoutedWidget
implementationsWWidget.WidgetState
WDragTargetWidget.DropData, WDragTargetWidget.DropType
Modifier and Type | Field and Description |
---|---|
protected @NonNull Logger |
logger
the logger to use
|
state
Constructor and Description |
---|
WLayoutedWidgetImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addStyleClasses(java.util.List<java.lang.String> classnames)
Add a list of style class names used for a CSS class-Selector in your css
|
void |
addStyleClasses(java.lang.String... classnames)
A styleclass names used for a CSS class-Selector in your css
|
protected @NonNull javafx.scene.Node |
createStaticLayoutNode()
Create the static layout node
|
protected @NonNull javafx.scene.layout.Pane |
createStaticPane()
Create the static layout pane
|
@Nullable WCallback<WDragTargetWidget.DropData,java.lang.Void> |
getDropDroppedCallback() |
@NonNull javafx.scene.Node |
getStaticLayoutNode() |
double |
getWeight() |
protected abstract NN |
getWidgetNode() |
void |
removeStyleClasses(java.util.List<java.lang.String> classnames)
Add a list of style class names used for a CSS class-Selector in your css
|
void |
removeStyleClasses(java.lang.String... classnames)
A styleclass names used for a CSS class-Selector in your css
|
void |
setDragDroppedCallback(@Nullable WCallback<WDragTargetWidget.DropData,java.lang.Void> callback)
Callback to invoke when element is dropped
|
void |
setStyleId(java.lang.String id)
Set a style id used for an CSS ID-Selector in your css
|
protected void |
setUserData(WWidgetImpl<N,M> widget)
Associate user data with the widget
|
activate, bindProperties, bindProperty, createWidget, deactivate, doCleanup, fireChange, getDomElement, getWidget, getWidgetState, init, isActive, registerActivationCallback, setDomElement, setPropertyChangeHandler, setWidgetState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, deactivate, getDomElement, getWidget, getWidgetState, isActive, registerActivationCallback, setDomElement, setPropertyChangeHandler, setWidgetState
protected abstract NN getWidgetNode()
public @NonNull javafx.scene.Node getStaticLayoutNode()
getStaticLayoutNode
in interface WLayoutedWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
protected @NonNull javafx.scene.Node createStaticLayoutNode()
public final void setDragDroppedCallback(@Nullable WCallback<WDragTargetWidget.DropData,java.lang.Void> callback)
WDragTargetWidget
setDragDroppedCallback
in interface WDragTargetWidget
callback
- the callbackpublic @Nullable WCallback<WDragTargetWidget.DropData,java.lang.Void> getDropDroppedCallback()
getDropDroppedCallback
in interface WDragTargetWidget
protected @NonNull javafx.scene.layout.Pane createStaticPane()
public void addStyleClasses(java.util.List<java.lang.String> classnames)
WWidget
addStyleClasses
in interface WWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
classnames
- list of classnamespublic void addStyleClasses(java.lang.String... classnames)
WWidget
addStyleClasses
in interface WWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
classnames
- the classnames to addpublic void removeStyleClasses(java.util.List<java.lang.String> classnames)
WWidget
removeStyleClasses
in interface WWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
classnames
- list of classnamespublic void removeStyleClasses(java.lang.String... classnames)
WWidget
removeStyleClasses
in interface WWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
classnames
- the classnames to addpublic void setStyleId(java.lang.String id)
WWidget
setStyleId
in interface WWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
protected void setUserData(WWidgetImpl<N,M> widget)
WWidgetImpl
setUserData
in class WWidgetImpl<N,M extends org.eclipse.e4.ui.model.application.ui.MUIElement>
widget
- the widgetpublic double getWeight()
getWeight
in interface WLayoutedWidget<M extends org.eclipse.e4.ui.model.application.ui.MUIElement>