public class CompareView extends View implements SimpleMessageBus.MessageHandler, NextChangeAction.HasNext, PrevChangeAction.HasPrevious
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPARE_SCENARIOS_EVENT_NAME |
static java.lang.String |
PROPERTY_COMPARE_MODIFIED |
static java.lang.String |
PROPERTY_COMPARE_NEW |
static java.lang.String |
VIEW_ID |
| Constructor and Description |
|---|
CompareView(Viewer viewer)
Creates a Compare view
|
| Modifier and Type | Method and Description |
|---|---|
void |
compare(java.lang.String p1id,
java.lang.String p1name,
java.lang.String p2id,
java.lang.String p2name,
java.lang.Class compareItemType)
Sets up the view comparing the 2 scenarios using the given comare item type
|
CompareItem<? extends ilog.views.gantt.IlvHierarchyChart> |
createChart(java.lang.String id,
java.lang.String name,
java.lang.Class compareItemType)
Creates the view of the given compare type for the given scenario id and name
|
javax.swing.JComponent |
getSecondaryComponent()
returns the chart as the secondary component for the view
|
void |
handleMessage(java.lang.String msgId,
java.lang.Object... args)
Handles the "compare_scenarios" event which is fired when the user requests the maximo dialog to select one or
more scenarios for comparison.
|
boolean |
isChartsLoaded()
Return true if both charts are loaded
|
void |
navigate(int dir)
navigates the selected, modified item to the next modified item based on the direction.
|
void |
next()
navigate to the next difference
|
void |
performAction(ViewerAbstractAction action,
java.awt.event.ActionEvent event)
Executes the given action (if it has been registered).
|
void |
previous()
Navigate to the previous difference
|
void |
setAsCurrentView()
Called to setup the current view consisting of 2 charts for comparison
|
void |
swapCharts()
Swap the top and bottom chart positions
|
applyStyle, deSelectAll, getContextualAction, getDefaultTransformer, getID, getMainComponent, getName, getViewer, initialize, isRegisteredAction, isStylable, registerAction, setSelected, unregisterActionpublic static final java.lang.String PROPERTY_COMPARE_NEW
public static final java.lang.String PROPERTY_COMPARE_MODIFIED
public static final java.lang.String COMPARE_SCENARIOS_EVENT_NAME
public static final java.lang.String VIEW_ID
public CompareView(Viewer viewer)
viewer - public void setAsCurrentView()
setAsCurrentView in class Viewpublic void performAction(ViewerAbstractAction action, java.awt.event.ActionEvent event)
ViewperformAction in class Viewaction - The action.event - The event to forward.public javax.swing.JComponent getSecondaryComponent()
getSecondaryComponent in class Viewpublic void handleMessage(java.lang.String msgId,
java.lang.Object... args)
handleMessage in interface SimpleMessageBus.MessageHandlermsgId - message/event idargs - message/event parameterspublic void compare(java.lang.String p1id,
java.lang.String p1name,
java.lang.String p2id,
java.lang.String p2name,
java.lang.Class compareItemType)
p1id - p1name - p2id - p2name - compareItemType - public CompareItem<? extends ilog.views.gantt.IlvHierarchyChart> createChart(java.lang.String id, java.lang.String name, java.lang.Class compareItemType)
id - name - compareItemType - public void swapCharts()
public void previous()
previous in interface PrevChangeAction.HasPreviouspublic void next()
next in interface NextChangeAction.HasNextpublic boolean isChartsLoaded()
public void navigate(int dir)
dir -