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
ConstructorsConstructorDescriptionDefault constructor, required for persistence -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidreadState(GProperties properties) Read state from the given propertiesvoidsetShowFilename(boolean showFilename) Sets whether or not to show the filenamevoidsetUseHex(boolean useHex) Sets whether or not to display the file offset in hexadecimalbooleanReturns whether or not to show the filenamebooleanuseHex()Returns whether or not to display the file offset in hexadecimalvoidwriteState(GProperties properties) Write state into the given propertiesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:CustomOptionRead state from the given properties- Specified by:
readStatein interfaceCustomOption- Parameters:
properties- container of state information
-
writeState
Description copied from interface:CustomOptionWrite state into the given properties- Specified by:
writeStatein interfaceCustomOption- Parameters:
properties- container of state information
-