| 
 | JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
com.jidesoft.pane.FloorTabbedPane
public class FloorTabbedPane
FloorTabbedPane is a different version of JTabbedPane. As we all know,
 JTabbedPane provides a way to organize multiple panes and allows user to see one pane at a time.
 FloorTabbedPane serves the same purpose. However it organizes the panes in a vertical way like as you
 see in Outlook Bar as in Microsoft Outlook 2000. Since it looks like a multiple-floor building, thus gets the name of
 FloorTabbedPane.
 
FloorTabbedPane are the same as JTabbedPane. We even keep the
 name of methods to be the same so that you easily convert from JTabbedPane to
 FloorTabbedPane.
 
 When switching the tab, you can see animation. You do have control over the speed of the animation. setInitDelay(int) is how many millisecond delay when you click on a new tab. setSteps(int) is how many
 steps during the animation - the large number, the more smooth. setStepDelay(int) is the delay between each
 step.
 
 You can also add PropertyChangeListener to listen for PERCENTAGE_PROPERTY change. It will
 fired during hen animation. The value will 100 when animates starts and 0 when animation ends. So you can use this
 value to determine if the FloorTabbedPane is in animation.
 
| Nested Class Summary | |
|---|---|
| protected  class | FloorTabbedPane.AccessibleJTabbedPaneThis class implements accessibility support for the JTabbedPaneclass. | 
|  class | FloorTabbedPane.FloorButton | 
| 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> | _buttonsButtons. | 
| protected  int | _nextIndex | 
| protected  int | _percentage | 
| protected  int | _prevIndex | 
| static String | PERCENTAGE_PROPERTY | 
| static String | PROPERTY_ORIENTATION | 
| 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 | |
|---|---|
| FloorTabbedPane()Creates FloorTabbedPane with default animation settings for tab switching animation. | |
| FloorTabbedPane(int initDelay,
                int stepDelay,
                int steps)Creates FloorTabbedPane with specified animation settings for tab switching animation. | |
| Method Summary | |
|---|---|
| protected  AbstractButton | createButton(Action action)Creates the button used by FloorTabbedPane. | 
| protected  LayoutManager | createLayout() | 
| protected  Action | createSwitchPageAction(String title,
                       Icon icon,
                       int index) | 
| protected  void | customizeButton(AbstractButton button)Customizes the button used by FloorTabbedPane. | 
|  AccessibleContext | getAccessibleContext()Gets the AccessibleContext associated with this JTabbedPane. | 
|  Function | getAnimationFunction()Gets the animation function that is used to animate the showing effect of the content. | 
|  Color | getBackgroundAt(int index) | 
|  Vector<AbstractButton> | getButtons()Gets the buttons used by this FloorTabbedPane in a Vector. | 
|  Icon | getDisabledIconAt(int index) | 
|  int | getDisplayedMnemonicIndexAt(int tabIndex) | 
|  Color | getForegroundAt(int index) | 
|  Icon | getIconAt(int index) | 
|  int | getInitDelay()Gets the initial delay when the button is pressed before it starts to switch. | 
|  int | getMnemonicAt(int tabIndex) | 
|  int | getNextIndex()Gets the next selected tab index. | 
|  int | getOrientation()Gets the orientation. | 
|  int | getPercentage()Gets the percentage that the animation has accomplished. | 
|  int | getPrevIndex()Gets the previous selected tab index. | 
|  int | getStepDelay()Gets the delay in each step during animation. | 
|  int | getSteps()Gets how many steps in the animation. | 
|  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) | 
|  void | removeTabAt(int index)Overrides to remove the button for the tab index. | 
|  void | setAnimationFunction(Function animationFunction)Sets the animation function. | 
|  void | setBackgroundAt(int index,
                Color background) | 
|  void | setDisabledIconAt(int index,
                  Icon disabledIcon) | 
|  void | setDisplayedMnemonicIndexAt(int tabIndex,
                            int mnemonicIndex) | 
|  void | setEnabledAt(int index,
             boolean enabled) | 
|  void | setForegroundAt(int index,
                Color foreground) | 
|  void | setIconAt(int index,
          Icon icon) | 
|  void | setInitDelay(int initDelay)Sets the initial delay when the button is pressed before it starts to switch, in ms. | 
|  void | setMnemonicAt(int tabIndex,
              int mnemonic) | 
|  void | setOrientation(int orientation)Sets the orientation. | 
|  void | setSelectedIndex(int index)Sets the selected index. | 
|  void | setStepDelay(int stepDelay)Sets the delay in each step during animation, in ms. | 
|  void | setSteps(int steps)Sets how many steps in the animation, default is 10 steps. | 
|  void | setTitleAt(int index,
           String title) | 
|  void | setToolTipTextAt(int index,
                 String toolTipText) | 
| protected  void | updateButtonSelectionState(int index)Selects the button that represents the selected tab. | 
|  void | updateUI()Resets the UI property to a value from the current look and feel. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected Vector<AbstractButton> _buttons
protected int _percentage
protected int _nextIndex
protected int _prevIndex
public static String PERCENTAGE_PROPERTY
public static String PROPERTY_ORIENTATION
| Constructor Detail | 
|---|
public FloorTabbedPane()
public FloorTabbedPane(int initDelay,
                       int stepDelay,
                       int steps)
initDelay - the initial delay before animation starts. The value is in milliseconds.stepDelay - the delay between each step. The value is in milliseconds.steps - the number of steps in the animation. The larger number, the more smooth the animation.| Method Detail | 
|---|
public void updateUI()
updateUI in class JTabbedPaneJComponent.updateUI()protected LayoutManager createLayout()
protected Action createSwitchPageAction(String title,
                                        Icon icon,
                                        int index)
public int getPercentage()
public Vector<AbstractButton> getButtons()
public int getPrevIndex()
public int getNextIndex()
public void removeTabAt(int index)
removeTabAt in class JTabbedPaneindex - the tab index
public void insertTab(String title,
                      Icon icon,
                      Component component,
                      String tip,
                      int index)
insertTab in class JTabbedPanetitle - the title to be displayed in this tabicon - the icon to be displayed in this tabcomponent - The component to be displayed when this tab is clicked.tip - the tooltip to be displayed for this tabindex - the position to insert this new tabprotected AbstractButton createButton(Action action)
action - the action for the button.
public void setSelectedIndex(int index)
setSelectedIndex in class JTabbedPaneindex - the new selected indexprotected void updateButtonSelectionState(int index)
index - the selected tab index.public int getMnemonicAt(int tabIndex)
getMnemonicAt in class JTabbedPane
public void setMnemonicAt(int tabIndex,
                          int mnemonic)
setMnemonicAt in class JTabbedPanepublic int getDisplayedMnemonicIndexAt(int tabIndex)
getDisplayedMnemonicIndexAt in class JTabbedPane
public void setDisplayedMnemonicIndexAt(int tabIndex,
                                        int mnemonicIndex)
setDisplayedMnemonicIndexAt in class JTabbedPane
public void setTitleAt(int index,
                       String title)
setTitleAt in class JTabbedPanepublic String getTitleAt(int index)
getTitleAt in class JTabbedPanepublic Icon getIconAt(int index)
getIconAt in class JTabbedPane
public void setIconAt(int index,
                      Icon icon)
setIconAt in class JTabbedPanepublic Icon getDisabledIconAt(int index)
getDisabledIconAt in class JTabbedPane
public void setDisabledIconAt(int index,
                              Icon disabledIcon)
setDisabledIconAt in class JTabbedPanepublic String getToolTipTextAt(int index)
getToolTipTextAt in class JTabbedPane
public void setToolTipTextAt(int index,
                             String toolTipText)
setToolTipTextAt in class JTabbedPanepublic boolean isEnabledAt(int index)
isEnabledAt in class JTabbedPane
public void setEnabledAt(int index,
                         boolean enabled)
setEnabledAt in class JTabbedPane
public void setForegroundAt(int index,
                            Color foreground)
setForegroundAt in class JTabbedPanepublic Color getForegroundAt(int index)
getForegroundAt in class JTabbedPane
public void setBackgroundAt(int index,
                            Color background)
setBackgroundAt in class JTabbedPanepublic Color getBackgroundAt(int index)
getBackgroundAt in class JTabbedPanepublic int getInitDelay()
public void setInitDelay(int initDelay)
initDelay - the initial delaypublic int getStepDelay()
public void setStepDelay(int stepDelay)
stepDelay - the delay in each steppublic int getSteps()
public void setSteps(int steps)
steps - number of the steps. It should be a non-negative integer. Otherwise, IllegalArgumentException will
              be thrown.
IllegalArgumentException - if the steps value is less than 0.public Function getAnimationFunction()
public void setAnimationFunction(Function animationFunction)
animationFunction - the animation function.protected void customizeButton(AbstractButton button)
button - the button to be customizedpublic int getOrientation()
public void setOrientation(int orientation)
orientation - the orientation. The valid value is SwingContent.HORIZONTAL and SwingContent.VERTICAL.public AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JTabbedPane| 
 | JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||