All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified, Tool, HTMLRenderable

@Component @Configurable public class CardDuration extends CardField
CardView field to represent an amount of minutes as Day, Hours and Minutes. Similar to ColumnDuration but for cards instead of tables. Examples: - 90 minutes → "1h 30m" - 1500 minutes → "1d 1h" - 0 minutes → "" (if showIfZero=false) or "0m" (if showIfZero=true)
Since:
21.0
See Also:
GCApi:
component
  • Field Details

    • showIfZero

      protected boolean showIfZero
    • showDays

      protected boolean showDays
  • Constructor Details

    • CardDuration

      public CardDuration()
  • Method Details

    • setSHOWIFZERO

      public void setSHOWIFZERO(String s)
      Sets whether to show zero durations (XML framework method)
      Parameters:
      s - String value ("true"/"false") to control zero duration display
    • setSHOWDAYS

      public void setSHOWDAYS(String s)
      Sets whether to show days in the duration (XML framework method)
      Parameters:
      s - String value ("true"/"false") to control days display
    • getFormattedValue

      protected String getFormattedValue()
      Implementation of getFormattedValue for CardDuration. Returns the formatted duration value.
      Specified by:
      getFormattedValue in class CardField
      Returns:
      The formatted value as string