Class DynamicTabbedPaneStyle
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
be.gaudry.swing.component.tabbedpane.DynamicTabbedPaneStyle
- All Implemented Interfaces:
SwingConstants
Implementation of a UI for the
DynamicTabbedPane component.
Package class because only the DynamicTabbedPane uses it.
Provided by the broldev.core.swing project.- Since:
- 1.0 (Jan 8, 2009), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Jan 8, 2009)
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classAllows to use buttons to close the tabsNested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler -
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
calcRect, contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKeyFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an instance of this UI with the ability to close tabsDynamicTabbedPaneStyle(boolean dynamicallyExpandable)Builds an instance of this UI with the ability to close tabs and open new tabs if parameter is true -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManagerprotected InsetsgetTabInsets(int tabPlacement, int tabIndex)Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, createUI, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, update
-
Constructor Details
-
DynamicTabbedPaneStyle
public DynamicTabbedPaneStyle()Builds an instance of this UI with the ability to close tabs -
DynamicTabbedPaneStyle
public DynamicTabbedPaneStyle(boolean dynamicallyExpandable)Builds an instance of this UI with the ability to close tabs and open new tabs if parameter is true- Parameters:
dynamicallyExpandable- true to allow the user to add tabs
-
-
Method Details
-
createLayoutManager
- Overrides:
createLayoutManagerin classBasicTabbedPaneUI
-
getTabInsets
- Overrides:
getTabInsetsin classBasicTabbedPaneUI
-