Class CDateTimeBuilder

java.lang.Object
org.eclipse.nebula.widgets.cdatetime.CDateTimeBuilder

public class CDateTimeBuilder
extends java.lang.Object
Contains factory methods for the CDateTime widget.
  • Constructor Details

  • Method Details

    • getCompact

      public static CDateTimeBuilder getCompact()
      Returns:
      a compact version of the widget.
    • getStandard

      public static CDateTimeBuilder getStandard()
      Returns:
      the standard version of the widget.
    • getBodies

      public java.util.List<Body> getBodies()
    • getFooterAlignment

      public int getFooterAlignment()
    • getFooterEqualColumns

      public boolean getFooterEqualColumns()
    • getFooters

      public java.util.List<Footer> getFooters()
    • getHeaderAlignment

      public int getHeaderAlignment()
    • getHeaderEqualColumns

      public boolean getHeaderEqualColumns()
    • getHeaders

      public java.util.List<Header> getHeaders()
    • hasBody

      public boolean hasBody()
    • hasBody

      public boolean hasBody​(int type)
    • hasFooter

      public boolean hasFooter()
    • hasFooter

      public boolean hasFooter​(int type)
    • hasHeader

      public boolean hasHeader()
    • hasHeader

      public boolean hasHeader​(int type)
    • getMinDate

      public java.util.Calendar getMinDate()
      Returns:
      Returns a clone of the minDate or null.
    • getMaxDate

      public java.util.Calendar getMaxDate()
      Returns:
      Returns a clone of the maxDate or null.
    • setBody

      public void setBody​(Body... attrs)
    • setFields

      public void setFields​(int[] calendarFields)
    • setFooter

      public void setFooter​(Footer... attrs)
    • setFooter

      public void setFooter​(int alignment, boolean equalColumns, Footer... attrs)
    • setHeader

      public void setHeader​(Header... attrs)
    • setHeader

      public void setHeader​(int alignment, boolean equalColumns, Header... attrs)
    • setMinDate

      public CDateTimeBuilder setMinDate​(java.util.Calendar minDate)
      Sets a minimum date for the date picker. This date is exclusive.
      Parameters:
      minDate - minimum date or null for no limit.
      Returns:
      CDateTimeBuilder instance
      Since:
      1.4.0
    • setMaxDate

      public CDateTimeBuilder setMaxDate​(java.util.Calendar maxDate)
      Sets a maximum date for the date picker. This date is inclusive.
      Parameters:
      maxDate - maximum date or null for no limit.
      Returns:
      CDateTimeBuilder instance
      Since:
      1.4.0