Class JXTableDecorator

java.lang.Object
be.gaudry.swing.component.table.JXTableDecorator

public final class JXTableDecorator extends Object
Since:
1.0 Jul 01, 2008, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Method Details

    • setStyleAndEditors

      public static BrolTableMouseAdapter setStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName, JMenu menu, String exportDocumentTitle)
      Set style and editors for a JXTable
      Parameters:
      table - JXTable to customize
      tableName - name of the JXTable component (used also for saving table preferences)
      menu - menu to add to the table popup menu. All parts of the new menu are moved into the existing menu. May start with a JXTitledSeparator to show specific actions.
      exportDocumentTitle - String given to the export option dialog to purpose an output document title.
      Returns:
      BrolTableMouseAdapter Use the BrolTableMouseAdapter to retrieve actions, etc.
    • setStyleAndEditors

      public static BrolTableMouseAdapter setStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName, JMenu menu)
      Set style and editors for a JXTable
      Parameters:
      table - JXTable to customize
      tableName - name of the JXTable component (used also for saving table preferences)
      menu - menu to add to the table popup menu. All parts of the new menu are moved into the existing menu. May start with a JXTitledSeparator to show specific actions.
      Returns:
      BrolTableMouseAdapter Use the BrolTableMouseAdapter to retrieve actions, etc.
    • setStyleAndEditors

      public static void setStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName, JScrollPane scrollPane, String titledBorderText)
      Set style and editors for a JXTable into a JScrollPane
      Parameters:
      table - JXTable to customize
      tableName - name of the JXTable component (used also for saving table preferences)
      scrollPane - JScrollPane where will be the table
      titledBorderText - String text of the border
    • setStyleAndEditors

      public static void setStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName)
      Set style and editors for a JXTable
      Parameters:
      table - JXTable to customize
      tableName - name of the JXTable component (used also for saving table preferences)
    • setTitle

      public static void setTitle(JScrollPane scrollPane, String titledBorderText)
    • setDefaultsRenderers

      public static void setDefaultsRenderers(JTable table)
      Sets some default renderers to a table
      Parameters:
      table -
      Since:
      0.1.9-SNAPSHOT (Feb 13 2009) Extracted from setStyleAndEditors(JXTable, String)
    • setDefaultsEditors

      public static void setDefaultsEditors(JTable table)
      Sets some default editors to a table
      Parameters:
      table -
      Since:
      0.1.9-SNAPSHOT (Feb 13 2009) Extracted from setStyleAndEditors(JXTable, String)