public abstract class AbstractTabWindow extends DockingWindow
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
AbstractTabWindow(boolean showContent,
WindowItem windowItem) |
Modifier and Type | Method and Description |
---|---|
protected DropAction |
acceptInteriorDrop(java.awt.Point p,
DockingWindow window) |
void |
addTab(DockingWindow window)
Adds a window tab last in this tab window.
|
int |
addTab(DockingWindow window,
int index)
Inserts a window tab at an index in this tab window.
|
protected int |
addTabNoSelect(DockingWindow window,
int index) |
protected boolean |
childInsideTab() |
protected void |
clearChildrenFocus(DockingWindow child,
View view) |
protected void |
clearFocus(View view) |
protected void |
doRemoveWindow(DockingWindow window) |
protected void |
doReplace(DockingWindow oldWindow,
DockingWindow newWindow) |
DockingWindow |
getChildWindow(int index)
Returns the child window with index index.
|
int |
getChildWindowCount()
Returns the number of child windows.
|
java.util.List |
getCustomTabAreaComponents()
Returns a list containing the custom tab area components.
|
javax.swing.Icon |
getIcon()
Returns the icon for this window.
|
protected boolean |
getIgnoreSelected() |
protected DockingWindow |
getLocationWindow() |
protected DockingWindow |
getPreferredFocusChild() |
DockingWindow |
getSelectedWindow()
Returns the currently selected window in the tabbed panel.
|
protected int |
getTabAreaComponentCount() |
protected void |
getTabAreaComponents(int index,
javax.swing.JComponent[] components) |
protected TabbedPanel |
getTabbedPanel() |
abstract TabWindowProperties |
getTabWindowProperties()
Returns the properties for this tab window.
|
protected void |
initMouseListener() |
protected boolean |
isChildShowingInRootWindow(DockingWindow child) |
protected boolean |
isInsideTabArea(java.awt.Point p2) |
protected DockingWindow |
newRead(java.io.ObjectInputStream in,
ReadContext context,
ViewReader viewReader) |
protected DockingWindow |
oldRead(java.io.ObjectInputStream in,
ReadContext context) |
void |
setSelectedTab(int index)
Selects the tab with the index.
|
protected void |
setTabWindowProperties(TabWindowProperties properties) |
protected void |
showChildWindow(DockingWindow window) |
protected boolean |
showsWindowTitle() |
protected void |
tabSelected(net.infonode.docking.WindowTab tab) |
protected void |
updateSelectedTab() |
protected void |
updateTabAreaComponents() |
protected void |
write(java.io.ObjectOutputStream out,
WriteContext context,
ViewWriter viewWriter) |
acceptChildDrop, acceptSplitDrop, acceptsSplitWith, addListener, addTabMouseButtonListener, addWindow, addWindowItem, afterWindowRemoved, beforeDrop, beginOptimize, beginUpdateModel, childRemoved, cleanUpModel, close, closeWithAbort, createPropertyObject, createTabWindow, detach, doAcceptDrop, dock, dockWithAbort, endOptimize, endUpdateModel, fireTitleChanged, fireViewFocusChanged, fireWindowHidden, fireWindowShown, getAncestors, getBestFittedWindow, getChildEdgeDepth, getChildWindowIndex, getContentWindow, getEdgeDepth, getLastFocusedChildWindow, getOptimizedWindow, getPopupMenuFactory, getPreferredMinimizeDirection, getPropertyObject, getRootWindow, getTitle, getUpdateModel, getWindowItem, getWindowParent, getWindowProperties, hasParent, init, insideTab, internalClose, internalReplaceChildWindow, isClosable, isDockable, isMaximizable, isMaximized, isMinimizable, isMinimized, isRestorable, isShowingInRootWindow, isUndockable, isUndocked, makeVisible, maximize, maximizeWithAbort, minimize, minimize, minimizeWithAbort, minimizeWithAbort, needsTitleWindow, notifyListeners, optimizeAfter, optimizeWindowLayout, readLocations, removeChildWindow, removeListener, removeTabMouseButtonListener, removeWindow, replaceChildWindow, restore, restoreFocus, restoreWithAbort, rootChanged, setFocused, setLastMinimizedDirection, setPopupMenuFactory, setPreferredMinimizeDirection, split, split, startDrag, storeAncestors, toString, undock, undockWithAbort, update, updateButtonVisibility, updateWindowItem, updateWindowItem, updateWindowItems, writeLocations
setComponent, setSouthComponent
paintComponent, setBackground, setFont, setForeground, setOpaque, setUI
getAccessibleContext, getUI, getUIClassID, paramString, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocus, transferFocusBackward, transferFocusUpCycle
protected AbstractTabWindow(boolean showContent, WindowItem windowItem)
public abstract TabWindowProperties getTabWindowProperties()
protected void initMouseListener()
public final java.util.List getCustomTabAreaComponents()
Returns a list containing the custom tab area components. Changes to the list will be propagated to the tab area.
The custom tab area components will between the scroll buttons and the window buttons in the tab area components panel. The components are shown in the same order as they appear in the list. The tab area components container layout is rotated with the tab window tab orientation.
JComponent
public DockingWindow getSelectedWindow()
public void setSelectedTab(int index)
index
- the tab indexpublic void addTab(DockingWindow window)
window
- the windowpublic int addTab(DockingWindow window, int index)
window
- the windowindex
- the index where to insert the tabprotected int addTabNoSelect(DockingWindow window, int index)
protected boolean isChildShowingInRootWindow(DockingWindow child)
isChildShowingInRootWindow
in class DockingWindow
protected void showChildWindow(DockingWindow window)
showChildWindow
in class DockingWindow
protected boolean childInsideTab()
childInsideTab
in class DockingWindow
protected void setTabWindowProperties(TabWindowProperties properties)
protected void clearFocus(View view)
clearFocus
in class DockingWindow
protected DockingWindow getPreferredFocusChild()
getPreferredFocusChild
in class DockingWindow
protected void clearChildrenFocus(DockingWindow child, View view)
clearChildrenFocus
in class DockingWindow
protected int getTabAreaComponentCount()
protected void updateTabAreaComponents()
protected void getTabAreaComponents(int index, javax.swing.JComponent[] components)
protected final boolean getIgnoreSelected()
protected void tabSelected(net.infonode.docking.WindowTab tab)
protected TabbedPanel getTabbedPanel()
public DockingWindow getChildWindow(int index)
DockingWindow
getChildWindow
in class DockingWindow
index
- the child window indexprotected DockingWindow getLocationWindow()
getLocationWindow
in class DockingWindow
public int getChildWindowCount()
DockingWindow
getChildWindowCount
in class DockingWindow
public javax.swing.Icon getIcon()
DockingWindow
getIcon
in class DockingWindow
protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)
doReplace
in class DockingWindow
protected void doRemoveWindow(DockingWindow window)
doRemoveWindow
in class DockingWindow
protected boolean isInsideTabArea(java.awt.Point p2)
protected DropAction acceptInteriorDrop(java.awt.Point p, DockingWindow window)
acceptInteriorDrop
in class DockingWindow
protected boolean showsWindowTitle()
showsWindowTitle
in class DockingWindow
protected DockingWindow oldRead(java.io.ObjectInputStream in, ReadContext context) throws java.io.IOException
oldRead
in class DockingWindow
java.io.IOException
protected void write(java.io.ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) throws java.io.IOException
write
in class DockingWindow
java.io.IOException
protected DockingWindow newRead(java.io.ObjectInputStream in, ReadContext context, ViewReader viewReader) throws java.io.IOException
java.io.IOException
protected void updateSelectedTab()