Class: PdfParadise::GUI::Jruby::RemoveTheFirstPageOfThisPdfFile

Inherits:
JFrame
  • Object
show all
Includes:
SwingParadise::BaseModule
Defined in:
lib/pdf_paradise/gui/jruby/remove_the_first_page_of_this_pdf_file/remove_the_first_page_of_this_pdf_file.rb

Overview

Foo::RemoveTheFirstPageOfThisPdfFile

Constant Summary collapse

NAMESPACE =
#

NAMESPACE

#
inspect

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commandline_arguments = nil, run_already = true) ⇒ RemoveTheFirstPageOfThisPdfFile

#

initialize

#


50
51
52
53
54
55
56
57
58
59
60
# File 'lib/pdf_paradise/gui/jruby/remove_the_first_page_of_this_pdf_file/remove_the_first_page_of_this_pdf_file.rb', line 50

def initialize(
    commandline_arguments = nil,
    run_already           = true
  )
  super()
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end

Class Method Details

.[](i = ARGV) ⇒ Object

#

PdfParadise::GUI::Jruby::RemoveTheFirstPageOfThisPdfFile[]

#


95
96
97
# File 'lib/pdf_paradise/gui/jruby/remove_the_first_page_of_this_pdf_file/remove_the_first_page_of_this_pdf_file.rb', line 95

def self.[](i = ARGV)
  new(i)
end

Instance Method Details

#resetObject

#

reset (reset tag)

#


65
66
67
68
69
70
71
# File 'lib/pdf_paradise/gui/jruby/remove_the_first_page_of_this_pdf_file/remove_the_first_page_of_this_pdf_file.rb', line 65

def reset
  super() if respond_to?(:super)
  # ======================================================================= #
  # === @namespace
  # ======================================================================= #
  @namespace = NAMESPACE
end

#runObject

#

run (run tag)

#


76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/pdf_paradise/gui/jruby/remove_the_first_page_of_this_pdf_file/remove_the_first_page_of_this_pdf_file.rb', line 76

def run
  #text1 = text('Denote which .pdf file is to manipulated, in the following entry')
  b1 = button('NORTH')
  b1.on_clicked {
    e 'HEY THERE'
  }
  #add(text1,            BorderLayout::NORTH)
  add(b1,               BorderLayout::SOUTH)
  add(button('EAST'),   BorderLayout::EAST)
  add(button('WEST'),   BorderLayout::WEST)
  add(button('CENTER'), BorderLayout::CENTER)
  set_size(WIDTH, HEIGHT)
  setVisible(true)
  #show_all
end