public class StateManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StateManager.AppState
Structure to holde the state of the entire application
|
static class |
StateManager.GanttState
Structure to hold the state of a Gantt view
|
static class |
StateManager.TableColState
Structure to hold the state of a table column
|
static class |
StateManager.TableState
Structure to hold the state of the a table
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EVENT_RESTORE_STATE
Called when the view requires its state to be restored.
|
static java.lang.String |
EVENT_SAVE_STATE
Called before the state is saved.
|
| Constructor and Description |
|---|
StateManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearState(java.lang.String project)
Removes the state for a given project id
|
static StateManager |
getInstance()
Return the single
StateManager instance |
StateManager.AppState |
getState(java.lang.String project)
Return the Application state for the given project id
|
boolean |
hasState(java.lang.String project)
Returns true if there is any state for a given project id
|
void |
restoreState(ilog.views.gantt.IlvGanttChart chart,
StateManager.GanttState state)
Restore the state for the given
IlvGanttChart |
StateManager.AppState |
restoreState(ilog.views.gantt.IlvGanttChart chart,
java.lang.String project)
Restore the state for the given
IlvGanttChart |
void |
restoreState(ilog.views.gantt.IlvScheduleChart chart,
StateManager.AppState state,
java.lang.String resId)
Restore the state for the given
IlvScheduleChart |
void |
restoreTableState(javax.swing.JTable table,
StateManager.TableState state)
Restores a
JTable state based on the given StateManager.TableState |
void |
saveState(ilog.views.gantt.IlvGanttChart chart,
StateManager.GanttState state)
Save the state of a given
IlvGanttChart |
StateManager.AppState |
saveState(ilog.views.gantt.IlvGanttChart chart,
java.lang.String project)
Save the state of a given
IlvGanttChart |
void |
saveState(ilog.views.gantt.IlvScheduleChart chart,
StateManager.AppState state,
java.lang.String resId)
Save the state for the given
IlvScheduleChart |
void |
saveTableState(javax.swing.JTable table,
StateManager.TableState state)
Given a
JTable push its state into the StateManager.TableState instance |
public static final java.lang.String EVENT_SAVE_STATE
StateManager.AppState stucture
"save_state"public static final java.lang.String EVENT_RESTORE_STATE
StateManager.AppState structure.
"restore_state"public static StateManager getInstance()
StateManager instancepublic StateManager.AppState getState(java.lang.String project)
project - public boolean hasState(java.lang.String project)
project - public void clearState(java.lang.String project)
project - public void saveTableState(javax.swing.JTable table,
StateManager.TableState state)
JTable push its state into the StateManager.TableState instancetable - state - public void saveState(ilog.views.gantt.IlvGanttChart chart,
StateManager.GanttState state)
IlvGanttChartpublic StateManager.AppState saveState(ilog.views.gantt.IlvGanttChart chart, java.lang.String project)
IlvGanttChartpublic void restoreTableState(javax.swing.JTable table,
StateManager.TableState state)
JTable state based on the given StateManager.TableStatetable - state - public void restoreState(ilog.views.gantt.IlvGanttChart chart,
StateManager.GanttState state)
IlvGanttChartchart - project - public StateManager.AppState restoreState(ilog.views.gantt.IlvGanttChart chart, java.lang.String project)
IlvGanttChartchart - project - public void saveState(ilog.views.gantt.IlvScheduleChart chart,
StateManager.AppState state,
java.lang.String resId)
IlvScheduleChartchart - state - resId - public void restoreState(ilog.views.gantt.IlvScheduleChart chart,
StateManager.AppState state,
java.lang.String resId)
IlvScheduleChartchart - state - resId -