public class Viewer
extends javax.swing.JPanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
Viewer() |
Modifier and Type | Method and Description |
---|---|
void |
addCurrentViewListener(CurrentViewListener listener)
Adds the specified listener to receive notifications when the current view
has been changed.
|
void |
deSelectAll()
Deselects all objects.
|
ViewerAbstractAction |
getAction(java.lang.String actionID)
Returns an action.
|
AppletGanttModel |
getAppletModel()
Returns the appletmodel.
|
View |
getCurrentView()
Returns the current view.
|
java.lang.Object |
getModel()
Returns the model.
|
View |
getView(java.lang.String iD)
Returns the view identified by this ID.
|
boolean |
isCurrentView(View view)
Indicates whether the given view is set as current.
|
void |
registerAction(ViewerAbstractAction action)
Registers an action.
|
void |
removeCurrentViewListener(CurrentViewListener listener)
Removes the specified listener to receive notifications when the current
view has been changed.
|
void |
setAppletModel(AppletGanttModel appletmodel)
Sets the appletmodel.
|
void |
setCurrentView(View currentView)
Sets the current view and notifies listeners
|
void |
setModel(java.lang.Object model)
Sets the model.
|
void |
setSelected(java.lang.Object obj,
boolean selected)
Selects or deselects an object.
|
void |
unregisterAction(ViewerAbstractAction action)
Unregisters an action.
|
java.util.Collection<View> |
views()
Returns views.
|
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, removeAll, 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, getName, 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 void registerAction(ViewerAbstractAction action)
action
- The action.public void unregisterAction(ViewerAbstractAction action)
action
- The action.public ViewerAbstractAction getAction(java.lang.String actionID)
actionID
- The action ID.public void setAppletModel(AppletGanttModel appletmodel) throws AttachModelException
appletmodel
- The AppletGanttModel.AttachModelException
public void setModel(java.lang.Object model) throws AttachModelException
model
- The model.AttachModelException
public void setSelected(java.lang.Object obj, boolean selected)
obj
- The object to (de)select.selected
- The selection status.public void deSelectAll()
public java.lang.Object getModel()
public AppletGanttModel getAppletModel()
public void addCurrentViewListener(CurrentViewListener listener)
listener
- The listener that will be subscribed to subsequent view-change event.removeCurrentViewListener(com.ibm.tivoli.maximo.skd.applet.event.CurrentViewListener)
public void removeCurrentViewListener(CurrentViewListener listener)
listener
- The listener that will be unsubscribed from receiving view-change events.addCurrentViewListener(com.ibm.tivoli.maximo.skd.applet.event.CurrentViewListener)
public View getCurrentView()
public boolean isCurrentView(View view)
view
- The view.public void setCurrentView(View currentView)
currentView
- The current view.public java.util.Collection<View> views()
public View getView(java.lang.String iD)
iD
- The ID.null
.