Class: BurpExtender::ConsoleFrame Private
- Inherits:
-
Java::JavaxSwing::JFrame
- Object
- Java::JavaxSwing::JFrame
- BurpExtender::ConsoleFrame
- Defined in:
- lib/buby/burp_extender/console_frame.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #burp ⇒ Object private
- #pane ⇒ Object private
Instance Method Summary collapse
-
#initialize(burp_extender, pane, opts = {}, &block) ⇒ ConsoleFrame
constructor
private
A new instance of ConsoleFrame.
Constructor Details
#initialize(burp_extender, pane, opts = {}, &block) ⇒ ConsoleFrame
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ConsoleFrame.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/buby/burp_extender/console_frame.rb', line 5 def initialize(burp_extender, pane, opts = {}, &block) @burp = burp_extender @pane = pane blck = lambda do |event| if event.getID == Java::JavaAwtEvent::WindowEvent::WINDOW_CLOSING @pane.tar.shutdown self.dispose end end super(opts[:title] || 'JRuby IRB Console (tab will autocomplete)') set_size(*(opts[:size] || [700, 600])) content_pane.add(@pane) addWindowStateListener &blck addWindowListener &blck if block_given? addWindowStateListener &block addWindowListener &block end @burp.callbacks.customizeUiComponent self Java::JavaAwt::EventQueue.invoke_later { self.visible = true } end |
Instance Attribute Details
#burp ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 |
# File 'lib/buby/burp_extender/console_frame.rb', line 4 def burp @burp end |
#pane ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 |
# File 'lib/buby/burp_extender/console_frame.rb', line 4 def pane @pane end |