Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.ide.controls.customtab
Class CustomTab

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by oracle.ide.controls.customtab.CustomTab

All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ListDataListener, javax.swing.SwingConstants

public class CustomTab
extends javax.swing.JPanel
implements javax.swing.SwingConstants, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.ListDataListener

This component is the equivalent of the tabs on a JTabbedPane.

See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel

 

Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer

 

Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy

 

Field Summary
static double SELECTED_STYLE_CENTER
          The icon and text are centered
static double SELECTED_STYLE_FIXED
          The icon and text do not move when selected
static double SELECTED_STYLE_MOVE
          The icon and text move by the specified offsetSelected.

 

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
CustomTab(int position)
           
CustomTab(javax.swing.ListModel model, int position)
           

 

Method Summary
 void addListDataListener(javax.swing.event.ListDataListener listener)
          Equivalent to getModel().addListDataListener() except that by using this method, you are guaranteed that the selectedPage is already adjusted.
 void addSelectionListener(javax.swing.event.ListSelectionListener l)
           
 void contentsChanged(javax.swing.event.ListDataEvent e)
           
 void doLayout()
           
static java.awt.Color getColorLines()
           
 int getCornerSize()
           
 int getGapAboveLabel()
           
 int getGapAfterTabs()
           
 int getGapBeforeTabs()
           
 int getGapBelowLabel()
           
 int getGapBetweenTabs()
           
 int getGapCenter()
           
 int getGapClose()
           
 int getGapLeft()
           
 int getGapRight()
           
 java.awt.Dimension getMaximumSize()
           
 java.awt.Dimension getMinimumSize()
           
 int getMinTabHeight()
          Returns the minimum height for the tabs.
 javax.swing.ListModel getModel()
           
 int getOffsetSelected()
           
 CustomTabPage getPage(int at)
           
 int getPageAfter(int xPos)
          Gets the first page located after the xPos position.
 int getPageAt(java.awt.Point pt)
          Gets the page located under pt
 int getPageBefore(int xPos)
          Gets the first page located before the xPos position.
 int getPageCount()
           
 int getPosition()
           
 java.awt.Dimension getPreferredSize()
           
 int getSelectedPage()
           
 double getSelectedStyle()
           
 boolean getShowIcons()
          Deprecated. Replaced by isShowIcons()
 java.awt.Point getToolTipLocation(java.awt.event.MouseEvent event)
           
 java.lang.String getToolTipText(java.awt.event.MouseEvent event)
           
 void intervalAdded(javax.swing.event.ListDataEvent e)
           
 void intervalRemoved(javax.swing.event.ListDataEvent e)
           
 void invalidate()
           
 boolean isFitWidth()
          Returns whether the tabs will be stretched horizontally to fit the width of the control.
 boolean isFocused()
           
 boolean isGradientHighlight()
           
 boolean isShowIcons()
          Gets the showIcons property.
 boolean isShowSelectedCloseButton()
           
 boolean isShowTabUnderline()
          Returns whether the bottom tab underline will be drawn.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
protected  void paintComponent(java.awt.Graphics gAWT)
           
protected  void paintTabs(java.awt.Graphics2D g)
           
 void removeAllPages()
           
 void removeListDataListener(javax.swing.event.ListDataListener listener)
          removes a listener that has been set with addListDataListener(javax.swing.event.ListDataListener)
 void removePage(CustomTabPage customTabPage)
           
 CustomTabPage removePage(int at)
           
 void removeSelectionListener(javax.swing.event.ListSelectionListener l)
           
 int searchPage(CustomTabPage customTabPage)
           
 void setActive(boolean active)
           
 void setCloseAction(javax.swing.Action closeAction)
          Sets the action to perform when the close button is pressed, or when a tab is closed via control-click.
 void setCompressible(boolean compressible)
          If set to true and the component does not have enough space to show all the tabs, it will compress the text Note This option is not implemented yet.
 void setCornerSize(int cornerSize)
          Sets the size of the corner
 void setCtrlClickCloseEnabled(boolean ctrlClickCloseEnabled)
           
 void setDirty(int page, boolean dirty)
          Sets the specified CustomTabPage dirty attribute
 void setFitWidth(boolean fitWidth)
          Sets whether the tabs should be stretched horizontally to fit the width of the control.
 void setFocused(boolean focused)
           
 void setFont(java.awt.Font font)
           
 void setGapAboveLabel(int gapAboveLabel)
          Sets the gap between the label and the top of the tab
 void setGapAfterTabs(int gapAfterTabs)
          Sets the gap after the last tab
 void setGapBeforeTabs(int gapBeforeTabs)
          Sets the gap before the first tab
 void setGapBelowLabel(int gapBelowLabel)
          Sets the gap between the label and the bottom of the tab
 void setGapBetweenTabs(int gapBetweenTabs)
          Sets the gap between two tabs
 void setGapCenter(int gapCenter)
          Sets the gap between the icon and the text
 void setGapClose(int gapClose)
           
 void setGapLeft(int gapLeft)
          Sets the gap between the left border of the tab and the icon (or text if there is no icon)
 void setGapRight(int gapRight)
          Sets the gap between the text (or icon if there is no text) and the right border of the tab
 void setGradientHighlight(boolean isGradientHighlight)
           
 void setHighlighted(int page, boolean highlighted)
          Sets the specified CustomTabPage highlighted attribute
 void setMaxTabChars(int maxTabChars)
          Sets the maximum chars in a tab.
 void setMinTabHeight(int minTabHeight)
          Sets the minimum tab height.
 void setMinTabWidth(int minTabWidth)
          Sets the minimum tab width.
 void setModel(javax.swing.ListModel model)
           
 void setOffsetSelected(int offsetSelected)
          Sets the offset by which the tab moves when selected
 void setPosition(int position)
           
 void setSelectedPage(int page)
           
 void setSelectedStyle(double selectedStyle)
          Determines how the icon and text moves when the tab is selected.
 void setShowIcons(boolean showIcons)
          Sets the showIcons property, which must be true for tab icons to appear.
 void setShowSelectedCloseButton(boolean showSelectedCloseButton)
           
 void setShowTabUnderline(boolean showTabUnderline)
          Sets whether the bottom tab underline should be drawn.
 void whenTabChanged()
          Call this method when you change the title or icon of the tab

 

Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI

 

Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update

 

Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree

 

Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

SELECTED_STYLE_FIXED

public static final double SELECTED_STYLE_FIXED
The icon and text do not move when selected
See Also:
Constant Field Values

SELECTED_STYLE_CENTER

public static final double SELECTED_STYLE_CENTER
The icon and text are centered
See Also:
Constant Field Values

SELECTED_STYLE_MOVE

public static final double SELECTED_STYLE_MOVE
The icon and text move by the specified offsetSelected.
See Also:
Constant Field Values

Constructor Detail

CustomTab

public CustomTab(int position)
Parameters:
position - takes values from SwingConstants.BOTTOM and SwingConstants.TOP

CustomTab

public CustomTab(javax.swing.ListModel model,
                 int position)
Parameters:
model - data model
position - takes values from SwingConstants.BOTTOM and SwingConstants.TOP

Method Detail

getModel

public javax.swing.ListModel getModel()

setModel

public void setModel(javax.swing.ListModel model)

setCloseAction

public void setCloseAction(javax.swing.Action closeAction)
Sets the action to perform when the close button is pressed, or when a tab is closed via control-click. The close button will only appear if a close action has been set.

The tooltip for the close button is taken from the Action.SHORT_DESCRIPTION property of the closeAction.

Parameters:
closeAction - the action to perform when the close button is pressed

setCtrlClickCloseEnabled

public void setCtrlClickCloseEnabled(boolean ctrlClickCloseEnabled)

addSelectionListener

public void addSelectionListener(javax.swing.event.ListSelectionListener l)

removeSelectionListener

public void removeSelectionListener(javax.swing.event.ListSelectionListener l)

getPosition

public int getPosition()

setPosition

public void setPosition(int position)
Parameters:
position - takes values from SwingConstants.TOP & BOTTOM

setCompressible

public void setCompressible(boolean compressible)
If set to true and the component does not have enough space to show all the tabs, it will compress the text Note This option is not implemented yet.
Parameters:
compressible -

setMaxTabChars

public void setMaxTabChars(int maxTabChars)
Sets the maximum chars in a tab.
Parameters:
maxTabChars -

setMinTabWidth

public void setMinTabWidth(int minTabWidth)
Sets the minimum tab width.
Parameters:
minTabWidth -

getMinTabHeight

public int getMinTabHeight()
Returns the minimum height for the tabs.

setMinTabHeight

public void setMinTabHeight(int minTabHeight)
Sets the minimum tab height.
Parameters:
minTabHeight - the minimum height for the tabs

getColorLines

public static java.awt.Color getColorLines()
Returns:
the color used to draw the line that separates the tab from the pages

getShowIcons

public boolean getShowIcons()
Deprecated. Replaced by isShowIcons()

isShowIcons

public boolean isShowIcons()
Gets the showIcons property.

setShowIcons

public void setShowIcons(boolean showIcons)
Sets the showIcons property, which must be true for tab icons to appear. The default value is true.

isShowTabUnderline

public boolean isShowTabUnderline()
Returns whether the bottom tab underline will be drawn. The default value is true.

setShowTabUnderline

public void setShowTabUnderline(boolean showTabUnderline)
Sets whether the bottom tab underline should be drawn.

isFitWidth

public boolean isFitWidth()
Returns whether the tabs will be stretched horizontally to fit the width of the control. The default value is false.

setFitWidth

public void setFitWidth(boolean fitWidth)
Sets whether the tabs should be stretched horizontally to fit the width of the control.

isGradientHighlight

public boolean isGradientHighlight()

setGradientHighlight

public void setGradientHighlight(boolean isGradientHighlight)

isFocused

public boolean isFocused()

setFocused

public void setFocused(boolean focused)

setActive

public void setActive(boolean active)

isShowSelectedCloseButton

public boolean isShowSelectedCloseButton()

setShowSelectedCloseButton

public void setShowSelectedCloseButton(boolean showSelectedCloseButton)

removePage

public CustomTabPage removePage(int at)

removePage

public void removePage(CustomTabPage customTabPage)

removeAllPages

public void removeAllPages()

getPageCount

public int getPageCount()

searchPage

public int searchPage(CustomTabPage customTabPage)

getPage

public CustomTabPage getPage(int at)

setSelectedPage

public void setSelectedPage(int page)

getSelectedPage

public int getSelectedPage()

getPageAt

public int getPageAt(java.awt.Point pt)
Gets the page located under pt
Parameters:
pt -
Returns:
-1 if the page was not found

getPageBefore

public int getPageBefore(int xPos)
Gets the first page located before the xPos position. For example:
              | returns 2
           |    returns 2
         |      returns 1
   +---+ +---+ +---+
   | 1 | | 2 | | 3 |
 --------+   +--------
 
Parameters:
xPos -
Returns:
-1 if there is no page before xPos

getPageAfter

public int getPageAfter(int xPos)
Gets the first page located after the xPos position. For example:
              | returns 3
           |    returns 3
         |      returns 3
   +---+ +---+ +---+
   | 1 | | 2 | | 3 |
 --------+   +--------
 
Parameters:
xPos -
Returns:
-1 if there is no page after xPos

setDirty

public void setDirty(int page,
                     boolean dirty)
Sets the specified CustomTabPage dirty attribute
Parameters:
page - page whose dirty attribute is to be set
dirty - true if the page is dirty, false otherwise

setHighlighted

public void setHighlighted(int page,
                           boolean highlighted)
Sets the specified CustomTabPage highlighted attribute
Parameters:
page - page whose hightlighted attribute is to be set
highlighted - true if the page's tab is to be highlighted, false otherwise

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class javax.swing.JComponent

getMaximumSize

public java.awt.Dimension getMaximumSize()
Overrides:
getMaximumSize in class javax.swing.JComponent

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

doLayout

public void doLayout()
Overrides:
doLayout in class java.awt.Container

invalidate

public void invalidate()
Overrides:
invalidate in class java.awt.Container

setFont

public void setFont(java.awt.Font font)
Overrides:
setFont in class javax.swing.JComponent

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

whenTabChanged

public void whenTabChanged()
Call this method when you change the title or icon of the tab

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener listener)
Equivalent to getModel().addListDataListener() except that by using this method, you are guaranteed that the selectedPage is already adjusted. A listener added through this method must be removed with removeListDataListener(javax.swing.event.ListDataListener)
Parameters:
listener -

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener listener)
removes a listener that has been set with addListDataListener(javax.swing.event.ListDataListener)
Parameters:
listener -

intervalAdded

public void intervalAdded(javax.swing.event.ListDataEvent e)
Specified by:
intervalAdded in interface javax.swing.event.ListDataListener

intervalRemoved

public void intervalRemoved(javax.swing.event.ListDataEvent e)
Specified by:
intervalRemoved in interface javax.swing.event.ListDataListener

contentsChanged

public void contentsChanged(javax.swing.event.ListDataEvent e)
Specified by:
contentsChanged in interface javax.swing.event.ListDataListener

getToolTipText

public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
Overrides:
getToolTipText in class javax.swing.JComponent

getToolTipLocation

public java.awt.Point getToolTipLocation(java.awt.event.MouseEvent event)
Overrides:
getToolTipLocation in class javax.swing.JComponent

getGapBeforeTabs

public int getGapBeforeTabs()

setGapBeforeTabs

public void setGapBeforeTabs(int gapBeforeTabs)
Sets the gap before the first tab

getGapBetweenTabs

public int getGapBetweenTabs()

setGapBetweenTabs

public void setGapBetweenTabs(int gapBetweenTabs)
Sets the gap between two tabs
Parameters:
gapBetweenTabs -

getGapAfterTabs

public int getGapAfterTabs()

setGapAfterTabs

public void setGapAfterTabs(int gapAfterTabs)
Sets the gap after the last tab
Parameters:
gapAfterTabs -

getGapAboveLabel

public int getGapAboveLabel()

setGapAboveLabel

public void setGapAboveLabel(int gapAboveLabel)
Sets the gap between the label and the top of the tab
Parameters:
gapAboveLabel -

getGapBelowLabel

public int getGapBelowLabel()

setGapBelowLabel

public void setGapBelowLabel(int gapBelowLabel)
Sets the gap between the label and the bottom of the tab
Parameters:
gapBelowLabel -

getGapLeft

public int getGapLeft()

setGapLeft

public void setGapLeft(int gapLeft)
Sets the gap between the left border of the tab and the icon (or text if there is no icon)
Parameters:
gapLeft -

getGapCenter

public int getGapCenter()

setGapCenter

public void setGapCenter(int gapCenter)
Sets the gap between the icon and the text
Parameters:
gapCenter -

getGapRight

public int getGapRight()

getGapClose

public int getGapClose()

setGapClose

public void setGapClose(int gapClose)

setGapRight

public void setGapRight(int gapRight)
Sets the gap between the text (or icon if there is no text) and the right border of the tab
Parameters:
gapRight -

getOffsetSelected

public int getOffsetSelected()

setOffsetSelected

public void setOffsetSelected(int offsetSelected)
Sets the offset by which the tab moves when selected
Parameters:
offsetSelected -

getCornerSize

public int getCornerSize()

setCornerSize

public void setCornerSize(int cornerSize)
Sets the size of the corner
Parameters:
cornerSize -

getSelectedStyle

public double getSelectedStyle()

setSelectedStyle

public void setSelectedStyle(double selectedStyle)
Determines how the icon and text moves when the tab is selected.
Parameters:
selectedStyle - takes values from SELECTED_STYLE_FIXED, SELECTED_STYLE_CENTER or SELECTED_STYLE_MOVE

paintComponent

protected void paintComponent(java.awt.Graphics gAWT)
Overrides:
paintComponent in class javax.swing.JComponent

paintTabs

protected void paintTabs(java.awt.Graphics2D g)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.