Package ghidra.features.bsim.gui.filters
Class StringBSimValueEditor
java.lang.Object
ghidra.features.bsim.gui.filters.StringBSimValueEditor
- All Implemented Interfaces:
BSimValueEditor
A BSimValueEditor for filters with arbitrary string values. Supports comma separated values.
-
Field Summary
Fields inherited from interface ghidra.features.bsim.gui.filters.BSimValueEditor
FILTER_DELIMETER, INVALID_COLOR, VALID_COLOR -
Constructor Summary
ConstructorsConstructorDescriptionStringBSimValueEditor(BSimFilterType filterType, List<String> initialValues, Callback listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreturns the GUI component used to allow the user to see and change editor values.Returns the current set of editor values.booleanReturns true if the editor has valid values as determined by the editor's correspondingBSimFilterType.isValidValue(java.lang.String).voidSets the editor to the given string values.
-
Constructor Details
-
StringBSimValueEditor
public StringBSimValueEditor(BSimFilterType filterType, List<String> initialValues, Callback listener)
-
-
Method Details
-
documentChanged
protected void documentChanged() -
setValues
Description copied from interface:BSimValueEditorSets the editor to the given string values. They are displayed in the GUI as comma separated values.- Specified by:
setValuesin interfaceBSimValueEditor- Parameters:
values- the values to be used as the current editor values
-
getValues
Description copied from interface:BSimValueEditorReturns the current set of editor values.- Specified by:
getValuesin interfaceBSimValueEditor- Returns:
- the current set of editor values
-
getComponent
Description copied from interface:BSimValueEditorreturns the GUI component used to allow the user to see and change editor values.- Specified by:
getComponentin interfaceBSimValueEditor- Returns:
- the GUI component used to allow the user to see and change editor values
-
hasValidValues
public boolean hasValidValues()Description copied from interface:BSimValueEditorReturns true if the editor has valid values as determined by the editor's correspondingBSimFilterType.isValidValue(java.lang.String).- Specified by:
hasValidValuesin interfaceBSimValueEditor- Returns:
- true if the editor has valid values as determined by the editor's corresponding filter type.
-