Package org.basex.gui.layout
Class BaseXHistory
java.lang.Object
org.basex.gui.layout.BaseXHistory
This class remembers previous text inputs of a GUI component.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum number of history entries.static final intMaximum number of compact history. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX
public static final int MAXMaximum number of history entries.- See Also:
-
MAXCOMPACT
public static final int MAXCOMPACTMaximum number of compact history.- See Also:
-
-
Constructor Details
-
BaseXHistory
Constructor.- Parameters:
history- history valuesoptions- options
-
-
Method Details
-
add
Adds the specified value on top of history and stores the history in the options. Empty values will be ignored.- Parameters:
input- new input
-
get
Returns a history value.- Parameters:
next- next/previous entry- Returns:
- entry, or
nullif history is empty
-
values
Returns all values.- Returns:
- history values
-