Package org.graffiti.plugin.inspector
Class SubtabHostTab
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.graffiti.plugin.inspector.InspectorTab
org.graffiti.plugin.inspector.SubtabHostTab
- All Implemented Interfaces:
 ComponentListener,ImageObserver,MenuContainer,Serializable,EventListener,ContainsTabbedPane,ViewListener,SelectionListener,SessionListener
public class SubtabHostTab extends InspectorTab implements SessionListener, ViewListener, ContainsTabbedPane, SelectionListener
- Author:
 - klukas
 - See Also:
 - Serialized Form
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior - 
Field Summary
Fields inherited from class org.graffiti.plugin.inspector.InspectorTab
editPanel, PREFERENCE_TAB_SHOW, TAB_LEADING, TAB_RANDOM, TAB_TRAILINGFields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH - 
Constructor Summary
Constructors Constructor Description SubtabHostTab(String title)SubtabHostTab(String title, Collection<InspectorTab> subtabs)SubtabHostTab(String title, InspectorTab[] inspectorTabs) - 
Method Summary
Modifier and Type Method Description voidaddTab(InspectorTab tab, ImageIcon icon)Adds a tab to the inspector.voidcomponentShown(ComponentEvent e)This componentShown callback is only called for the upmost tab and not it's children.JTabbedPanegetTabbedPane()Collection<InspectorTab>getTabs()voidhideTab(InspectorTab tab)booleanisSelectionListener()voidpostAttributeAdded(AttributeEvent e)voidpostAttributeChanged(AttributeEvent e)voidpostAttributeRemoved(AttributeEvent e)voidpreAttributeAdded(AttributeEvent e)voidpreAttributeChanged(AttributeEvent e)voidpreAttributeRemoved(AttributeEvent e)voidremoveTab(InspectorTab tab)Removes a tab from the inspector.voidselectionChanged(SelectionEvent e)Is called, if something in the selection model changed.voidselectionListChanged(SelectionEvent e)Is called, if a named selection is added or removed.voidsessionChanged(Session s)This method is called when the session changes.voidsessionDataChanged(Session s)This method is called when the data (except the graph data) are changed.voidsetEditPanelInformation(Map<?,?> valueEditComponents, Map<GraphElement,GraphElement> map)voidshowTab(InspectorTab tab)voidtransactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)voidtransactionStarted(TransactionEvent e)voidviewChanged(View v)This method is called when the view changes.booleanvisibleForView(View v)Methods inherited from class org.graffiti.plugin.inspector.InspectorTab
componentHidden, componentMoved, componentResized, focusAndHighlight, focusAndHighlightComponent, getEditPanel, getIcon, getName, getPreferredTabPosition, getTabParentPath, getTitle, setEditPanelComponentMap, setEditPanelGraphElementMap, setIcon, setPreferredTabPositionMethods inherited from class javax.swing.JComponent
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, getUI, getUIClassID, 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, updateUIMethods inherited from class java.awt.Container
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, validateMethods inherited from class java.awt.Component
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, getAccessibleContext, 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, 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, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle 
- 
Constructor Details
- 
SubtabHostTab
 - 
SubtabHostTab
 - 
SubtabHostTab
 
 - 
 - 
Method Details
- 
visibleForView
- Specified by:
 visibleForViewin classInspectorTab
 - 
componentShown
This componentShown callback is only called for the upmost tab and not it's children. To send the component shown to the visible children we recurse this event- Specified by:
 componentShownin interfaceComponentListener- Overrides:
 componentShownin classInspectorTab- Parameters:
 e-
 - 
sessionChanged
Description copied from interface:SessionListenerThis method is called when the session changes.- Specified by:
 sessionChangedin interfaceSessionListener- Parameters:
 s- the new Session.
 - 
getTabs
 - 
addTab
Adds a tab to the inspector.- Parameters:
 tab- the tab to add to the inspector.
 - 
removeTab
Removes a tab from the inspector.- Parameters:
 tab- the tab to remove from the inspector.
 - 
hideTab
 - 
showTab
 - 
sessionDataChanged
Description copied from interface:SessionListenerThis method is called when the data (except the graph data) are changed.- Specified by:
 sessionDataChangedin interfaceSessionListener
 - 
viewChanged
Description copied from interface:ViewListenerThis method is called when the view changes. This method is not called when another session is activated. ImplementSessionListenerif you are interested in session changed events.- Specified by:
 viewChangedin interfaceViewListener- Parameters:
 v- the new View.
 - 
getTabbedPane
- Specified by:
 getTabbedPanein interfaceContainsTabbedPane
 - 
isSelectionListener
public boolean isSelectionListener()- Overrides:
 isSelectionListenerin classInspectorTab
 - 
selectionChanged
Description copied from interface:SelectionListenerIs called, if something in the selection model changed.- Specified by:
 selectionChangedin interfaceSelectionListener
 - 
selectionListChanged
Description copied from interface:SelectionListenerIs called, if a named selection is added or removed.- Specified by:
 selectionListChangedin interfaceSelectionListener
 - 
postAttributeAdded
 - 
postAttributeChanged
 - 
postAttributeRemoved
 - 
preAttributeAdded
 - 
preAttributeChanged
 - 
preAttributeRemoved
 - 
transactionFinished
public void transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status) - 
transactionStarted
 - 
setEditPanelInformation
public void setEditPanelInformation(Map<?,?> valueEditComponents, Map<GraphElement,GraphElement> map)- Overrides:
 setEditPanelInformationin classInspectorTab
 
 -