lib/swing/j_table.rb in swing-0.1.8 vs lib/swing/j_table.rb in swing-0.1.10
- old
+ new
@@ -8,20 +8,20 @@
# model TableModel • • DefaultTableModel( )
# rowHeight int • • 16
# cellSelectionEnabled boolean • • false
# columnSelectionAllowed boolean • • false
# rowSelectionAllowed boolean • • true
- # selectionMode int • MULTIPLE_INTERVAL_SELECTION
+ # selectionMode int • MULTIPLE_INTERVAL_SELECTION - Setter ONLY!
# selectionModel ListSelectionModel • • DefaultListSelectionModel
# cellEditor TableCellEditor • • null
# dragEnabled boolean • • false
# gridColor Color • • From L&F
# intercellSpacing Dimension • • Dimension(1, 1)
# preferredScrollableViewportSize Dimension • • Dimension(450, 400)
# rowMargin int • • 1
- # selectionBackground Color • • From L&F
- # selectionForeground Color • • From L&F
+ # selectionBackground Color • • From L&F
+ # selectionForeground Color • • From L&F
# showGrid boolean • true
# showHorizontalLines boolean • • true
# showVerticalLines boolean • • true
# tableHeader JTableHeader • • JTableHeader(column-Model)
# ----Getters only - NO Setters!
@@ -35,17 +35,19 @@
# selectedRows int[] • int[0]
# accessibleContext AccessibleContext • JTable.AccessibleJTable
# scrollableTracksViewportHeighto boolean • false
# scrollableTracksViewportWidtho boolean • false
- attr_setter :tool_tip_text
attr_setter :auto_create_columns_from_model, :auto_resize_mode, :row_height,
- :model, :column_model, :selection_model,
- :drag_enabled, :cell_editor, :grid_color, :intercell_spacing,
- :preferred_scrollable_viewport_size, :row_margin,
- :selection_background, :selection_foreground, :show_grid,
- :show_horizontal_lines, :show_vertical_lines, :table_header,
- :selection_mode => javax.swing.ListSelectionModel::SINGLE_SELECTION,
+ :model, :column_model, :selection_model, :drag_enabled, :cell_editor,
+ :row_margin, :show_grid, :show_horizontal_lines, :show_vertical_lines,
+ :table_header,
+ :grid_color => Awt::Color,
+ :intercell_spacing => Awt::Dimension,
+ :selection_background => Awt::Color,
+ :selection_foreground => Awt::Color,
+ :preferred_scrollable_viewport_size => Awt::Dimension,
+ :selection_mode => Swing::ListSelectionModel::SINGLE_SELECTION,
:cell_selection_enabled => true,
:row_selection_allowed => false,
:column_selection_allowed => false
end # class JTable