Package com.jgoodies.looks.plastic
Class PlasticTabbedPaneUI.ScrollableTabSupport
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticTabbedPaneUI.ScrollableTabSupport
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener,javax.swing.event.ChangeListener
- Enclosing class:
- PlasticTabbedPaneUI
private final class PlasticTabbedPaneUI.ScrollableTabSupport extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.ChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description intleadingTabIndexjavax.swing.JButtonscrollBackwardButtonjavax.swing.JButtonscrollForwardButtonPlasticTabbedPaneUI.ScrollableTabPaneltabPanelprivate java.awt.PointtabViewPositionPlasticTabbedPaneUI.ScrollableTabViewportviewport
-
Constructor Summary
Constructors Constructor Description ScrollableTabSupport(int tabPlacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)ActionListener for the scroll buttons.(package private) voidcreateButtons()Recreates the scroll buttons and adds them to the TabbedPane.voidscrollBackward(int tabPlacement)voidscrollForward(int tabPlacement)voidsetLeadingTabIndex(int tabPlacement, int index)voidstateChanged(javax.swing.event.ChangeEvent e)
-
-
-
Field Detail
-
viewport
public PlasticTabbedPaneUI.ScrollableTabViewport viewport
-
tabPanel
public PlasticTabbedPaneUI.ScrollableTabPanel tabPanel
-
scrollForwardButton
public javax.swing.JButton scrollForwardButton
-
scrollBackwardButton
public javax.swing.JButton scrollBackwardButton
-
leadingTabIndex
public int leadingTabIndex
-
tabViewPosition
private final java.awt.Point tabViewPosition
-
-
Method Detail
-
createButtons
void createButtons()
Recreates the scroll buttons and adds them to the TabbedPane.
-
scrollForward
public void scrollForward(int tabPlacement)
-
scrollBackward
public void scrollBackward(int tabPlacement)
-
setLeadingTabIndex
public void setLeadingTabIndex(int tabPlacement, int index)
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Specified by:
stateChangedin interfacejavax.swing.event.ChangeListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
ActionListener for the scroll buttons.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
-