Interface TethysUIDateButtonManager
- All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>,TethysUIComponent,TethysUIControl.TethysUIDateButton
- All Known Implementing Classes:
TethysUICoreDateButtonManager
public interface TethysUIDateButtonManager
extends TethysUIControl.TethysUIDateButton, OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>, TethysUIComponent
DateButton Manager.
The EventProvider fires the following events.
- TethysUIEvent.NEWVALUE is fired when a new date value is selected.
- TethysUIEvent.EDITFOCUSLOST is fired when the dialog is cancelled without a value being selected.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAllow Null Date selection.Obtain the configuration.Obtain the earliest Date.Obtain the latest Date.Obtain the selected Date.getText()Get button text.voidsetAllowNullDateSelection(boolean pAllowNullDateSelection) Allow null date selection.voidsetEarliestDate(OceanusDate pDate) Set earliest Date.voidsetLatestDate(OceanusDate pDate) Set latest Date.voidsetSelectedDate(OceanusDate pDate) Set selected Date.voidsetShowNarrowDays(boolean pShowNarrowDays) Show Narrow Days.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrarMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisibleMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.control.TethysUIControl.TethysUIDateButton
setDateConfigurator
-
Method Details
-
getConfig
OceanusDateConfig getConfig()Obtain the configuration.- Returns:
- the configuration
-
getSelectedDate
OceanusDate getSelectedDate()Obtain the selected Date.- Returns:
- the selected Date
-
getEarliestDate
OceanusDate getEarliestDate()Obtain the earliest Date.- Returns:
- the earliest Date
-
getLatestDate
OceanusDate getLatestDate()Obtain the latest Date.- Returns:
- the latest Date
-
setSelectedDate
Set selected Date.- Parameters:
pDate- the selected date
-
getText
String getText()Get button text.- Returns:
- the text
-
setEarliestDate
Set earliest Date.- Parameters:
pDate- the earliest date
-
setLatestDate
Set latest Date.- Parameters:
pDate- the latest date
-
allowNullDateSelection
boolean allowNullDateSelection()Allow Null Date selection.- Returns:
- true/false
-
setAllowNullDateSelection
void setAllowNullDateSelection(boolean pAllowNullDateSelection) Allow null date selection. If this flag is set an additional button will be displayed allowing the user to explicitly select no date, thus setting the SelectedDate to null.- Parameters:
pAllowNullDateSelection- true/false
-
setShowNarrowDays
void setShowNarrowDays(boolean pShowNarrowDays) Show Narrow Days. If this flag is set Days are show in narrow rather than short form.- Parameters:
pShowNarrowDays- true/false
-