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 MeterReadings extends Panel
Panel that shows the measures given a BOMeter
Since:
12.0
See Also:
  • Field Details

    • meter

      protected BOMeter meter
    • fTemplate

      protected Form fTemplate
    • addressId

      protected Long addressId
    • sbSave

      protected SubmitButton sbSave
    • idTemplate

      protected Long idTemplate
    • tvReadings

      protected TableView tvReadings
  • Constructor Details

    • MeterReadings

      public MeterReadings()
  • Method Details

    • show

      public void show(Object o)
      Overrides:
      show in class Panel
      Parameters:
      o - Object saved as a global variable of the panel
    • initComponents

      protected void initComponents()
    • checkMeter

      protected boolean checkMeter()
      Check that the meter where yo uare calling the panel from in valid, because you can create a meter and not save it.
      Returns:
      a boolean representing the validity of the meter by checking its id.
    • loadData

      protected void loadData()
    • checkIdTemplate

      protected void checkIdTemplate()
      Method that check if the idTemplate has been set by user. If is not set, this method will disable the button save. BEcause you can't save a null template on a meter.
    • onSave

      public boolean onSave(UIMessage uim)
    • onSelectTemplate

      public boolean onSelectTemplate(UIMessage uim)
      This method is a listener for the select template input that check you don't assign a null template and it enable the save button if the value you selected is valid.
      Parameters:
      uim -
      Returns: