Sha256: 272daa30fc27637e27714a967f5d001ea0b84656b7968d052c50d4a190382913

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

class Buby
  # This interface is used to provide Burp with details of a custom tab that
  # will be added to Burp's UI, using a method such as {Buby#addSuiteTab}.
  #
  # @abstract
  class Tab
    include Java::Burp::ITab
    attr_accessor :caption, :component

    def initialize(caption = nil, component = nil)
      @caption = caption || self.class.name
      @component = component
    end

    # Burp uses this method to obtain the caption that should appear on the
    # custom tab when it is displayed.
    #
    # @return [String] The caption that should appear on the custom tab when it
    #   is displayed.
    #
    def getTabCaption
      pp [:got_getTabCaption] if $DEBUG
      @caption.to_s
    end

    # Burp uses this method to obtain the component that should be used as the
    # contents of the custom tab when it is displayed.
    #
    # @return [java.awt.Component] The component that should be used as the
    #   contents of the custom tab when it is displayed.
    #
    def getUiComponent
      pp [:got_getUiComponent] if $DEBUG
      @component
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
buby-1.6.0-java lib/buby/tab.rb
buby-1.5.2-java lib/buby/tab.rb
buby-1.5.1-java lib/buby/tab.rb
buby-1.5.0-java lib/buby/tab.rb
buby-1.5.0.pre4-java lib/buby/tab.rb
buby-1.5.0.pre3-java lib/buby/tab.rb
buby-1.5.0.pre2-java lib/buby/tab.rb
buby-1.5.0.pre1-java lib/buby/tab.rb