Top Description Fields Constructors Methods
com.dlsc.preferencesfx.view

public Class UndoRedoBox

extends HBox
Class Inheritance
Imports
com.dlsc.preferencesfx.history.History, javafx.scene.control.Button, javafx.scene.layout.HBox, org.kordamp.ikonli.javafx.FontIcon, org.kordamp.ikonli.material.Material

Displays undo and redo buttons and also defines their behavior.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
pack-priv Button
pack-priv Button

Constructor Summary

AccessConstructor and Description
public
UndoRedoBox(History
the history to be used for undo and redo
history
)

Initializes the undo and redo buttons, sets their respective actions and disables them if undo or redo is not available, respectively.

Method Summary

Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

redoBtnback to summary
pack-priv Button redoBtn
undoBtnback to summary
pack-priv Button undoBtn

Constructor Detail

UndoRedoBoxback to summary
public UndoRedoBox(History history)

Initializes the undo and redo buttons, sets their respective actions and disables them if undo or redo is not available, respectively.

Parameters
history:History

the history to be used for undo and redo