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
Direct Known Subclasses:
CVViewMeter, overit.geocallapp.wfm.schedulazione.cristallizzazione.monitorattivita.pianogiornaliero.supporto.DailyPlanCardView

@Component public class CardViewWfm extends CardView
See Also:
  • Field Details

  • Constructor Details

    • CardViewWfm

      public CardViewWfm()
  • Method Details

    • setTITLEINFOICON

      public void setTITLEINFOICON(String s)
    • setTITLEINFOEVENT

      public void setTITLEINFOEVENT(String s)
    • setEXPANDABLECARD

      public void setEXPANDABLECARD(String s)
    • setICONS

      public void setICONS(String s)
    • setICONEVENTS

      public void setICONEVENTS(String s)
    • setCHANGEWITHOUTTRANSITION

      public void setCHANGEWITHOUTTRANSITION(String s)
    • 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 TableView
      Parameters:
      o - Object received from the caller
    • getCardHtml

      protected org.apache.ecs.Element getCardHtml(EntitySet es, int index, HashGetter params)
      Description copied from class: CardView
      This method uses the html defined into CDATA child to render the content of the cards. If you haven't defined any CDATA child, or you want to generate a much more custom template, override this method with the logic that generates the html code necessary to render the content of a card
      Overrides:
      getCardHtml in class CardView
      Parameters:
      es - The EntitySet to which the element belongs
      index - The index of the card
      params - The map of the row rendered as a card
      Returns:
      The html code of a single card
    • getTitleInfoIcon

      protected org.apache.ecs.Element getTitleInfoIcon(int index, HashGetter params)
    • getCardTitle

      protected String getCardTitle(int index, HashGetter params)
    • getCardSubTitle

      protected String getCardSubTitle(int index, HashGetter params)
    • getCardTitleIcon

      protected org.apache.ecs.Element getCardTitleIcon(EntitySet es, int index, HashGetter params)
    • buildContent

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

      protected org.apache.ecs.Element buildExpandableContent(EntitySet es, int index, HashGetter params)
    • onMobileCardViewIconPress

      public boolean onMobileCardViewIconPress(UIMessage uim)
    • onToggleCardExpansion

      public boolean onToggleCardExpansion(UIMessage uim)
    • onExpandAll

      public boolean onExpandAll()
      Toggles expansion state of all cards.
      Returns:
      true to indicate the event was handled
    • onToggleCardSelection

      public boolean onToggleCardSelection(UIMessage uim)
    • onToggleCardSingleSelection

      public boolean onToggleCardSingleSelection(UIMessage uim)
    • buildExpandableAreaTR

      protected org.apache.ecs.html.TR buildExpandableAreaTR(EntitySet es, int index, HashGetter params)
    • isCardExpanded

      protected boolean isCardExpanded(HashGetter params)
    • isCardExpanded

      protected boolean isCardExpanded(int index)
    • buildExpandButtonTR

      protected org.apache.ecs.html.TR buildExpandButtonTR(EntitySet es, int index, HashGetter params)
    • buildExpandCollapseButton

      protected org.apache.ecs.Element buildExpandCollapseButton(HashGetter params, int index)
    • buildBodyTR

      protected org.apache.ecs.html.TR buildBodyTR(EntitySet es, int index, HashGetter params)
    • buildIcons

      protected org.apache.ecs.Element buildIcons(EntitySet es, int index, HashGetter params)
    • addCustomCss

      protected void addCustomCss()
    • buildCustomCss

      protected void buildCustomCss(StringBuilder css)
    • hasIcons

      protected boolean hasIcons()
    • sendEventString

      protected String sendEventString(int row, String event, String params)
    • contentLine

      protected org.apache.ecs.html.Div contentLine(String content)
    • contentLine

      protected org.apache.ecs.html.Div contentLine(org.apache.ecs.Element icon, String label, String content)
    • contentLine

      protected org.apache.ecs.html.Div contentLine(String label, String content)
    • buildColorIcon

      protected org.apache.ecs.html.Div buildColorIcon(String color)
    • changedCardNoTransition

      public void changedCardNoTransition(int index)
    • calculateFrameId

      protected String calculateFrameId()
    • isRecordSelected

      protected boolean isRecordSelected(int row)
    • getInfoIcon

      public org.apache.ecs.html.Div getInfoIcon(String tooltip)
    • setNewDBViewListener

      public void setNewDBViewListener(CardViewWfm.NewDBViewListener newDBViewListener)
    • onNewDBView

      protected void onNewDBView(DBView dbv)
      Overrides:
      onNewDBView in class ServerTableView
    • isSmartfone

      protected boolean isSmartfone()
    • setSHOWSELECTIONSUMMARY

      public void setSHOWSELECTIONSUMMARY(String s)
      Enables or disables the selection summary. Value is stored and applied in onOpen().
      Parameters:
      s - String value to enable/disable selection summary
    • setFULLHEIGHTRESIZER

      public void setFULLHEIGHTRESIZER(String s)
      Enables or disables the full height resizer. Value is stored and applied in onOpen().
      Parameters:
      s - String value to enable/disable full height resizer
    • updateSelectionSummary

      public void updateSelectionSummary()
      Updates the selection summary if enabled and the CardView implements SelectionSummaryProvider. This method should be called when the selection changes.
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Override to reset the selectionSummaryShown flag and update summary.
      Overrides:
      getHtml in class TableView
      Parameters:
      es - The EntitySet
      Returns:
      The HTML element
    • getFrameHtml

      public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change change, EntitySet es)
      Override to handle summary footer addition via Change.
      Specified by:
      getFrameHtml in interface AjaxableComponent
      Overrides:
      getFrameHtml in class CardView
      Parameters:
      change - The Change object
      es - The EntitySet
      Returns:
      The frame HTML element
    • buildDisplayScript

      public void buildDisplayScript(StringBuilder sb)
      Override to handle full height resizer functionality.
      Overrides:
      buildDisplayScript in class CardView
      Parameters:
      sb - The StringBuilder to append the script to
    • getDefaultChange

      public overit.geocall.ux.servlet.processor.Change getDefaultChange()
      Description copied from class: TableView
      Defines the default Change object for the table.
      Implements the AjaxableComponent interface.
      Specified by:
      getDefaultChange in interface AjaxableComponent
      Overrides:
      getDefaultChange in class CardView
      Returns:
      The default Change object that defines the default morphing type of the table
    • addJavascriptDDEvents

      protected void addJavascriptDDEvents(org.apache.ecs.html.Div item, int index)
      Override to add selection before drag and drop (like ServerGridViewPG). This method is called by the base CardView class to add drag events to the container.
      Overrides:
      addJavascriptDDEvents in class CardView