Class FileOffsetFieldOptionsWrappedOption

java.lang.Object
ghidra.app.util.viewer.field.FileOffsetFieldOptionsWrappedOption
All Implemented Interfaces:
CustomOption

public class FileOffsetFieldOptionsWrappedOption extends Object implements CustomOption
An option class that allows the user to edit a related group of options pertaining to File Offset field display
  • 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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • readState

      public void readState(GProperties properties)
      Description copied from interface: CustomOption
      Read state from the given properties
      Specified by:
      readState in interface CustomOption
      Parameters:
      properties - container of state information
    • writeState

      public void writeState(GProperties properties)
      Description copied from interface: CustomOption
      Write state into the given properties
      Specified by:
      writeState in interface CustomOption
      Parameters:
      properties - container of state information