public class JDateConfig extends JDateBaseConfig<JDateButton>
JDateButton
.Modifier and Type | Field and Description |
---|---|
static int |
MAX_DAY_NAME_LEN
The maximum day name length.
|
PROPERTY_DATE
Constructor and Description |
---|
JDateConfig(JDateFormatter pFormatter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doPretty()
Do we make weekday names pretty (Capitalise first char, and lower-case the rest).
|
boolean |
doShrinkFromRight()
Shrink long weekday names from right(true) or left(false).
|
boolean |
fireOnAllDateChanges()
Do we Fire Property Change events on all date changes.
|
int |
getMaxDayLen()
Maximum length of weekday name (e.g.
|
LocalDate |
getSelectedDate()
Get the selected date.
|
void |
setFireOnAllDateChanges(boolean pFireOnAllDateChanges)
Set/Clear fire on all Date change flag.
|
void |
setFormatOptions(int pMaxDayLen,
boolean bShrinkFromRight,
boolean bPretty)
Set the format options.
|
void |
storeExplicitDate(LocalDate pDate)
Store the explicit date.
|
void |
storeSelectedDate(LocalDate pDate)
Store the selected date.
|
allowNullDateSelection, capitaliseString, currentDate, formatDate, getCurrentDay, getCurrentMonth, getEarliestDate, getEarliestDay, getLatestDate, getLatestDay, getLocale, getOwner, getSelectedDay, initialiseCurrent, isDateChanged, isSameMonth, isSameYear, nextMonth, nextYear, previousMonth, previousYear, setAllowNullDateSelection, setEarliestDate, setFormat, setFormatter, setLatestDate, setLocale, setOwner, setSelectedDate, setSelectedDay, setShowNarrowDays, setTheLocale, showNarrowDays
public static final int MAX_DAY_NAME_LEN
public JDateConfig(JDateFormatter pFormatter)
pFormatter
- the date formatterpublic final LocalDate getSelectedDate()
JDateBaseConfig
getSelectedDate
in class JDateBaseConfig<JDateButton>
public boolean doPretty()
public int getMaxDayLen()
public boolean doShrinkFromRight()
public boolean fireOnAllDateChanges()
public void setFormatOptions(int pMaxDayLen, boolean bShrinkFromRight, boolean bPretty)
pMaxDayLen
- the maximum string length for the weekdaybShrinkFromRight
- remove excess weekday characters from rightbPretty
- capitalise the first character of weekday/monthpublic void setFireOnAllDateChanges(boolean pFireOnAllDateChanges)
pFireOnAllDateChanges
- true/falsepublic final void storeSelectedDate(LocalDate pDate)
JDateBaseConfig
pDate
- the Selected datepublic final void storeExplicitDate(LocalDate pDate)
JDateBaseConfig
pDate
- the explicit dateCopyright © 2012–2016. All rights reserved.