Class SelectionPanelBundleOperationOrdering

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable, SelectionPanel.SelectionPanelMaster

public class SelectionPanelBundleOperationOrdering extends SelectionPanel implements SelectionPanel.SelectionPanelMaster
Panel that allows to select bundle operation orderings.
Since:
21.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • SelectionPanelBundleOperationOrdering

      public SelectionPanelBundleOperationOrdering()
  • Method Details

    • setConfirmConsumer

      public void setConfirmConsumer(Consumer<Boolean> confirmConsumer)
      Sets the consumer function to handle bundling rule detail ordering selection confirmation. The consumer receives a boolean value indicating when confirmation occurs.
      Parameters:
      confirmConsumer - the Consumer to handle the confirmation
    • show

      public void show(Serializable obj)
      Shows the panel. SelectPanel show check if obj is an instance of InputDecoder, MultiDecoder or InputMultiDecoder or if the panel implements SelectionPanelMaster. Since this panel implements SelectionPanelMaster, this method is overridden to pass this instance as the object to show.
      Overrides:
      show in class SelectionPanel
      Parameters:
      obj - the object to show
    • onConfirm

      public boolean onConfirm(HashGetter hg)
      UI event handler to confirm the selection of bundle operation orderings.
      Overrides:
      onConfirm in class SelectionPanel
      Parameters:
      hg - the HashGetter containing the event data
      Returns:
      true to break the responsibility chain, false otherwise
    • setStvRuleOrderings

      public void setStvRuleOrderings(ServerTableView stvRuleOrderings)
      Sets the rule orderings server table view.
      Parameters:
      stvRuleOrderings - the ServerTableView rule orderings
    • setDecoding

      public void setDecoding(HashGetter... decodedValues)
      Description copied from interface: SelectionPanel.SelectionPanelMaster
      This method will be call from the SelctionPanel when the selection is confirmed.
      Specified by:
      setDecoding in interface SelectionPanel.SelectionPanelMaster
      Parameters:
      decodedValues - the new decoding
    • getKeyName

      public String getKeyName()
      Specified by:
      getKeyName in interface SelectionPanel.SelectionPanelMaster
      Returns:
      the key field name to use to identify a record
    • getSelectSet

      public Set<?> getSelectSet()
      Specified by:
      getSelectSet in interface SelectionPanel.SelectionPanelMaster
      Returns:
      a Set with the ids of the record already selected. Is used to populate the already selected record table when the panel will be shown
    • getExcludedSet

      public Set<?> getExcludedSet()
      Specified by:
      getExcludedSet in interface SelectionPanel.SelectionPanelMaster
      Returns:
      a Set with the ids of the records that must be excluded. The given ids records will not be shown in the availables table