Package be.gaudry.swing.component.table
Class JXTableDecorator
java.lang.Object
be.gaudry.swing.component.table.JXTableDecorator
- Since:
- 1.0 Jul 01, 2008, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetDefaultsEditors(JTable table)Sets some default editors to atablestatic voidsetDefaultsRenderers(JTable table)Sets some default renderers to atablestatic voidsetStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName)Set style and editors for a JXTablestatic BrolTableMouseAdaptersetStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName, JMenu menu)Set style and editors for a JXTablestatic BrolTableMouseAdaptersetStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName, JMenu menu, String exportDocumentTitle)Set style and editors for a JXTablestatic voidsetStyleAndEditors(org.jdesktop.swingx.JXTable table, String tableName, JScrollPane scrollPane, String titledBorderText)Set style and editors for a JXTable into a JScrollPanestatic voidsetTitle(JScrollPane scrollPane, String titledBorderText)
-
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 customizetableName- 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 aJXTitledSeparatorto show specific actions.exportDocumentTitle- String given to the export option dialog to purpose an output document title.- Returns:
- BrolTableMouseAdapter Use the
BrolTableMouseAdapterto 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 customizetableName- 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 aJXTitledSeparatorto show specific actions.- Returns:
- BrolTableMouseAdapter Use the
BrolTableMouseAdapterto 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 customizetableName- name of the JXTable component (used also for saving table preferences)scrollPane- JScrollPane where will be the tabletitledBorderText- String text of the border
-
setStyleAndEditors
Set style and editors for a JXTable- Parameters:
table- JXTable to customizetableName- name of the JXTable component (used also for saving table preferences)
-
setTitle
-
setDefaultsRenderers
Sets some default renderers to atable- Parameters:
table-- Since:
- 0.1.9-SNAPSHOT (Feb 13 2009) Extracted from
setStyleAndEditors(JXTable, String)
-
setDefaultsEditors
Sets some default editors to atable- Parameters:
table-- Since:
- 0.1.9-SNAPSHOT (Feb 13 2009) Extracted from
setStyleAndEditors(JXTable, String)
-