Modifier and Type | Method and Description |
---|---|
ViewLoader |
addFilters(Collection<Filter<?>> filters)
Adds filters to this loader.
|
ViewLoader |
addFilters(Filter<?>... filters)
Adds filters to this loader.
|
String |
getId()
Returns the ID of the view that will be loaded.
|
ViewType |
getType()
Returns the type of the view that will be loaded.
|
Object |
loadContent()
Loads the view's content using the loader's current settings.
|
ViewLoader |
setDateInterval(Interval<DateUnit> dateInterval)
Sets a date interval to use with this loader.
|
ViewLoader |
setLocale(Locale locale)
Sets the language in which to load the view.
|
ViewLoader |
setTimeInterval(Interval<TimeUnit> timeInterval)
Sets a time interval to use with this loader.
|
String getId()
ViewType getType()
Object loadContent()
ViewLoader setDateInterval(Interval<DateUnit> dateInterval)
dateInterval
- the interval to setViewLoader setTimeInterval(Interval<TimeUnit> timeInterval)
timeInterval
- the interval to setViewLoader addFilters(Filter<?>... filters)
filters
- the filters to addViewLoader addFilters(Collection<Filter<?>> filters)
filters
- the filters to addViewLoader setLocale(Locale locale)
locale
- locale for which to return the viewCopyright © 2014. All rights reserved.