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 int
leadingTabIndex
javax.swing.JButton
scrollBackwardButton
javax.swing.JButton
scrollForwardButton
PlasticTabbedPaneUI.ScrollableTabPanel
tabPanel
private java.awt.Point
tabViewPosition
PlasticTabbedPaneUI.ScrollableTabViewport
viewport
-
Constructor Summary
Constructors Constructor Description ScrollableTabSupport(int tabPlacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
ActionListener for the scroll buttons.(package private) void
createButtons()
Recreates the scroll buttons and adds them to the TabbedPane.void
scrollBackward(int tabPlacement)
void
scrollForward(int tabPlacement)
void
setLeadingTabIndex(int tabPlacement, int index)
void
stateChanged(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:
stateChanged
in interfacejavax.swing.event.ChangeListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
ActionListener for the scroll buttons.- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
-