All Implemented Interfaces:
Serializable, EntityContainer, overit.geocall.clipboard.XClip, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, DAViewManager, DBViewManager, DraggableDroppable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class CVViewMeter extends CardViewWfm
Custom AI component to draw a card with meter images on the left and text info of the predictions on the right.
Since:
12.0
See Also:
  • Field Details

    • dbViewElements

      protected DBView dbViewElements
    • idxElementShown

      protected int idxElementShown
  • Constructor Details

    • CVViewMeter

      public CVViewMeter()
  • Method Details

    • getCardTitle

      protected String getCardTitle(int index, HashGetter params)
      Overrides:
      getCardTitle in class CardViewWfm
    • setIdxElementShown

      public void setIdxElementShown(int idxElementShown)
    • buildExpandableContent

      protected org.apache.ecs.Element buildExpandableContent(EntitySet es, int index, HashGetter params)
      Overrides:
      buildExpandableContent in class CardViewWfm
      Parameters:
      es -
      index -
      params -
      Returns:
    • buildContent

      protected org.apache.ecs.Element buildContent(EntitySet es, int index, HashGetter params)
      Description copied from class: CardViewWfm
      Override buildContent to use CardLayout for the main card content Uses "expanded" layout if card is expanded, "compact" layout otherwise
      Overrides:
      buildContent in class CardViewWfm
      Parameters:
      es - The EntitySet
      index - The card index
      params - The parameters HashGetter
      Returns:
      The main card content element
    • buildFeaturesHtml

      protected org.apache.ecs.Element buildFeaturesHtml(Long valueActual, Long valueAI, String labelAI, String labelActual)
    • buildSign

      protected org.apache.ecs.Element buildSign(Long valueActual, Long valueAI, String labelAI, String labelActual)
    • loadImage

      protected String loadImage(int index)
    • buildImageHtml

      protected org.apache.ecs.Element buildImageHtml(String uuid, Window w)
    • buildImageHtml

      protected org.apache.ecs.Element buildImageHtml(String uuid, boolean useDefaultImage, Window w)
    • getCards

      protected List<org.apache.ecs.Element> getCards(EntitySet es, int from, int to)
      Overrides:
      getCards in class CardView
      Parameters:
      es - The EntitySet to which the element belongs
      from - start page index
      to - end page index
      Returns:
      the list containing the html elements representing the cards contained within a page's range.
    • onNext

      public boolean onNext(UIMessage uim)
      Force reload of the card and it adds +1 to the index so it will load the next row in the dbview containing the photos.
      Parameters:
      uim - Not used
      Returns:
      true
    • onBack

      public boolean onBack(UIMessage uim)
      Force reload of the card and it adds -1 to the index so it will load the previous row in the dbview containing the photos.
      Parameters:
      uim - Not used
      Returns:
      true