JIDE 3.5.15

com.jidesoft.docking
Class FrameContainer

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTabbedPane
                  extended by com.jidesoft.swing.JideTabbedPane
                      extended by com.jidesoft.docking.FrameContainer
All Implemented Interfaces:
ComponentListener, ContainerListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, SwingConstants

public class FrameContainer
extends JideTabbedPane
implements ComponentListener, ContainerListener, PropertyChangeListener

Container to hold DockableFrame when they are tabbed.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jidesoft.swing.JideTabbedPane
JideTabbedPane.ColorProvider, JideTabbedPane.GradientColorProvider, JideTabbedPane.IgnoreableSingleSelectionModel, JideTabbedPane.NoFocusButton, JideTabbedPane.PageLastFocusTracker, JideTabbedPane.TabListCellRenderer
 
Nested classes/interfaces inherited from class javax.swing.JTabbedPane
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.jidesoft.swing.JideTabbedPane
_focusChangeListener, _tabEditingAllowed, _tabEditValidator, BOLDACTIVETAB_PROPERTY, BOX_STYLE_PROPERTY, BUTTON_CLOSE, BUTTON_EAST, BUTTON_LIST, BUTTON_NORTH, BUTTON_SOUTH, BUTTON_WEST, COLOR_THEME_DEFAULT, COLOR_THEME_OFFICE2003, COLOR_THEME_VSNET, COLOR_THEME_WIN2K, COLOR_THEME_WINXP, GRIPPER_PROPERTY, HIDE_IF_ONE_TAB_PROPERTY, ONENOTE_COLOR_PROVIDER, PROPERTY_COLOR_THEME, PROPERTY_CONTENT_BORDER_INSETS, PROPERTY_DRAG_OVER_DISABLED, PROPERTY_SELECTED_INDEX, PROPERTY_SHOW_CLOSE_BUTTON_ON_MOUSE_OVER, PROPERTY_TAB_AREA_INSETS, PROPERTY_TAB_COLOR_PROVIDER, PROPERTY_TAB_INSETS, PROPERTY_TAB_LEADING_COMPONENT, PROPERTY_TAB_RESIZE_MODE, PROPERTY_TAB_SHAPE, PROPERTY_TAB_TRAILING_COMPONENT, RESIZE_MODE_COMPRESSED, RESIZE_MODE_DEFAULT, RESIZE_MODE_FIT, RESIZE_MODE_FIXED, RESIZE_MODE_NONE, SCROLL_TAB_ON_WHEEL_PROPERTY, SHAPE_BOX, SHAPE_DEFAULT, SHAPE_ECLIPSE, SHAPE_ECLIPSE3X, SHAPE_EXCEL, SHAPE_FLAT, SHAPE_OFFICE2003, SHAPE_ROUNDED_FLAT, SHAPE_ROUNDED_VSNET, SHAPE_VSNET, SHAPE_WINDOWS, SHAPE_WINDOWS_SELECTED, SHOW_CLOSE_BUTTON_ON_TAB_PROPERTY, SHOW_CLOSE_BUTTON_PROPERTY, SHOW_ICONS_PROPERTY, SHOW_TAB_AREA_PROPERTY, SHOW_TAB_BUTTONS_PROPERTY, SHOW_TAB_CONTENT_PROPERTY, SHRINK_TAB_PROPERTY, TAB_CLOSABLE_PROPERTY, USE_DEFAULT_SHOW_CLOSE_BUTTON_ON_TAB_PROPERTY, USE_DEFAULT_SHOW_ICONS_PROPERTY
 
Fields inherited from class javax.swing.JTabbedPane
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FrameContainer(DockingManager dockingManager)
           
FrameContainer(DockingManager dockingManager, int tabPlacement, int tabLayoutPolicy)
           
 
Method Summary
 void addTab(DockableFrame frame)
          A shortcut to add DOckableFrame as tab.
 void addTab(DockableFrame frame, boolean suppressEvents)
           
 void componentAdded(ContainerEvent e)
          Invoked when a component has been added to the container.
 void componentHidden(ComponentEvent e)
          Invoked when the component has been made invisible.
 void componentMoved(ComponentEvent e)
          Invoked when the component's position changes.
 void componentRemoved(ContainerEvent e)
          Invoked when a component has been removed from the container.
 void componentResized(ComponentEvent e)
          Invoked when the FrameContainer's size changes.
 void componentShown(ComponentEvent e)
          Invoked when the component has been made visible.
 int getAutohideHeight()
          Gets the height of the component when it's in auto-hide mode.
 com.jidesoft.docking.PreviousState getAutohidePreviousState()
          Gets the state before the component switch to auto-hide mode.
 int getAutohideWidth()
          Gets the width of the component when it's in auto-hide mode.
 int getDockedHeight()
          Gets the height when the component is docked inside a JFrame.
 int getDockedWidth()
          Gets the width when the component is docked inside a JFrame.
 int getDockID()
          Gets dock id.
 DockingManager getDockingManager()
          Gets the docking manager.
 com.jidesoft.docking.PreviousState getDockPreviousState()
          Gets the state before the component switch to dock mode.
 com.jidesoft.docking.PreviousState getFloatPreviousState()
          Gets the state before the component switch to floating mode.
 DockableFrame getFrame(int index)
           
 int getFrameIndex(DockableFrame frame)
           
 com.jidesoft.docking.PreviousState getHiddenPreviousState()
          Gets the state before the component switch to hidden mode.
 DockableFrame getSelectedFrame()
           
 Rectangle getUndockedBounds()
          Gets the un-restricted bounds.
 boolean hasFocusComponent()
          Checks if the JideTabbedPane has the focus component.
 void insertTab(DockableFrame frame, int index)
          A shortcut to insert DockableFrame as tab.
 void insertTab(DockableFrame frame, int index, boolean suppressEvents)
           
 boolean isAllAutohidable()
          Checks if all dockable frames in it is autohidable.
 boolean isAllAutohidable(int side)
          Checks if all dockable frames in it is autohidable and its preferred autohide side matches with the side passed in.
 boolean isAllFloatable()
          Checks if all dockable frames in it is floatable.
 boolean isAllHidable()
          Checks if all dockable frames in it is hidable.
 boolean isEnabledAt(int index)
           
 boolean isTabClosableAt(int tabIndex)
          Overrides to get the isHidable value from dockable frame.
 void popupSelectedIndex(int index)
           
 void propertyChange(PropertyChangeEvent evt)
          This method gets called when a bound property is changed.
 void remove(Component component, boolean suppressEvents)
           
 void repaintTabAreaAndContentBorder()
          Repaints the tab area and the content border if any.
 void resetDockID()
          Resets dock id.
 void setAutohideHeight(int h)
          Sets the height when the component is auto-hide.
 void setAutohidePreviousState(com.jidesoft.docking.PreviousState state)
          Saves the state before the compoennt switch to auto-hide mode.
 void setAutohideWidth(int w)
          Sets the width when the component is auto-hide.
 void setDockedHeight(int h)
          Sets the height when the component is docked inside a JFrame.
 void setDockedWidth(int w)
          Sets the width when the component is docked inside a JFrame.
 void setDockID(int id)
          Sets dock id.
 void setDockingManager(DockingManager dockingManager)
          Sets the docking Manager.
 void setDockPreviousState(com.jidesoft.docking.PreviousState state)
          Saves the state before the compoennt switch to dock mode.
 void setFloatPreviousState(com.jidesoft.docking.PreviousState state)
          Saves the state before the compoennt switch to floating mode.
 void setHiddenPreviousState(com.jidesoft.docking.PreviousState state)
          Saves the state before the compoennt switch to hidden mode.
 void setSelectedComponent(Component c)
           
 void setSelectedIndex(int index)
           
 void setSelectedIndex(int index, boolean suppressEvents)
           
 void setTitleAt(int index, String title)
           
 void setUndockedBounds(Rectangle bounds)
          Sets the un-restricted bounds.
 void updateUI()
          Resets the UI property to a value from the current look and feel.
 
Methods inherited from class com.jidesoft.swing.JideTabbedPane
add, addNotify, addTabEditingListener, calculateTabListPopupPosition, cancelTabEditing, clearVisComp, createFocusChangeListener, createNoFocusButton, createTabList, createTabListPopup, editTabAt, fireStateChanged, fireTabEditing, getCloseAction, getColorTheme, getContentBorderInsets, getDefaultColorTheme, getDefaultTabResizeMode, getDefaultTabStyle, getDisplayTitleAt, getEditingTabIndex, getIconForTab, getLastFocusedComponent, getPageLastFocusTrackers, getResourceString, getSelectedTabFont, getStringConverter, getTabAlignment, getTabAreaInsets, getTabAtLocation, getTabColorProvider, getTabEditingListeners, getTabEditingValidator, getTabHeight, getTabInsets, getTabLeadingComponent, getTabListCellRenderer, getTabResizeMode, getTabShape, getTabTrailingComponent, getUI, getUIClassID, hideTabListPopup, insertTab, isAutoFocusOnTabHideClose, isAutoRequestFocus, isBoldActiveTab, isCloseTabOnMouseMiddleButton, isDragOverDisabled, isHideOneTab, isHideTrailingWhileNoButtons, isLayoutTrailingComponentBeforeButtons, isRightClickSelect, isScrollSelectedTabOnWheel, isShowCloseButton, isShowCloseButtonOnMouseOver, isShowCloseButtonOnSelectedTab, isShowCloseButtonOnTab, isShowGripper, isShowIconsOnTab, isShowTabArea, isShowTabButtons, isShowTabContent, isSuppressSetSelectedIndex, isSuppressStateChangedEvents, isTabEditing, isTabEditingAllowed, isTabListPopupVisible, isTabShown, isUseDefaultShowCloseButtonOnTab, isUseDefaultShowIconsOnTab, moveSelectedTabTo, processMouseSelection, removeNotify, removeTabAt, removeTabEditingListener, repaintContentBorder, requestFocusForVisibleComponent, resetDefaultCloseAction, scrollSelectedTabToVisible, setAutoFocusOnTabHideClose, setAutoRequestFocus, setBoldActiveTab, setCloseAction, setCloseTabOnMouseMiddleButton, setColorTheme, setComponentAt, setContentBorderInsets, setDragOverDisabled, setHideOneTab, setHideTrailingWhileNoButtons, setLayoutTrailingComponentBeforeButtons, setRightClickSelect, setScrollSelectedTabOnWheel, setSelectedTabFont, setShowCloseButton, setShowCloseButtonOnMouseOver, setShowCloseButtonOnSelectedTab, setShowCloseButtonOnTab, setShowGripper, setShowIconsOnTab, setShowTabArea, setShowTabButtons, setShowTabContent, setStringConverter, setSuppressSetSelectedIndex, setSuppressStateChangedEvents, setTabAlignment, setTabAreaInsets, setTabClosableAt, setTabColorProvider, setTabEditingAllowed, setTabEditingValidator, setTabInsets, setTabLeadingComponent, setTabListCellRenderer, setTabResizeMode, setTabShape, setTabTrailingComponent, setUI, setUseDefaultShowCloseButtonOnTab, setUseDefaultShowIconsOnTab, showTabListPopup, stopTabEditing
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, paramString, remove, remove, removeAll, removeChangeListener, setBackgroundAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setToolTipTextAt
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameContainer

public FrameContainer(DockingManager dockingManager)

FrameContainer

public FrameContainer(DockingManager dockingManager,
                      int tabPlacement,
                      int tabLayoutPolicy)
Method Detail

updateUI

public void updateUI()
Resets the UI property to a value from the current look and feel.

Overrides:
updateUI in class JideTabbedPane
See Also:
JComponent.updateUI()

componentAdded

public void componentAdded(ContainerEvent e)
Invoked when a component has been added to the container.

Specified by:
componentAdded in interface ContainerListener

isEnabledAt

public boolean isEnabledAt(int index)
Overrides:
isEnabledAt in class JTabbedPane

componentRemoved

public void componentRemoved(ContainerEvent e)
Invoked when a component has been removed from the container.

Specified by:
componentRemoved in interface ContainerListener

componentResized

public void componentResized(ComponentEvent e)
Invoked when the FrameContainer's size changes. It will reset undocked bounds if it's floating or setDockedWidth and setDockedHeight if it's FRAMEDOCKED

Specified by:
componentResized in interface ComponentListener

componentMoved

public void componentMoved(ComponentEvent e)
Invoked when the component's position changes.

Specified by:
componentMoved in interface ComponentListener

componentShown

public void componentShown(ComponentEvent e)
Invoked when the component has been made visible.

Specified by:
componentShown in interface ComponentListener

componentHidden

public void componentHidden(ComponentEvent e)
Invoked when the component has been made invisible.

Specified by:
componentHidden in interface ComponentListener

addTab

public void addTab(DockableFrame frame)
A shortcut to add DOckableFrame as tab.

Parameters:
frame - a new dockable frame to be added.

addTab

public void addTab(DockableFrame frame,
                   boolean suppressEvents)

insertTab

public void insertTab(DockableFrame frame,
                      int index)
A shortcut to insert DockableFrame as tab.

Parameters:
frame - a new dockable frame
index - the index to be inserted

insertTab

public void insertTab(DockableFrame frame,
                      int index,
                      boolean suppressEvents)

setTitleAt

public void setTitleAt(int index,
                       String title)
Overrides:
setTitleAt in class JTabbedPane

remove

public void remove(Component component,
                   boolean suppressEvents)

setSelectedComponent

public void setSelectedComponent(Component c)
Overrides:
setSelectedComponent in class JTabbedPane

setSelectedIndex

public void setSelectedIndex(int index,
                             boolean suppressEvents)

setSelectedIndex

public void setSelectedIndex(int index)
Overrides:
setSelectedIndex in class JideTabbedPane

popupSelectedIndex

public void popupSelectedIndex(int index)
Overrides:
popupSelectedIndex in class JideTabbedPane

getDockingManager

public DockingManager getDockingManager()
Description copied from interface: Dockable
Gets the docking manager.

Returns:
the Docking Manager that manages this Dockable.

setDockingManager

public void setDockingManager(DockingManager dockingManager)
Description copied from interface: Dockable
Sets the docking Manager.

Parameters:
dockingManager - new docking manager

setDockedWidth

public void setDockedWidth(int w)
Sets the width when the component is docked inside a JFrame.

Parameters:
w - new width

setDockedHeight

public void setDockedHeight(int h)
Sets the height when the component is docked inside a JFrame.

Parameters:
h - new height

setAutohideWidth

public void setAutohideWidth(int w)
Sets the width when the component is auto-hide.

Parameters:
w - new width

setAutohideHeight

public void setAutohideHeight(int h)
Sets the height when the component is auto-hide.

Parameters:
h - new height

getDockedWidth

public int getDockedWidth()
Gets the width when the component is docked inside a JFrame.

Returns:
width

getDockedHeight

public int getDockedHeight()
Gets the height when the component is docked inside a JFrame.

Returns:
height

getAutohideWidth

public int getAutohideWidth()
Gets the width of the component when it's in auto-hide mode.

Returns:
width

getAutohideHeight

public int getAutohideHeight()
Gets the height of the component when it's in auto-hide mode.

Returns:
height

setUndockedBounds

public void setUndockedBounds(Rectangle bounds)
Sets the un-restricted bounds. Unrestricted means when the dockable compoenent is in floating mode.

Parameters:
bounds - new bounds

getUndockedBounds

public Rectangle getUndockedBounds()
Gets the un-restricted bounds. Unrestricted means when the dockable compoenent is in floating mode.

Returns:
undocked bounds

getDockID

public int getDockID()
Description copied from interface: Dockable
Gets dock id.

Returns:
the an int id that unique identify the component.

setDockID

public void setDockID(int id)
Description copied from interface: Dockable
Sets dock id.

Parameters:
id - new id

resetDockID

public void resetDockID()
Description copied from interface: Dockable
Resets dock id. It basically get a new id and discard the old one.


getSelectedFrame

public DockableFrame getSelectedFrame()

getFrame

public DockableFrame getFrame(int index)

getFrameIndex

public int getFrameIndex(DockableFrame frame)

setHiddenPreviousState

public void setHiddenPreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to hidden mode.


getHiddenPreviousState

public com.jidesoft.docking.PreviousState getHiddenPreviousState()
Gets the state before the component switch to hidden mode.

Returns:
state

setDockPreviousState

public void setDockPreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to dock mode.


getDockPreviousState

public com.jidesoft.docking.PreviousState getDockPreviousState()
Gets the state before the component switch to dock mode.

Returns:
state

setFloatPreviousState

public void setFloatPreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to floating mode.


getFloatPreviousState

public com.jidesoft.docking.PreviousState getFloatPreviousState()
Gets the state before the component switch to floating mode.

Returns:
state

setAutohidePreviousState

public void setAutohidePreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to auto-hide mode.


getAutohidePreviousState

public com.jidesoft.docking.PreviousState getAutohidePreviousState()
Gets the state before the component switch to auto-hide mode.

Returns:
state before it is auto-hided

propertyChange

public void propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed.

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - A PropertyChangeEvent object describing the event source and the property that has changed.

isAllFloatable

public boolean isAllFloatable()
Checks if all dockable frames in it is floatable. If one of them is not floatable, return false. Otherwise, return true.

Returns:
true if all are floatable. Otherwise return false.

isAllAutohidable

public boolean isAllAutohidable()
Checks if all dockable frames in it is autohidable. If one of them is not autohidable, return false. Otherwise, return true.

Returns:
true if all are autohidable. Otherwise return false.

isAllAutohidable

public boolean isAllAutohidable(int side)
Checks if all dockable frames in it is autohidable and its preferred autohide side matches with the side passed in. If one of them is not true, return false. Otherwise, return true.

Parameters:
side - the autohide side.
Returns:
true if all are autohidable. Otherwise return false.
See Also:
isAllHidable()

isAllHidable

public boolean isAllHidable()
Checks if all dockable frames in it is hidable. If one of them is not hidable, return false. Otherwise, return true.

Returns:
true if all are hidable. Otherwise return false.

isTabClosableAt

public boolean isTabClosableAt(int tabIndex)
Overrides to get the isHidable value from dockable frame.

Overrides:
isTabClosableAt in class JideTabbedPane
Parameters:
tabIndex - the tab index.
Returns:
the corresponding dockable frame's hidable attribute.

hasFocusComponent

public boolean hasFocusComponent()
Description copied from class: JideTabbedPane
Checks if the JideTabbedPane has the focus component. If true, in some styles such as Office2003 style, we will paint a background on the insets to indicate the tabbed pane has focus.

Overrides:
hasFocusComponent in class JideTabbedPane
Returns:
true if the JideTabbedPane has the focus component. Otherwise false.

repaintTabAreaAndContentBorder

public void repaintTabAreaAndContentBorder()
Description copied from class: JideTabbedPane
Repaints the tab area and the content border if any. This is mainly for the focus border in JideTabbedPane Office2003 and Eclipse3x style.

Overrides:
repaintTabAreaAndContentBorder in class JideTabbedPane

JIDE 3.5.15