public class RJTabbedPane extends javax.swing.JTabbedPane implements Localizable
javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTabbedPane.ModelListenerjavax.swing.JComponent.AccessibleJComponentchangeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUTlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
RJTabbedPane()
Creates an empty
TabbedPane with a default
tab placement of JTabbedPane.TOP. |
RJTabbedPane(int tabPlacement)
Creates an empty
TabbedPane with the specified tab placement
of either: JTabbedPane.TOP, JTabbedPane.BOTTOM,
JTabbedPane.LEFT, or JTabbedPane.RIGHT. |
RJTabbedPane(int tabPlacement,
int tabLayoutPolicy)
Creates an empty
TabbedPane with the specified tab placement
and tab layout policy. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotify()
Notifies this component that it now has a parent component.
|
void |
addResourcedTab(java.lang.String baseTag,
java.awt.Component component)
Adds a
component represented by a title
and no icon. |
void |
remove(java.awt.Component component)
Removes the specified
Component from the
JTabbedPane. |
void |
remove(int index)
Removes the tab and component which corresponds to the specified index.
|
void |
removeAll()
Removes all the tabs and their corresponding components
from the
tabbedpane. |
void |
removeNotify()
Notifies this component that it no longer has a parent component.
|
void |
removeTabAt(int index)
Removes the tab at
index. |
void |
setDisabledIconAt(int index,
javax.swing.Icon disabledIcon)
Sets the disabled icon at
index to icon
which can be null. |
void |
setIconAt(int index,
javax.swing.Icon icon)
Sets the icon at
index to icon which can be
null. |
void |
setLocale(java.util.Locale l)
Sets the locale of this component.
|
void |
setTitleAt(int index,
java.lang.String title)
Sets the title at
index to title which
can be null. |
void |
setToolTipTextAt(int index,
java.lang.String toolTipText)
Sets the tooltip text at
index to toolTipText
which can be null. |
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, removeChangeListener, setBackgroundAt, setComponentAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setUI, updateUIaddAncestorListener, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateaddContainerListener, addImpl, 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, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, 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, 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, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocalepublic RJTabbedPane()
TabbedPane with a default
tab placement of JTabbedPane.TOP.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)public RJTabbedPane(int tabPlacement)
TabbedPane with the specified tab placement
of either: JTabbedPane.TOP, JTabbedPane.BOTTOM,
JTabbedPane.LEFT, or JTabbedPane.RIGHT.tabPlacement - the placement for the tabs relative to the contentJTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)public RJTabbedPane(int tabPlacement,
int tabLayoutPolicy)
TabbedPane with the specified tab placement
and tab layout policy. Tab placement may be either:
JTabbedPane.TOP, JTabbedPane.BOTTOM,
JTabbedPane.LEFT, or JTabbedPane.RIGHT.
Tab layout policy may be either: JTabbedPane.WRAP_TAB_LAYOUT
or JTabbedPane.SCROLL_TAB_LAYOUT.tabPlacement - the placement for the tabs relative to the contenttabLayoutPolicy - the policy for laying out tabs when all tabs will not fit on one runjava.lang.IllegalArgumentException - if tab placement or tab layout policy are not
one of the above supported valuesJTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)public void addNotify()
KeyboardAction event listeners.addNotify in class javax.swing.JComponentJComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)public void removeNotify()
KeyboardActions
set up in the the chain of parent components are removed.removeNotify in class javax.swing.JComponentJComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)public void addResourcedTab(@NotNull java.lang.String baseTag, @NotNull java.awt.Component component)
component represented by a title
and no icon.
Cover method for insertTab.baseTag - the title to be displayed in this tabcomponent - the component to be displayed when this tab is clickedJTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int),
removeTabAt(int)public void removeAll()
tabbedpane.removeAll in class javax.swing.JTabbedPaneJTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String),
removeTabAt(int)public void remove(int index)
remove in class javax.swing.JTabbedPaneindex - the index of the component to remove from the
tabbedpanejava.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= tab count)JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String),
removeTabAt(int)public void removeTabAt(int index)
index.
After the component associated with index is removed,
its visibility is reset to true to ensure it will be visible
if added to other containers.removeTabAt in class javax.swing.JTabbedPaneindex - the index of the tab to be removedjava.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= tab count)JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String),
JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)public void remove(java.awt.Component component)
Component from the
JTabbedPane.remove in class javax.swing.JTabbedPanecomponent - the component to remove from the tabbedpanejava.lang.NullPointerException - if component is null.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String),
removeTabAt(int)public void setTitleAt(int index,
java.lang.String title)
index to title which
can be null.
An internal exception is raised if there is no tab at that index.setTitleAt in class javax.swing.JTabbedPaneindex - the tab index where the title should be settitle - the title to be displayed in the tabjava.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= tab count)
attribute: visualUpdate true
description: The title at the specified tab index.JTabbedPane.getTitleAt(int)public void setToolTipTextAt(int index,
java.lang.String toolTipText)
index to toolTipText
which can be null.
An internal exception is raised if there is no tab at that index.setToolTipTextAt in class javax.swing.JTabbedPaneindex - the tab index where the tooltip text should be settoolTipText - the tooltip text to be displayed for the tabjava.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= tab count)
description: The tooltip text at the specified tab index.JTabbedPane.getToolTipTextAt(int)public void setDisabledIconAt(int index,
javax.swing.Icon disabledIcon)
index to icon
which can be null.
An internal exception is raised if there is no tab at that index.setDisabledIconAt in class javax.swing.JTabbedPaneindex - the tab index where the disabled icon should be setdisabledIcon - the icon to be displayed in the tab when disabledjava.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= tab count)
attribute: visualUpdate true
description: The disabled icon at the specified tab index.JTabbedPane.getDisabledIconAt(int)public void setIconAt(int index,
javax.swing.Icon icon)
index to icon which can be
null. Does not set disabled icon at icon
To set disabled icon, use setDisableIconAt().
An internal exception is raised if there is no tab at that index.setIconAt in class javax.swing.JTabbedPaneindex - the tab index where the icon should be seticon - the icon to be displayed in the tabjava.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= tab count)
attribute: visualUpdate true
description: The icon at the specified tab index.setDisabledIconAt(int, javax.swing.Icon),
JTabbedPane.getIconAt(int)public void setLocale(java.util.Locale l)
setLocale in interface LocalizablesetLocale in class java.awt.Componentl - the locale to become this component's localeComponent.getLocale()