Class EventPanelSimpleTable<T extends DynO>

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
Direct Known Subclasses:
GoodsGroup, MaterialClass, MaterialItemType, MeterBrand, MobileErrorLog, SearchCrewShellType, SearchDataCollectionConverterSheetSubset, SearchDataCollectionConverterTemplateSubset, SearchDataCollectionOptionsGroup, SearchDataCollectionType, SearchMultistageConfiguration, SearchPermitType, SerializedMaterialModel, Structure, TechnicalObjectState, TMeasureUnit, WorkloadDistributionRule, WorkOrderOperationType

public abstract class EventPanelSimpleTable<T extends DynO> extends Container
New version of PanelSimpleTable that works only with events. Attributes usually used inside the xml are been replaced by annotations.
Since:
9.3
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • EventPanelSimpleTable

      public EventPanelSimpleTable()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that contains the Container. It calls the onOpen(o) method of all the Container's childrens.
      If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
      The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with the params passed as parameters.
      For example it's possible to retrieve and use the params in this way: HashGetter hg = getWM().getRouteParams();
      String val1 = hg.getString("key1",null);
      String val2 = hg.getString("key2",null);
      Overrides:
      onOpen in class Container
      Parameters:
      o - Object received from the caller
    • onQuery

      public boolean onQuery(UIMessage uim)
      Main event for search action. It retrieves the search params from the uim and hide the search panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • search

      protected void search() throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • buildExtractor

      protected DynOExtractor<T> buildExtractor(Class<?> extractorClass)
    • onNew

      public boolean onNew(UIMessage uim)
      Event for show a panel to insert a new entity.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onRowClick

      public boolean onRowClick(UIMessage uim)
      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.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onRowMenu

      public boolean onRowMenu(UIMessage uim)
      Event launched when a user clicks on a table row menu button.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • addRowMenuItems

      protected void addRowMenuItems(Menu menu)
      Method for manage the result table row menu items.
      Parameters:
      menu - the menu displayed
    • onEdit

      public boolean onEdit(UIMessage uim)
      Event launched for edit an entity.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onView

      public boolean onView(UIMessage uim)
      Event launched for view an entity.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • isEditingEnabled

      protected boolean isEditingEnabled()
      Evaluate the annotation EventPanelSimpleTable.EditPermission to define if the entity is editable or not.
      Returns:
      true, if is editing enabled
    • onSave

      public boolean onSave(UIMessage uim)
      Event launched when saving an entity. After the saving action, invalidate the defined StaticView and refresh the result table.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onDelete

      public boolean onDelete(UIMessage uim)
      Event launched when deleting an entity from result table row menu.
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • onShowSearchPanel

      public boolean onShowSearchPanel(UIMessage uim)
      Event for show the search panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true
    • onHideSearchPanel

      public boolean onHideSearchPanel(UIMessage uim)
      Event for hide the search panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • dateRangesPresets

      protected DateRangePresets dateRangesPresets()
      Get the date preset manager.
      Returns:
      the date range presets
    • onShowDatePresets

      public boolean onShowDatePresets(UIMessage uim)
      Show the popup menu with the data preset values.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onClearDatePresets

      public boolean onClearDatePresets(UIMessage uim)
      Clear the value of the selected Date field.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onApplyPreset

      public boolean onApplyPreset(UIMessage uim)
      Apply the preset date range to a date filter.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onRefresh

      public boolean onRefresh(UIMessage uim)
      Event for refresh action.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful