JIDE 3.5.15

com.jidesoft.pane
Class BookmarkPane

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.pane.BookmarkPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class BookmarkPane
extends JTabbedPane

BookmarkPane is still in development mode. We used it in G8.2 TradingHierarchicalTableDemo as an example. However it's not ready for public usage yet.

See Also:
Serialized Form

Nested Class Summary
protected  class BookmarkPane.AccessibleJTabbedPane
          This class implements accessibility support for the JTabbedPane class.
 
Nested classes/interfaces inherited from class javax.swing.JTabbedPane
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
protected  Vector<AbstractButton> _buttons
          Buttons.
 
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
BookmarkPane()
          Creates FloorTabbedPane with default animation settings for tab switching animation.
 
Method Summary
protected  AbstractButton createButton(Action action)
          Creates the button used by FloorTabbedPane.
protected  void customizeButton(AbstractButton button)
          Customizes the button used by FloorTabbedPane.
 AccessibleContext getAccessibleContext()
          Gets the AccessibleContext associated with this JTabbedPane.
 Vector<AbstractButton> getButtons()
          Gets the buttons used by this TtabbedPane in a Vector.
 Icon getDisabledIconAt(int index)
           
 int getDisplayedMnemonicIndexAt(int tabIndex)
           
 Icon getIconAt(int index)
           
 int getMnemonicAt(int tabIndex)
           
 String getTitleAt(int index)
           
 String getToolTipTextAt(int index)
           
 void insertTab(String title, Icon icon, Component component, String tip, int index)
          Overrides to insert a button for this new tab.
 boolean isEnabledAt(int index)
           
 boolean isTabSelected(int tabIndex)
          Checks if the tab is selected.
protected  void paintComponent(Graphics g)
           
 void removeTabAt(int index)
          Overrides to remove the button for the tab index.
 void setDisabledIconAt(int index, Icon disabledIcon)
           
 void setDisplayedMnemonicIndexAt(int tabIndex, int mnemonicIndex)
           
 void setEnabledAt(int index, boolean enabled)
           
 void setIconAt(int index, Icon icon)
           
 void setMnemonicAt(int tabIndex, int mnemonic)
           
 void setTabSelected(int tabIndex, boolean selected)
          Sets the tab selected.
 void setTitleAt(int index, String title)
           
 void setToolTipTextAt(int index, String toolTipText)
           
 void updateUI()
          Resets the UI property to a value from the current look and feel.
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getForegroundAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getToolTipText, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, paramString, remove, remove, removeAll, removeChangeListener, setBackgroundAt, setComponentAt, setForegroundAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setUI
 
Methods inherited from class javax.swing.JComponent
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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, 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
 

Field Detail

_buttons

protected Vector<AbstractButton> _buttons
Buttons.

Constructor Detail

BookmarkPane

public BookmarkPane()
Creates FloorTabbedPane with default animation settings for tab switching animation.

Method Detail

paintComponent

protected void paintComponent(Graphics g)
Overrides:
paintComponent in class JComponent

updateUI

public void updateUI()
Resets the UI property to a value from the current look and feel. Don't call super.updateUI() since it shouldn't use default JTabbedPane UI at all.

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

getButtons

public Vector<AbstractButton> getButtons()
Gets the buttons used by this TtabbedPane in a Vector.

Returns:
vector of buttons.

removeTabAt

public void removeTabAt(int index)
Overrides to remove the button for the tab index. If the tab being removed is selected, it will try to select next tab unless the removd tab is the last one. If so, it will select previous tab.

Overrides:
removeTabAt in class JTabbedPane
Parameters:
index -

insertTab

public void insertTab(String title,
                      Icon icon,
                      Component component,
                      String tip,
                      int index)
Overrides to insert a button for this new tab.

Overrides:
insertTab in class JTabbedPane
Parameters:
title -
icon -
component -
tip -
index -

createButton

protected AbstractButton createButton(Action action)
Creates the button used by FloorTabbedPane. Subclass can override it to create its own button. But those buttons must implement UIResource. Otherwise, a runtime IllegalArgumentException will be thrown.

Parameters:
action -
Returns:
button used by FloorTabbedPane.

getMnemonicAt

public int getMnemonicAt(int tabIndex)
Overrides:
getMnemonicAt in class JTabbedPane

setMnemonicAt

public void setMnemonicAt(int tabIndex,
                          int mnemonic)
Overrides:
setMnemonicAt in class JTabbedPane

getDisplayedMnemonicIndexAt

public int getDisplayedMnemonicIndexAt(int tabIndex)
Overrides:
getDisplayedMnemonicIndexAt in class JTabbedPane

setDisplayedMnemonicIndexAt

public void setDisplayedMnemonicIndexAt(int tabIndex,
                                        int mnemonicIndex)
Overrides:
setDisplayedMnemonicIndexAt in class JTabbedPane

setTitleAt

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

getTitleAt

public String getTitleAt(int index)
Overrides:
getTitleAt in class JTabbedPane

getIconAt

public Icon getIconAt(int index)
Overrides:
getIconAt in class JTabbedPane

setIconAt

public void setIconAt(int index,
                      Icon icon)
Overrides:
setIconAt in class JTabbedPane

getDisabledIconAt

public Icon getDisabledIconAt(int index)
Overrides:
getDisabledIconAt in class JTabbedPane

setDisabledIconAt

public void setDisabledIconAt(int index,
                              Icon disabledIcon)
Overrides:
setDisabledIconAt in class JTabbedPane

getToolTipTextAt

public String getToolTipTextAt(int index)
Overrides:
getToolTipTextAt in class JTabbedPane

setToolTipTextAt

public void setToolTipTextAt(int index,
                             String toolTipText)
Overrides:
setToolTipTextAt in class JTabbedPane

isEnabledAt

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

setEnabledAt

public void setEnabledAt(int index,
                         boolean enabled)
Overrides:
setEnabledAt in class JTabbedPane

customizeButton

protected void customizeButton(AbstractButton button)
Customizes the button used by FloorTabbedPane. Subclass can override it to customize the button.

Parameters:
button -

getAccessibleContext

public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with this JTabbedPane. For tabbed panes, the AccessibleContext takes the form of an AccessibleJTabbedPane. A new AccessibleJTabbedPane instance is created if necessary.

Specified by:
getAccessibleContext in interface Accessible
Overrides:
getAccessibleContext in class JTabbedPane
Returns:
an AccessibleJTabbedPane that serves as the AccessibleContext of this JTabbedPane

isTabSelected

public boolean isTabSelected(int tabIndex)
Checks if the tab is selected.

Parameters:
tabIndex - the tab index.
Returns:
true if selected. Otherwise false.

setTabSelected

public void setTabSelected(int tabIndex,
                           boolean selected)
Sets the tab selected.

Parameters:
tabIndex - the tab index.
selected - true or false. True to select the tab.

JIDE 3.5.15