Class ResourceForecastHeaderSearch

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

@UI(searchPanel="rightPanel", resultTable="stvSearchResourceForecastHeaderResults", searchForm="fSearchResourceForecastHeader") public class ResourceForecastHeaderSearch extends BaseSearchContainer<BOResourceForecastHeader>
See Also:
  • Field Details

    • resourceForecastHeaderToCancel

      protected Long resourceForecastHeaderToCancel
    • forecastHeaderSelected

      protected Long forecastHeaderSelected
    • panelExport

      protected Panel panelExport
    • pbFilterTab

      protected PlainButton pbFilterTab
    • pbReportTab

      protected PlainButton pbReportTab
    • ncFilter

      protected NullComponent ncFilter
    • ncReport

      protected NullComponent ncReport
    • FILENAME

      protected static final String FILENAME
      See Also:
  • Constructor Details

    • ResourceForecastHeaderSearch

      public ResourceForecastHeaderSearch()
  • Method Details

    • setupWindow

      protected void setupWindow()
      Description copied from class: BaseSearchContainer
      Defines the initial page aspect setting the visibility field in the search form and launches the main search.
      Specified by:
      setupWindow in class BaseSearchContainer<BOResourceForecastHeader>
    • onRowClick

      public boolean onRowClick(UIMessage uim)
      Description copied from class: BaseSearchContainer
      Event launched when a user clicks on a table row. It opens a panel with the entity details, evaluating if can be edited or not.
      Overrides:
      onRowClick in class BaseSearchContainer<BOResourceForecastHeader>
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onNewResourceForecastHeader

      public boolean onNewResourceForecastHeader(UIMessage uim)
    • onEdit

      public boolean onEdit(UIMessage uim)
      Event launched to edit a forecast.
      Overrides:
      onEdit in class BaseSearchContainer<BOResourceForecastHeader>
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onView

      public boolean onView(UIMessage uim)
      Event launched to view a forecast.
      Overrides:
      onView in class BaseSearchContainer<BOResourceForecastHeader>
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • addRowMenuItems

      protected void addRowMenuItems(Menu menu)
      Description copied from class: BaseSearchContainer
      Method used to manage the result table row menu items.
      Overrides:
      addRowMenuItems in class BaseSearchContainer<BOResourceForecastHeader>
      Parameters:
      menu - the menu displayed
    • onSave

      public boolean onSave(UIMessage uim)
    • onDetail

      public boolean onDetail(UIMessage uim)
      Event invoked when the user want to go to Forecast Details page
      Parameters:
      uim -
      Returns:
    • onConfirm

      public boolean onConfirm(UIMessage uim)
    • onConfirmForecast

      public boolean onConfirmForecast(UIMessage uim)
      Event invoked when the user want to confirm the forecast resource.
      Parameters:
      uim -
      Returns:
    • onDelete

      public boolean onDelete(UIMessage uim)
      UI event handler to cancel the resource forecast header.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • showResourceForecastHeaderCancellationAlert

      protected void showResourceForecastHeaderCancellationAlert()
    • onConfirmResourceForecastHeaderCancellation

      public boolean onConfirmResourceForecastHeaderCancellation(UIMessage uim)
    • onCopyResourceForecast

      public boolean onCopyResourceForecast(UIMessage uim)
      Event launched to show the massive copy-and-paste panel of a resource forecast header.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCopyResourceForecastHeader

      public boolean onCopyResourceForecastHeader(UIMessage uim)
      Event launched to refresh the STV, once the pasted BOResourceForecastHeader object has been inserted.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onExportXLSX

      public boolean onExportXLSX(UIMessage uim)
      UI event handler to export/download an XLSX file representing the row (i.e., a BOResourceForecastHeader object with all its data.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onOkNameExport

      public void onOkNameExport(UIMessage uim)
      UI event handler to confirm the export name.
      Parameters:
      uim - the UIMessage
    • executeExportXlsx

      protected void executeExportXlsx(Long forecastHeaderSelected, String fileName)
    • onCompare

      public boolean onCompare(UIMessage uim)
      UI event handler to go to Forecast Resource Comparator page
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onUploadFromFile

      public boolean onUploadFromFile(UIMessage uim)
      UI event handler to go to the import page
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onFilterTab

      public boolean onFilterTab(UIMessage uim)
      UI event handler to show filter tab.
      Overrides:
      onFilterTab in class BaseSearchContainer<BOResourceForecastHeader>
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onReportTab

      public boolean onReportTab(UIMessage uim)
      UI event handler to show the report tab.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.