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 Summary
Constructors Constructor Description CDateTimeBuilder()
-
Method Summary
Modifier and Type Method Description java.util.List<Body>
getBodies()
static CDateTimeBuilder
getCompact()
int
getFooterAlignment()
boolean
getFooterEqualColumns()
java.util.List<Footer>
getFooters()
int
getHeaderAlignment()
boolean
getHeaderEqualColumns()
java.util.List<Header>
getHeaders()
java.util.Calendar
getMaxDate()
java.util.Calendar
getMinDate()
static CDateTimeBuilder
getStandard()
boolean
hasBody()
boolean
hasBody(int type)
boolean
hasFooter()
boolean
hasFooter(int type)
boolean
hasHeader()
boolean
hasHeader(int type)
void
setBody(Body... attrs)
void
setFields(int[] calendarFields)
void
setFooter(int alignment, boolean equalColumns, Footer... attrs)
void
setFooter(Footer... attrs)
void
setHeader(int alignment, boolean equalColumns, Header... attrs)
void
setHeader(Header... attrs)
CDateTimeBuilder
setMaxDate(java.util.Calendar maxDate)
Sets a maximum date for the date picker.CDateTimeBuilder
setMinDate(java.util.Calendar minDate)
Sets a minimum date for the date picker.
-
Constructor Details
-
CDateTimeBuilder
public CDateTimeBuilder()
-
-
Method Details
-
getCompact
- Returns:
- a compact version of the widget.
-
getStandard
- Returns:
- the standard version of the widget.
-
getBodies
-
getFooterAlignment
public int getFooterAlignment() -
getFooterEqualColumns
public boolean getFooterEqualColumns() -
getFooters
-
getHeaderAlignment
public int getHeaderAlignment() -
getHeaderEqualColumns
public boolean getHeaderEqualColumns() -
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
-
setFields
public void setFields(int[] calendarFields) -
setFooter
-
setFooter
-
setHeader
-
setHeader
-
setMinDate
Sets a minimum date for the date picker. This date is exclusive.- Parameters:
minDate
- minimum date ornull
for no limit.- Returns:
- CDateTimeBuilder instance
- Since:
- 1.4.0
-
setMaxDate
Sets a maximum date for the date picker. This date is inclusive.- Parameters:
maxDate
- maximum date ornull
for no limit.- Returns:
- CDateTimeBuilder instance
- Since:
- 1.4.0
-