Setting.
| Modifier and Type | Field and Description |
|---|---|
| private ObservableList | |
| private SimpleObjectProperty | |
| private BooleanProperty | |
| private static final Logger | |
| private IntegerProperty | |
| private BooleanProperty | |
| private BooleanProperty | |
| private IntegerProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public void | |
| public ReadOnlyObjectProperty | |
| private int | Returns: the position value before the decrementationEquals to the same as: "return position--" if position was an Integer. |
| public void | |
| public ObservableList | |
| private boolean | |
| private boolean | |
| private int | Returns: the position value before the incrementationEquals to the same as: "return ++position" if position was an Integer. |
| public boolean | |
| public boolean | |
| public boolean | |
| public ReadOnlyBooleanProperty | |
| private Change | |
| private Change | |
| public boolean | Returns: true if successful, false if there are no changes to redoRedos a change in the history. |
| public void | |
| public BooleanProperty | |
| public void | |
| private void | |
| public boolean | Returns: true if successful, false if there are no changes to undoUndos a change in the history. |
| public void | |
| public BooleanProperty |
| changes | back to summary |
|---|---|
| private ObservableList<Change<P>> changes | |
| currentChange | back to summary |
|---|---|
| private SimpleObjectProperty<Change<P>> currentChange | |
| listenerActive | back to summary |
|---|---|
| private BooleanProperty listenerActive | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| position | back to summary |
|---|---|
| private IntegerProperty position | |
| redoAvailable | back to summary |
|---|---|
| private BooleanProperty redoAvailable | |
| undoAvailable | back to summary |
|---|---|
| private BooleanProperty undoAvailable | |
| validPosition | back to summary |
|---|---|
| private IntegerProperty validPosition | |
| History | back to summary |
|---|---|
| public History() Initializes a new history object. | |
| addChange | back to summary |
|---|---|
| private void addChange(Change<P> change) | |
| attachChangeListener | back to summary |
|---|---|
| public void attachChangeListener(Setting<E extends Element<E extends Element<E>>, P extends Property<T>> setting) Adds a listener to the | |
| clear | back to summary |
|---|---|
| public void clear(boolean undoAll) Clears the change history.
| |
| currentChangeProperty | back to summary |
|---|---|
| public ReadOnlyObjectProperty | |
| decrementPosition | back to summary |
|---|---|
| private int decrementPosition() Equals to the same as: "return position--" if position was an Integer.
| |
| doWithoutListeners | back to summary |
|---|---|
| public void doWithoutListeners(Setting<E extends Element<E extends Element<E>>, P extends Property<T>> setting, Runnable action) Enables to perform an action, without firing the attached ChangeListener of a Setting. This is used by undo and redo, since those shouldn't cause a new change to be added. | |
| getChanges | back to summary |
|---|---|
| public ObservableList | |
| hasNext | back to summary |
|---|---|
| private boolean hasNext() | |
| hasPrev | back to summary |
|---|---|
| private boolean hasPrev() | |
| incrementPosition | back to summary |
|---|---|
| private int incrementPosition() Equals to the same as: "return ++position" if position was an Integer.
| |
| isListenerActive | back to summary |
|---|---|
| public boolean isListenerActive() | |
| isRedoAvailable | back to summary |
|---|---|
| public boolean isRedoAvailable() | |
| isUndoAvailable | back to summary |
|---|---|
| public boolean isUndoAvailable() | |
| listenerActiveProperty | back to summary |
|---|---|
| public ReadOnlyBooleanProperty listenerActiveProperty() | |
| next | back to summary |
|---|---|
| private Change | |
| prev | back to summary |
|---|---|
| private Change | |
| redo | back to summary |
|---|---|
| public boolean redo() Redos a change in the history.
| |
| redoAll | back to summary |
|---|---|
| public void redoAll() Redos all changes in the history. | |
| redoAvailableProperty | back to summary |
|---|---|
| public BooleanProperty redoAvailableProperty() | |
| setListenerActive | back to summary |
|---|---|
| public void setListenerActive(boolean listenerActive) | |
| setupBindings | back to summary |
|---|---|
| private void setupBindings() | |
| undo | back to summary |
|---|---|
| public boolean undo() Undos a change in the history.
| |
| undoAll | back to summary |
|---|---|
| public void undoAll() Undos all changes in the history. | |
| undoAvailableProperty | back to summary |
|---|---|
| public BooleanProperty undoAvailableProperty() | |