| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final CitationKeyPatternSuggestionCell. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancelEdit()
Overrides javafx. Cancels an edit to the value of the cell. |
| public void | commitEdit(String newValue)
Overrides javafx. Commits an edit to the value of the cell. |
| public void | startEdit()
Overrides javafx. Starts an edit to the value of the cell. |
| public void | updateItem(String item, boolean empty)
Overrides javafx. The updateItem method should not be called by developers, but it is the best method for developers to override to allow for them to customise the visuals of the cell. |
| searchField | back to summary |
|---|---|
| private final CitationKeyPatternSuggestionCell. | |
| CitationKeyPatternSuggestionCell | back to summary |
|---|---|
| public CitationKeyPatternSuggestionCell(List<String> citationKeyPatterns) | |
| cancelEdit | back to summary |
|---|---|
| public void cancelEdit() Overrides javafx. Doc from javafx. Cancels an edit to the value of the cell. Call this function to transition from an editing state into a non-editing state, without saving any user input.
| |
| commitEdit | back to summary |
|---|---|
| public void commitEdit(String newValue) Overrides javafx. Doc from javafx. Commits an edit to the value of the cell. Call this function when appropriate (based on the user interaction requirements of your cell editing user interface) to do two things:
In general there is no need to override this method in custom cell
implementations - it should be sufficient to simply call this method
when appropriate (e.g., when the user pressed the Enter key, you may do something
like
| |
| startEdit | back to summary |
|---|---|
| public void startEdit() Overrides javafx. Doc from javafx. Starts an edit to the value of the cell. Call this function to transition from a non-editing state into an editing state, if the cell is editable. If this cell is already in an editing state, it will stay in it.
| |
| updateItem | back to summary |
|---|---|
| public void updateItem(String item, boolean empty) Overrides javafx. Doc from javafx. The updateItem method should not be called by developers, but it is the
best method for developers to override to allow for them to customise the
visuals of the cell. To clarify, developers should never call this method
in their code (they should leave it up to the UI control, such as the
It is very important that subclasses of Cell override the updateItem method properly, as failure to do so will lead to issues such as blank cells or cells with unexpected content appearing within them. Here is an example of how to properly override the updateItem method:
protected void updateItem(T item, boolean empty) {
super.updateItem(item, empty);
if (empty || item == null) {
setText(null);
setGraphic(null);
} else {
setText(item.toString());
}
}
Note in this code sample two important points:
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private int | |
| private final ContextMenu |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Menu | |
| public static double | |
| private void | |
| private void |
| citationKeyPatterns | back to summary |
|---|---|
| private final List<String> citationKeyPatterns | |
| heightOfMenuItem | back to summary |
|---|---|
| private int heightOfMenuItem | |
| suggestionsList | back to summary |
|---|---|
| private final ContextMenu suggestionsList | |
| CitationKeyPatternSuggestionTextField | back to summary |
|---|---|
| public CitationKeyPatternSuggestionTextField(List<String> citationKeyPatterns) | |
| createPatternsSubMenu | back to summary |
|---|---|
| private Menu createPatternsSubMenu() | |
| getAvailableSpaceBelow | back to summary |
|---|---|
| public static double getAvailableSpaceBelow(TextField textField) | |
| populatePopup | back to summary |
|---|---|
| private void populatePopup(List<String> searchResult) | |
| setListener | back to summary |
|---|---|
| private void setListener() | |