Class SelectionPopup<M>
Window<M>
net.datenwerke.gxtdto.client.baseex.widget.DwWindow
net.datenwerke.gxtdto.client.forms.selection.SelectionPopup<M>
- Direct Known Subclasses:
ColumnSelector
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.datenwerke.gxtdto.client.baseex.widget.DwWindow
DwWindow.OnButtonClickHandler -
Field Summary
Fields inherited from class net.datenwerke.gxtdto.client.baseex.widget.DwWindow
CSS_BBAR, CSS_BODY_NAME, CSS_CONTENT_NAME, CSS_HEADER_NAME, CSS_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSelectionPopup(<any> store, <any> nameProvider) SelectionPopup(<any> allItemsStore, Map<<any>, String> displayProperty) SelectionPopup(<any> allItemsStore, Map<<any>, String> displayPropertyLeft, Map<<any>, String> displayPropertyRight) -
Method Summary
Modifier and TypeMethodDescriptionProvides access to the cancel button of the selection popup.voidloadData()voidsetCancelButton(DwTextButton cancelButton) voidsetLoader(<any> loader) voidsetSelectedItem(M model) voidsetSelectedItems(List<M> models) voidsetSelectionCallback(SelectionPopup.ItemsSelectedCallback<M> selectionCallback) voidvoidshow()voidCaptures the current selection of items stored in the `selectedItemsStore` and creates a snapshot, storing it in the `originalSelection` field.Methods inherited from class net.datenwerke.gxtdto.client.baseex.widget.DwWindow
add, add, addCancelButton, addCancelButton, addClassName, addSpecButton, addSpecButton, addSubmitButton, getCssBodyName, getCssContentName, getCssHeaderName, getCssName, newAutoSizeDialog, newAutoSizeDialog, setCenterOnShow, setHeaderIcon, setSize, setSizeViewportConstrained
-
Constructor Details
-
SelectionPopup
- Parameters:
allItemsStore- the store with all selectable itemsdisplayProperty- a list with properties to be displayed
-
SelectionPopup
public SelectionPopup(<any> allItemsStore, Map<<any>, String> displayPropertyLeft, Map<<any>, String> displayPropertyRight) - Parameters:
allItemsStore- the store with all selectable items
-
SelectionPopup
public SelectionPopup(<any> store, <any> nameProvider)
-
-
Method Details
-
loadData
public void loadData() -
setSelectionMode
-
setSelectedItem
-
setSelectedItems
-
show
public void show() -
snapshotOriginalSelection
public void snapshotOriginalSelection()Captures the current selection of items stored in the `selectedItemsStore` and creates a snapshot, storing it in the `originalSelection` field. This method helps preserve the state of the selection so it can be restored or referenced later. -
setSelectionCallback
-
getSelectionCallback
-
getDisplayProperties
-
setLoader
public void setLoader(<any> loader) -
getCancelButton
Provides access to the cancel button of the selection popup.- Returns:
- the cancel button, represented as a DwTextButton instance. This button is typically used to close or cancel the selection popup without applying changes.
-
setCancelButton
-