Class DataCollectionOptionGroupOptions

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

public class DataCollectionOptionGroupOptions extends Panel
Panel for displaying and selecting data collection option group options. Provides a table view for browsing available options and a callback mechanism for option selection.
See Also:
  • Field Details

  • Constructor Details

    • DataCollectionOptionGroupOptions

      public DataCollectionOptionGroupOptions()
  • Method Details

    • setConfirmFunction

      public void setConfirmFunction(Function<DataCollectionNodeSelectionOption,Boolean> confirmFunction)
      Sets the confirmation function to be called when an option is selected.
      Parameters:
      confirmFunction - the function to execute on option selection
    • show

      public void show(Long optionsGroupId)
      Shows the panel and loads the options for the specified options group.
      Overrides:
      show in class Panel
      Parameters:
      optionsGroupId - the ID of the options group to display
    • addSelectionOptionsGroup

      protected void addSelectionOptionsGroup(Long optionsGroupId)
      Loads and displays the selection options for the specified options group.
      Parameters:
      optionsGroupId - the ID of the options group to load
    • onSelectAndHide

      public boolean onSelectAndHide(UIMessage uim)
      Handles single selection event from the table view and hides the panel. Applies the confirm function to the selected option and hides the panel.
      Parameters:
      uim - the UI message containing the selected row information
      Returns:
      true if the event was handled successfully