SmartFrog 3.10.000

org.smartfrog.services.display
Class TableUtilities

java.lang.Object
  extended by org.smartfrog.services.display.TableUtilities

public class TableUtilities
extends java.lang.Object

Table Utilities to handle some common table representation problems


Method Summary
static int calculateColumnWidth(javax.swing.JTable table, int columnIndex)
          Calculates the required width of a table column
static void setColumnWidths(javax.swing.JTable table, java.awt.Insets insets, boolean setMinimum, boolean setMaximum)
          Sets the columnWidths attribute of the TableUtilities class
static void sort(int[] values)
          Sorts an interger array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calculateColumnWidth

public static int calculateColumnWidth(javax.swing.JTable table,
                                       int columnIndex)
Calculates the required width of a table column

Parameters:
table - JTable
columnIndex - column index
Returns:
width of the column

setColumnWidths

public static void setColumnWidths(javax.swing.JTable table,
                                   java.awt.Insets insets,
                                   boolean setMinimum,
                                   boolean setMaximum)
Sets the columnWidths attribute of the TableUtilities class

Parameters:
table - Table
insets - insets of the table
setMinimum - minimum width
setMaximum - maxmimun width

sort

public static void sort(int[] values)
Sorts an interger array.

Parameters:
values - integer array

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP