Class SelectionPopup<M>

Window<M>
net.datenwerke.gxtdto.client.baseex.widget.DwWindow
net.datenwerke.gxtdto.client.forms.selection.SelectionPopup<M>
Direct Known Subclasses:
ColumnSelector

public class SelectionPopup<M> extends DwWindow
  • Constructor Details

    • SelectionPopup

      public SelectionPopup(<any> allItemsStore, Map<<any>,String> displayProperty)
      Parameters:
      allItemsStore - the store with all selectable items
      displayProperty - 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

      public void setSelectionMode(SelectionMode mode)
    • setSelectedItem

      public void setSelectedItem(M model)
    • setSelectedItems

      public void setSelectedItems(List<M> models)
    • show

      public void show()
      Overrides:
      show in class DwWindow
    • 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

      public void setSelectionCallback(SelectionPopup.ItemsSelectedCallback<M> selectionCallback)
    • getSelectionCallback

      public SelectionPopup.ItemsSelectedCallback<M> getSelectionCallback()
    • getDisplayProperties

      public Map<<any>,String> getDisplayProperties()
    • setLoader

      public void setLoader(<any> loader)
    • getCancelButton

      public DwTextButton 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

      public void setCancelButton(DwTextButton cancelButton)