Class: Buby::Tab Abstract
Overview
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 #addSuiteTab.
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#component ⇒ Object
Returns the value of attribute component.
Instance Method Summary collapse
-
#getTabCaption ⇒ String
Burp uses this method to obtain the caption that should appear on the custom tab when it is displayed.
-
#getUiComponent ⇒ java.awt.Component
Burp uses this method to obtain the component that should be used as the contents of the custom tab when it is displayed.
-
#initialize(caption = nil, component = nil) ⇒ Tab
constructor
A new instance of Tab.
Constructor Details
#initialize(caption = nil, component = nil) ⇒ Tab
Returns a new instance of Tab.
10 11 12 13 |
# File 'lib/buby/tab.rb', line 10 def initialize( = nil, component = nil) @caption = || self.class.name @component = component end |
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
8 9 10 |
# File 'lib/buby/tab.rb', line 8 def @caption end |
#component ⇒ Object
Returns the value of attribute component.
8 9 10 |
# File 'lib/buby/tab.rb', line 8 def component @component end |
Instance Method Details
#getTabCaption ⇒ String
Burp uses this method to obtain the caption that should appear on the custom tab when it is displayed.
21 22 23 24 |
# File 'lib/buby/tab.rb', line 21 def getTabCaption pp [:got_getTabCaption] if $DEBUG @caption.to_s end |
#getUiComponent ⇒ java.awt.Component
Burp uses this method to obtain the component that should be used as the contents of the custom tab when it is displayed.
32 33 34 35 |
# File 'lib/buby/tab.rb', line 32 def getUiComponent pp [:got_getUiComponent] if $DEBUG @component end |