com.nonesole.swing.plaf.basic.tabbedpane.singlerow
Class SingleRowTabbedPane

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.nonesole.swing.plaf.basic.tabbedpane.closebutton.CloseButtonTabbedPane
                      extended by com.nonesole.swing.plaf.basic.tabbedpane.singlerow.SingleRowTabbedPane
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants

public class SingleRowTabbedPane
extends CloseButtonTabbedPane

Version:
1.1 2011-01-16 Jack Lee, 1.0 07/09/99
See Also:
http://crionics.com/products/opensource/faq/swing_ex/SwingExamples.html, Serialized Form

Nested Class Summary
 class SingleRowTabbedPane.SingleRowCloseButtonMouseAction
           
 
Nested classes/interfaces inherited from class com.nonesole.swing.plaf.basic.tabbedpane.closebutton.CloseButtonTabbedPane
CloseButtonTabbedPane.CloseButtonMouseAction
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static java.lang.String FIRST
           
static int FOUR_BUTTONS
           
static java.lang.String LAST
           
static java.lang.String LEFT_SHIFT
           
static java.lang.String NEXT
           
static int ONE_BUTTON
           
static java.lang.String PREVIOUS
           
static java.lang.String RIGHT_SHIFT
           
static java.lang.String ROTATE
           
static int TWO_BUTTONS
           
 
Fields inherited from class javax.swing.JTabbedPane
SCROLL_TAB_LAYOUT, WRAP_TAB_LAYOUT
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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, NORTH, NORTH_EAST, NORTH_WEST, 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
SingleRowTabbedPane()
           
SingleRowTabbedPane(int buttonCount, int buttonPlacement)
           
 
Method Summary
 int getButtonCount()
           
 int getButtonPlacement()
           
 java.awt.Dimension getButtonPreferredSize()
           
 javax.swing.JButton[] getButtons()
           
 int getVisibleCount()
           
 int getVisibleStartIndex()
           
 void insertTab(java.lang.String title, javax.swing.Icon icon, java.awt.Component component, java.lang.String tip, int index)
           
 boolean isVisibleTab(int index)
           
 void setButtonPreferredSize(java.awt.Dimension d)
           
 void setTabPlacement(int tabPlacement)
           
 void setVisibleCount(int visibleCount)
           
 void setVisibleStartIndex(int visibleStartIndex)
           
 int tabForCoordinate(int x, int y)
           
 
Methods inherited from class com.nonesole.swing.plaf.basic.tabbedpane.closebutton.CloseButtonTabbedPane
addCloseMouseListenerAction, addCloseMouseMotionAction, getCloseButtonRect, isEnabledAt
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabLayoutPolicy, setTitleAt, setToolTipTextAt, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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
 
Methods inherited from class java.awt.Container
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods 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, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROTATE

public static final java.lang.String ROTATE
See Also:
Constant Field Values

PREVIOUS

public static final java.lang.String PREVIOUS
See Also:
Constant Field Values

NEXT

public static final java.lang.String NEXT
See Also:
Constant Field Values

FIRST

public static final java.lang.String FIRST
See Also:
Constant Field Values

LEFT_SHIFT

public static final java.lang.String LEFT_SHIFT
See Also:
Constant Field Values

RIGHT_SHIFT

public static final java.lang.String RIGHT_SHIFT
See Also:
Constant Field Values

LAST

public static final java.lang.String LAST
See Also:
Constant Field Values

ONE_BUTTON

public static final int ONE_BUTTON
See Also:
Constant Field Values

TWO_BUTTONS

public static final int TWO_BUTTONS
See Also:
Constant Field Values

FOUR_BUTTONS

public static final int FOUR_BUTTONS
See Also:
Constant Field Values
Constructor Detail

SingleRowTabbedPane

public SingleRowTabbedPane()

SingleRowTabbedPane

public SingleRowTabbedPane(int buttonCount,
                           int buttonPlacement)
Method Detail

setTabPlacement

public void setTabPlacement(int tabPlacement)
Overrides:
setTabPlacement in class javax.swing.JTabbedPane

getButtonPlacement

public int getButtonPlacement()

setButtonPreferredSize

public void setButtonPreferredSize(java.awt.Dimension d)

getButtonPreferredSize

public java.awt.Dimension getButtonPreferredSize()

getButtons

public javax.swing.JButton[] getButtons()

getButtonCount

public int getButtonCount()

insertTab

public void insertTab(java.lang.String title,
                      javax.swing.Icon icon,
                      java.awt.Component component,
                      java.lang.String tip,
                      int index)
Overrides:
insertTab in class javax.swing.JTabbedPane

isVisibleTab

public boolean isVisibleTab(int index)

getVisibleCount

public int getVisibleCount()

setVisibleCount

public void setVisibleCount(int visibleCount)

getVisibleStartIndex

public int getVisibleStartIndex()

setVisibleStartIndex

public void setVisibleStartIndex(int visibleStartIndex)

tabForCoordinate

public int tabForCoordinate(int x,
                            int y)
Overrides:
tabForCoordinate in class CloseButtonTabbedPane