public abstract class CompareItem<Chart extends ilog.views.gantt.IlvHierarchyChart>
extends javax.swing.JPanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
CompareItem(Viewer viewer,
java.lang.String id,
java.lang.String name,
ilog.views.gantt.IlvTimeScrollController timeController)
Creates a CompareItem using scenario id and the scenario name that is linked to the
IlvTimeScrollController |
Modifier and Type | Method and Description |
---|---|
void |
addChartDividerListener(ilog.views.gantt.event.ChartDividerListener listener)
Adds a listener that notifies as the divider is moved
|
void |
addVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener verticalScrollListener)
Adds a vertical scroll listener
|
void |
applyRegexFilter(java.lang.String filter)
Apply the regex filtering to the model
|
void |
attachModel(AppletGanttModel model)
Attaches the
IlvGanttModel to this view |
void |
configureSyncTo(CompareItem<? extends ilog.views.gantt.IlvHierarchyChart> chart2)
Configured this view to sync with the other view.
|
abstract Chart |
createChart(ilog.views.gantt.IlvGanttModel model,
ilog.views.gantt.IlvTimeScrollController timeController)
Sets the Chart into the view
|
static <T> T |
findComponent(java.awt.Container container,
java.lang.Class<T> type)
Find a component in the given container that matches the given type
|
Chart |
getChart()
Returns the
IlvHierarchyChart associated the view |
java.awt.Component |
getChartContainer()
Returns the container that holds the
IlvHierarchyChart |
int |
getDividerLocation()
returns the divider location
|
java.lang.String |
getId()
Returns the scenario's project id
|
java.util.Map<java.lang.String,ilog.views.gantt.IlvHierarchyNode> |
getIndexedItems()
Returns the Map of indexed activites
|
AppletGanttModel |
getModel()
Returns the
IlvGanttModel associated with the view |
java.lang.String |
getName()
Returns the scenario's name
|
static <T> T |
getParent(java.awt.Component c,
java.lang.Class<T> type)
Utility function for finding the parent of the given component that matches the given type
|
ilog.views.gantt.swing.IlvJTable |
getTable()
Returns the
IlvJTable associated with the view |
ilog.views.gantt.IlvTimeScrollController |
getTimeScrollController()
Returns the
IlvTimeScrollController associated with the view |
Viewer |
getViewer()
returns the viewer associated with this compare item
|
void |
makeVisible(ilog.views.gantt.IlvHierarchyNode node)
Makes a node visibible in the chart
|
void |
removeAll()
Removes all components from the view
|
void |
removeChartDividerListener(ilog.views.gantt.event.ChartDividerListener listener)
removes the chart divider listener
|
void |
removeVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener verticalScrollListener)
removes the vertical scroll listener
|
void |
setChartContainer(java.awt.Component chartContainer)
Sets the chart's container.
|
void |
setDividerLocation(int loc)
Set the current divider location
|
void |
setErrorMessage(java.lang.String message)
Sets the error message with the view (currently unused)
|
void |
setFiltering(boolean filtering)
enable/disable filtering
|
void |
setHeaderText(java.lang.String text)
Sets the Header/Title of the panel
|
void |
setSyncEnabled(boolean b)
Enables/Disables syncing of this view to another view
|
void |
setVerticalPosition(int value)
Sets the vertical position
|
void |
sync()
If sync is enabled, and there is another view already associated with this view,
then it will sync this view to the other view.
|
void |
unselectAll()
Unselects all records in the view
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public CompareItem(Viewer viewer, java.lang.String id, java.lang.String name, ilog.views.gantt.IlvTimeScrollController timeController)
IlvTimeScrollController
id
- name
- timeController
- public java.util.Map<java.lang.String,ilog.views.gantt.IlvHierarchyNode> getIndexedItems()
public Viewer getViewer()
public java.lang.String getId()
public java.lang.String getName()
getName
in class java.awt.Component
public Chart getChart()
IlvHierarchyChart
associated the viewpublic AppletGanttModel getModel()
IlvGanttModel
associated with the viewpublic ilog.views.gantt.IlvTimeScrollController getTimeScrollController()
IlvTimeScrollController
associated with the viewpublic ilog.views.gantt.swing.IlvJTable getTable()
IlvJTable
associated with the viewpublic void setDividerLocation(int loc)
loc
- public void addChartDividerListener(ilog.views.gantt.event.ChartDividerListener listener)
listener
- public void removeChartDividerListener(ilog.views.gantt.event.ChartDividerListener listener)
listener
- public void attachModel(AppletGanttModel model)
IlvGanttModel
to this viewmodel
- public java.awt.Component getChartContainer()
IlvHierarchyChart
public void sync()
public int getDividerLocation()
public void configureSyncTo(CompareItem<? extends ilog.views.gantt.IlvHierarchyChart> chart2)
chart2
- public void setSyncEnabled(boolean b)
b
- public void setVerticalPosition(int value)
value
- public void removeVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener verticalScrollListener)
verticalScrollListener
- public void addVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener verticalScrollListener)
verticalScrollListener
- public void setHeaderText(java.lang.String text)
text
- public abstract Chart createChart(ilog.views.gantt.IlvGanttModel model, ilog.views.gantt.IlvTimeScrollController timeController)
newChart
- public void removeAll()
removeAll
in class java.awt.Container
public void setErrorMessage(java.lang.String message)
message
- public static <T> T getParent(java.awt.Component c, java.lang.Class<T> type)
T
- c
- type
- public static <T> T findComponent(java.awt.Container container, java.lang.Class<T> type)
T
- container
- type
- public void setChartContainer(java.awt.Component chartContainer)
chartContainer
- public void setFiltering(boolean filtering)
filtering
- public void applyRegexFilter(java.lang.String filter)
public void unselectAll()
public void makeVisible(ilog.views.gantt.IlvHierarchyNode node)