public interface LayoutDragComponent
Modifier and Type | Field and Description |
---|---|
static DndDataJSONConverter |
converter |
static String |
FORMAT |
Modifier and Type | Method and Description |
---|---|
default Optional<com.google.gwt.user.client.ui.IsWidget> |
getContentPart(String partId,
RenderingContext componentContext)
Get a specific part of this widget.
|
default String |
getDragComponentIconClass()
The CSS classes used to display the component's icon on the drag palette.
|
String |
getDragComponentTitle()
The title displayed in the component drag palette.
|
com.google.gwt.user.client.ui.IsWidget |
getPreviewWidget(RenderingContext ctx)
Widget shown during the layout edition.
|
default List<PropertyEditorCategory> |
getPropertyCategories(LayoutComponent layoutComponent)
Get the list of properties (grouped into categories) supported by this drag component.
|
com.google.gwt.user.client.ui.IsWidget |
getShowWidget(RenderingContext ctx)
The widget that display and provides all the component features.
|
default void |
removeCurrentWidget(RenderingContext ctx)
A command called before the widget was removed from layout.
|
static final String FORMAT
static final DndDataJSONConverter converter
default String getDragComponentIconClass()
default List<PropertyEditorCategory> getPropertyCategories(LayoutComponent layoutComponent)
LayoutComponent
instance passed as a parameter.
This drag component can use this property edition/storage features to customize its display and/or behaviour.
String getDragComponentTitle()
com.google.gwt.user.client.ui.IsWidget getPreviewWidget(RenderingContext ctx)
Notice this is just a widget preview, so not all the component features need to be available at preview time. Just a widget that gives the user an idea of how the final component might look like.
ctx
- The context for the component being renderedcom.google.gwt.user.client.ui.IsWidget getShowWidget(RenderingContext ctx)
ctx
- The context for the component being rendereddefault void removeCurrentWidget(RenderingContext ctx)
ctx
- The context for the component being rendereddefault Optional<com.google.gwt.user.client.ui.IsWidget> getContentPart(String partId, RenderingContext componentContext)
partId
- componentContext
- Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.