Class: Clevic::TableViewFocus

Inherits:
Object
  • Object
show all
Defined in:
lib/clevic/swing/table_view_focus.rb

Instance Method Summary collapse

Constructor Details

#initialize(table_view) ⇒ TableViewFocus

Returns a new instance of TableViewFocus.



4
5
6
7
8
# File 'lib/clevic/swing/table_view_focus.rb', line 4

def initialize( table_view )
  super()
  @table_view = table_view
  @table_view.focus_cycle_root = true
end

Instance Method Details

#getComponentAfter(container, component) ⇒ Object

Returns the Component that should receive the focus after aComponent. def getComponentAfter(Container aContainer, Component aComponent)



12
13
14
# File 'lib/clevic/swing/table_view_focus.rb', line 12

def getComponentAfter(container, component)
  @table_view.jtable
end

#getComponentBefore(container, component) ⇒ Object

Returns the Component that should receive the focus before aComponent. def getComponentBefore(Container aContainer, Component aComponent)



18
19
20
# File 'lib/clevic/swing/table_view_focus.rb', line 18

def getComponentBefore(container, component)
  @table_view.jtable
end

#getDefaultComponent(container) ⇒ Object

Returns the default Component to focus. def getDefaultComponent(Container aContainer)



24
25
26
# File 'lib/clevic/swing/table_view_focus.rb', line 24

def getDefaultComponent(container)
  @table_view.jtable
end

#getFirstComponent(container) ⇒ Object

Returns the first Component in the traversal cycle. def getFirstComponent(Container aContainer)



30
31
32
# File 'lib/clevic/swing/table_view_focus.rb', line 30

def getFirstComponent(container)
  @table_view.jtable
end

#getInitialComponent(window) ⇒ Object

Returns the Component that should receive the focus when a Window is made visible for the first time. Component getInitialComponent(Window window)



36
37
38
# File 'lib/clevic/swing/table_view_focus.rb', line 36

def getInitialComponent(window)
  @table_view.jtable
end

#getLastComponent(container) ⇒ Object

Returns the last Component in the traversal cycle. def getLastComponent(Container aContainer)



42
43
44
# File 'lib/clevic/swing/table_view_focus.rb', line 42

def getLastComponent(container)
  @table_view.jtable
end