public class JTableUtils
extends java.lang.Object
JTable
Modifier and Type | Class and Description |
---|---|
static class |
JTableUtils.ActivityGanttConfigAccessor
provides a
JTableUtils.GanttConfigAccessor implementation for the Activity config |
static interface |
JTableUtils.ColumnMovedListener |
static interface |
JTableUtils.ColumnResizedListener |
static interface |
JTableUtils.GanttConfigAccessor
The GanttConfigAccessor is an abstracted way to access the Map like data in the
GanttConfigInfo and allow
code to interact with those "maps" in a way that enables you to re-use logic when accessing the gantt config info
for resources or activitites. |
static class |
JTableUtils.ResourceGanttConfigAccessor
Provides a
JTableUtils.GanttConfigAccessor implemenation for the Resource config |
static class |
JTableUtils.ShowWorkForSelectedResourcesAction
Action that given the selected resource in the event's source chart, it will adjust the
timescale to see all of the work for that resource.
|
static class |
JTableUtils.TableColumnModelAdapter
Simple adapter that does nothing.
|
Constructor and Description |
---|
JTableUtils() |
Modifier and Type | Method and Description |
---|---|
static JTableUtils.GanttConfigAccessor |
activityConfigAccessor(IGanttConfigInfo ganttConfigInfo)
Adapter for getting the
JTableUtils.GanttConfigAccessor implementation from the IGanttConfigInfo |
static void |
addActivtyActionsToTable(ilog.views.gantt.swing.IlvJTable table,
ilog.views.gantt.IlvGanttChart gChart)
Adds the Activity Actions to the Description column on the Gantt Table
|
static void |
addColumnMovedListener(javax.swing.JTable table,
JTableUtils.ColumnMovedListener listener)
Registers a column moved listener to the table which is notified when the column has been moved.
|
static void |
addColumnResizedListener(javax.swing.JTable table,
JTableUtils.ColumnResizedListener listener)
Registers a column resized listener to the table which is notified when the column is resized.
|
static void |
addCustomerColumnsForActivity(ilog.views.gantt.IlvGanttChart gChart,
IGanttConfigInfo ganttConfigInfo) |
static void |
addCustomerColumnsForResource(ilog.views.gantt.IlvScheduleChart chart) |
static void |
addDoubleClickOnRowAction(ilog.views.gantt.IlvHierarchyChart chart,
javax.swing.Action action)
Adds an Action to the double click event on the Table for the given chart.
|
static void |
addShowWorkForSelectedResourceToTable(ilog.views.gantt.IlvHierarchyChart chart)
Registers a "show work" action against the double click event of the chart's table
|
static void |
applyTableColumnSizes(javax.swing.JTable atable,
JTableUtils.GanttConfigAccessor accessor)
Given the
JTable and the JTableUtils.GanttConfigAccessor apply the table column sizes to the table |
static void |
ensureRightMostColumnFillsTable(javax.swing.JTable table)
Ensures that the right most column fills available space in a table view
|
static java.lang.String |
getColumnNameForProperty(java.lang.String prop)
Given the property name, return corresponding table column id
|
static java.lang.String |
getPropertyNameForColumn(java.lang.String col)
Given the table column name, return the corresponding property name
|
static boolean |
hasColumn(ilog.views.gantt.swing.IlvJTable rtable,
java.lang.Object identifier)
Returns true is the column identifier exists for the Table
|
static void |
registerUserPropertyUpdateListener(javax.swing.JTable atable,
java.lang.String objectName) |
static JTableUtils.GanttConfigAccessor |
resourceConfigAccessor(IGanttConfigInfo ganttConfigInfo)
Adapter for getting the
JTableUtils.GanttConfigAccessor implementation from the IGanttConfigInfo |
static void |
setDisplayFormatForColum(ilog.views.gantt.swing.IlvJTable table,
ilog.views.gantt.swing.IlvJTableColumn column,
IMXGanttPropertyInfo actproptinfo)
set data format from user locale
|
public static java.lang.String getColumnNameForProperty(java.lang.String prop)
public static java.lang.String getPropertyNameForColumn(java.lang.String col)
public static void addColumnMovedListener(javax.swing.JTable table, JTableUtils.ColumnMovedListener listener)
table
- listener
- public static void addColumnResizedListener(javax.swing.JTable table, JTableUtils.ColumnResizedListener listener)
table
- listener
- public static void registerUserPropertyUpdateListener(javax.swing.JTable atable, java.lang.String objectName)
public static JTableUtils.GanttConfigAccessor activityConfigAccessor(IGanttConfigInfo ganttConfigInfo)
JTableUtils.GanttConfigAccessor
implementation from the IGanttConfigInfo
ganttConfigInfo
- public static JTableUtils.GanttConfigAccessor resourceConfigAccessor(IGanttConfigInfo ganttConfigInfo)
JTableUtils.GanttConfigAccessor
implementation from the IGanttConfigInfo
ganttConfigInfo
- public static void applyTableColumnSizes(javax.swing.JTable atable, JTableUtils.GanttConfigAccessor accessor)
JTable
and the JTableUtils.GanttConfigAccessor
apply the table column sizes to the tableatable
- accessor
- public static void ensureRightMostColumnFillsTable(javax.swing.JTable table)
table
- public static void addCustomerColumnsForResource(ilog.views.gantt.IlvScheduleChart chart)
public static void addCustomerColumnsForActivity(ilog.views.gantt.IlvGanttChart gChart, IGanttConfigInfo ganttConfigInfo)
public static void setDisplayFormatForColum(ilog.views.gantt.swing.IlvJTable table, ilog.views.gantt.swing.IlvJTableColumn column, IMXGanttPropertyInfo actproptinfo)
public static void addActivtyActionsToTable(ilog.views.gantt.swing.IlvJTable table, ilog.views.gantt.IlvGanttChart gChart)
public static void addDoubleClickOnRowAction(ilog.views.gantt.IlvHierarchyChart chart, javax.swing.Action action)
chart
- action
- public static void addShowWorkForSelectedResourceToTable(ilog.views.gantt.IlvHierarchyChart chart)
chart
- public static boolean hasColumn(ilog.views.gantt.swing.IlvJTable rtable, java.lang.Object identifier)
rtable
- identifier
-