N - the native widgetI - the native stack item widgetIC - the native stack item content widgetpublic interface WStack<N,I,IC> extends WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MPartStack>, WMinMaxableWidget, WDragSourceWidget, WDragTargetWidget
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WStack.WStackItem<I,IC>
Abstraction representing an item in the stack
|
WWidget.WidgetStateWDragTargetWidget.DropData, WDragTargetWidget.DropTypeWMinMaxableWidget.WMinMaxStateWDragSourceWidget.DragData| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_PAGINATION
Tag to use a pagination control
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(@NonNull WStack.WStackItem<I,IC> item)
Append a stack item
|
void |
addItems(int index,
@NonNull java.util.List<WStack.WStackItem<I,IC>> items)
Insert stack items at the given index
|
void |
addItems(@NonNull java.util.List<WStack.WStackItem<I,IC>> items)
Append multiple stack items
|
int |
getItemCount() |
@NonNull java.util.List<WStack.WStackItem<I,IC>> |
getItems() |
@NonNull java.lang.Class<? extends WStack.WStackItem<I,IC>> |
getStackItemClass() |
int |
indexOf(@NonNull WStack.WStackItem<I,IC> item)
The index of the item
|
void |
removeItems(@NonNull java.util.List<WStack.WStackItem<I,IC>> items)
Remove items
|
void |
selectItem(int idx)
Select the item at a given index
|
void |
setKeySelectedItemCallback(@NonNull WCallback<WStack.WStackItem<I,IC>,java.lang.Void> selectedItemCallback)
Set the callback to be used when the item is selected by the keyboard
|
void |
setMouseSelectedItemCallback(@NonNull WCallback<WStack.WStackItem<I,IC>,java.lang.Void> selectedItemCallback)
Set the callback to be used when the item is selected by the mouse
|
getStaticLayoutNode, getWeightactivate, addStyleClasses, addStyleClasses, deactivate, getDomElement, getWidget, getWidgetState, isActive, registerActivationCallback, removeStyleClasses, removeStyleClasses, setDomElement, setPropertyChangeHandler, setStyleId, setWidgetStategetDropDroppedCallback, setDragDroppedCallbacksetMinMaxCallback, setMinMaxStatesetDragStartCallbackstatic final java.lang.String TAG_PAGINATION
@NonNull java.lang.Class<? extends WStack.WStackItem<I,IC>> getStackItemClass()
void addItem(@NonNull WStack.WStackItem<I,IC> item)
item - the itemvoid addItems(@NonNull java.util.List<WStack.WStackItem<I,IC>> items)
items - the items to appendvoid addItems(int index,
@NonNull java.util.List<WStack.WStackItem<I,IC>> items)
index - the indexitems - the items to addvoid selectItem(int idx)
idx - the index to selectint indexOf(@NonNull WStack.WStackItem<I,IC> item)
item - the item-1 if not found@NonNull java.util.List<WStack.WStackItem<I,IC>> getItems()
void removeItems(@NonNull java.util.List<WStack.WStackItem<I,IC>> items)
items - the items to removevoid setMouseSelectedItemCallback(@NonNull WCallback<WStack.WStackItem<I,IC>,java.lang.Void> selectedItemCallback)
selectedItemCallback - the callbackvoid setKeySelectedItemCallback(@NonNull WCallback<WStack.WStackItem<I,IC>,java.lang.Void> selectedItemCallback)
selectedItemCallback - the callbackint getItemCount()