Package ghidra.app.util.viewer.field
Class FileOffsetFieldOptionsWrappedOption
java.lang.Object
ghidra.app.util.viewer.field.FileOffsetFieldOptionsWrappedOption
- All Implemented Interfaces:
CustomOption
An option class that allows the user to edit a related group of options pertaining to
File Offset field display
-
Field Summary
Fields inherited from interface ghidra.framework.options.CustomOption
CUSTOM_OPTION_CLASS_NAME_KEY
-
Constructor Summary
ConstructorDescriptionDefault constructor, required for persistence -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
readState
(GProperties properties) Read state from the given propertiesvoid
setShowFilename
(boolean showFilename) Sets whether or not to show the filenamevoid
setUseHex
(boolean useHex) Sets whether or not to display the file offset in hexadecimalboolean
Returns whether or not to show the filenameboolean
useHex()
Returns whether or not to display the file offset in hexadecimalvoid
writeState
(GProperties properties) Write state into the given propertiesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.framework.options.CustomOption
toString
-
Constructor Details
-
FileOffsetFieldOptionsWrappedOption
public FileOffsetFieldOptionsWrappedOption()Default constructor, required for persistence
-
-
Method Details
-
showFilename
public boolean showFilename()Returns whether or not to show the filename- Returns:
- True if the filename is to be shown; otherwise, false
-
setShowFilename
public void setShowFilename(boolean showFilename) Sets whether or not to show the filename- Parameters:
showFilename
- True to show the filename, false to hide it
-
useHex
public boolean useHex()Returns whether or not to display the file offset in hexadecimal- Returns:
- True if the file offset is to be displayed in hexadecimal; otherwise, false
-
setUseHex
public void setUseHex(boolean useHex) Sets whether or not to display the file offset in hexadecimal- Parameters:
useHex
- True to display the file offset in hexadecimal, false for decimal
-
equals
-
hashCode
public int hashCode() -
readState
Description copied from interface:CustomOption
Read state from the given properties- Specified by:
readState
in interfaceCustomOption
- Parameters:
properties
- container of state information
-
writeState
Description copied from interface:CustomOption
Write state into the given properties- Specified by:
writeState
in interfaceCustomOption
- Parameters:
properties
- container of state information
-