To perform a search the application simply needs to change the value of the
text property of this view. The easiest way to do this is to bind the
property to the text property of a textfield.
Calendar#findEntries(String), Entry#matches(String)
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | |
| private static final String | |
| private final ObservableList | |
| private final SearchResultView. | |
| private final StringProperty | |
| private static final String | |
| private final ReadOnlyObjectWrapper | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObservableList | Returns: the calendar sourcesThe list of calendar sources where the view will perform the search. |
| public final ObservableList | |
| public final String | |
| public final Entry | Returns: the selected entry / search resultReturns the value of |
| public final ZoneId | |
| public final StringProperty | |
| public final ReadOnlyObjectProperty | Returns: the selected resultStores the currently selected entry / search result. |
| public final void | |
| public final void | |
| private void | |
| public final ObjectProperty |
| calendarSources | back to summary |
|---|---|
| private final ObservableList<CalendarSource> calendarSources | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| searchResults | back to summary |
|---|---|
| private final ObservableList<Entry<?>> searchResults | |
| searchService | back to summary |
|---|---|
| private final SearchResultView. | |
| searchText | back to summary |
|---|---|
| private final StringProperty searchText | |
| SELECTED_ENTRY | back to summary |
|---|---|
| private static final String SELECTED_ENTRY | |
| selectedEntry | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<Entry<?>> selectedEntry | |
| zoneId | back to summary |
|---|---|
| private final ObjectProperty<ZoneId> zoneId | |
| SearchResultView | back to summary |
|---|---|
| public SearchResultView() Constructs a new view. | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS | |
| getCalendarSources | back to summary |
|---|---|
| public final ObservableList The list of calendar sources where the view will perform the search.
| |
| getSearchResults | back to summary |
|---|---|
| public final ObservableList The list containing the search results.
| |
| getSearchText | back to summary |
|---|---|
| public final String getSearchText() Returns the value of
| |
| getSelectedEntry | back to summary |
|---|---|
| public final Entry Returns the value of
| |
| getZoneId | back to summary |
|---|---|
| public final ZoneId getZoneId() Returns the value of
| |
| searchTextProperty | back to summary |
|---|---|
| public final StringProperty searchTextProperty() The text used to perform the search in the calendars.
| |
| selectedEntryProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty Stores the currently selected entry / search result.
| |
| setSearchText | back to summary |
|---|---|
| public final void setSearchText(String text) Sets the value of
| |
| setZoneId | back to summary |
|---|---|
| public final void setZoneId(ZoneId zoneId) Sets the value of
| |
| updateSearchResults | back to summary |
|---|---|
| private void updateSearchResults() | |
| zoneIdProperty | back to summary |
|---|---|
| public final ObjectProperty Provides the current time zone. The zone is required for searches as the
view will invoke
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Task | createTask()
Implements abstract javafx. Invoked after the Service is started on the JavaFX Application Thread. |
| SearchService | back to summary |
|---|---|
| public SearchService() | |
| createTask | back to summary |
|---|---|
| protected Task Implements abstract javafx. Doc from javafx. Invoked after the Service is started on the JavaFX Application Thread. Implementations should save off any state into final variables prior to creating the Task, since accessing properties defined on the Service within the background thread code of the Task will result in exceptions. For example:
If the Task is a pre-defined class (as opposed to being an anonymous class), and if it followed the recommended best-practice, then there is no need to save off state prior to constructing the Task since its state is completely provided in its constructor.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected List | call()
Implements abstract javafx. Invoked when the Task is executed, the call method must be overridden and implemented by subclasses. |
| SearchTask | back to summary |
|---|---|
| pack-priv SearchTask() | |
| call | back to summary |
|---|---|
| protected List Implements abstract javafx. Doc from javafx. Invoked when the Task is executed, the call method must be overridden and implemented by subclasses. The call method actually performs the background thread logic. Only the updateProgress, updateMessage, updateValue and updateTitle methods of Task may be called from code within this method. Any other interaction with the Task from the background thread will result in runtime exceptions. | |