Interface TimeSelectorIF
-
- All Superinterfaces:
com.google.gwt.user.client.ui.IsWidget
- All Known Implementing Classes:
TimeSelector
public interface TimeSelectorIF extends com.google.gwt.user.client.ui.IsWidgetInterface defining a time selector- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getAvailableDates()Return the available datesList<String>getAvailableTimes()Return the available timesStringgetRange()StringgetSelectedDate()StringgetSelectedDateTime()StringgetSelectedDateTimeRange()StringgetSelectedTime()booleanhasMultipleTimes()booleanisContinuous()voidpopulateDates(List<String> availableDates)Populate the available datesvoidpopulateTimes(List<String> availableTimes)Populate the available times.booleanselectDate(String dateString)Choose a specified datebooleanselectDateTime(String timeString)Choose a specified datetimevoidselectRange(String currentRange)Sets the range (i.e.voidsetContinuous(boolean continuous)Sets whether thisTimeSelectorIFneeds to represent discrete or continous timevoidsetEnabled(boolean enabled)Enable/disable the widgetvoidsetId(String id)Sets the ID of the layer which this time selector applies to
-
-
-
Method Detail
-
setId
void setId(String id)
Sets the ID of the layer which this time selector applies to- Parameters:
id-
-
populateTimes
void populateTimes(List<String> availableTimes)
Populate the available times. This may change as the date changes
-
getSelectedDate
String getSelectedDate()
- Returns:
- A
Stringrepresentation of the currently selected date
-
getSelectedDateTime
String getSelectedDateTime()
- Returns:
- A
Stringrepresentation of the currently selected datetime
-
getSelectedTime
String getSelectedTime()
- Returns:
- A
Stringrepresentation of the currently selected time
-
getSelectedDateTimeRange
String getSelectedDateTimeRange()
- Returns:
- A
Stringrepresentation of the currently selected datetime range. This may benullif isContinous() returns false
-
selectDate
boolean selectDate(String dateString)
Choose a specified date- Parameters:
dateString- The desired date- Returns:
trueif the operation was successfull
-
selectDateTime
boolean selectDateTime(String timeString)
Choose a specified datetime- Parameters:
timeString- The desired datetime- Returns:
trueif the operation was successfull
-
setEnabled
void setEnabled(boolean enabled)
Enable/disable the widget- Parameters:
enabled-trueto enable the widget,falseto disable it
-
hasMultipleTimes
boolean hasMultipleTimes()
- Returns:
trueif this time selector can represent multiple datetimes
-
setContinuous
void setContinuous(boolean continuous)
Sets whether thisTimeSelectorIFneeds to represent discrete or continous time- Parameters:
continuous-
-
isContinuous
boolean isContinuous()
- Returns:
trueif thisTimeSelectorIFis currently representing a continuous time range,falseif it is a discrete one
-
selectRange
void selectRange(String currentRange)
Sets the range (i.e. +/- how much) for a continuous axis- Parameters:
currentRange-
-
getRange
String getRange()
- Returns:
- The currently selected range (i.e. +/- how much) for a continuous axis
-
-