CloseableTabbedPane
instead@Deprecated public class CloseTabbedPane extends javax.swing.JTabbedPane
Modifier and Type | Class and Description |
---|---|
static interface |
CloseTabbedPane.CloseTabbedPaneListener
Deprecated.
|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
CloseTabbedPane()
Deprecated.
JTabbedPane |
CloseTabbedPane(int tabPlacement)
Deprecated.
JTabbedPane |
CloseTabbedPane(int tabPlacement,
int tabLayoutPolicy)
Deprecated.
JTabbedPane |
Modifier and Type | Method and Description |
---|---|
void |
addCloseTabbedPaneListener(CloseTabbedPane.CloseTabbedPaneListener l)
Deprecated.
|
void |
insertTab(java.lang.String title,
javax.swing.Icon icon,
java.awt.Component component,
java.lang.String tip,
int index)
Deprecated.
|
boolean |
isTabClosable(int index)
Deprecated.
Returns the 'closable' state of tab component at
index . |
void |
removeCloseTabbedPaneListener(CloseTabbedPane.CloseTabbedPaneListener l)
Deprecated.
|
void |
setBackgroundAt(int index,
java.awt.Color background)
Deprecated.
|
void |
setDisabledIconAt(int index,
javax.swing.Icon disabledIcon)
Deprecated.
|
void |
setForegroundAt(int index,
java.awt.Color foreground)
Deprecated.
|
void |
setIconAt(int index,
javax.swing.Icon icon)
Deprecated.
|
void |
setTabClosable(int index,
boolean value)
Deprecated.
Set the 'closable' state of tab component at
index . |
void |
setTitleAt(int index,
java.lang.String title)
Deprecated.
|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, 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, isEnabledAt, remove, remove, removeAll, removeChangeListener, removeTabAt, setComponentAt, setDisplayedMnemonicIndexAt, setEnabledAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setToolTipTextAt, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
addContainerListener, 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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, transferFocusBackward, transferFocusUpCycle
public CloseTabbedPane()
JTabbedPane
public CloseTabbedPane(int tabPlacement)
JTabbedPane
public CloseTabbedPane(int tabPlacement, int tabLayoutPolicy)
JTabbedPane
public boolean isTabClosable(int index)
index
.index
- the tab index where the check state is queriedindex
can be closed (close button visible).java.lang.IndexOutOfBoundsException
- if index is out of range (index < 0 || index >= tab count)setTabClosable(int, boolean)
public void setTabClosable(int index, boolean value)
index
.index
- the tab index we want to set the 'closable' statevalue
- true if the tab should be 'closable' (close button visible), false otherwise.java.lang.IndexOutOfBoundsException
- if index is out of range (index < 0 || index >= tab count)isTabClosable(int)
public void setIconAt(int index, javax.swing.Icon icon)
setIconAt
in class javax.swing.JTabbedPane
public void setDisabledIconAt(int index, javax.swing.Icon disabledIcon)
setDisabledIconAt
in class javax.swing.JTabbedPane
public void setBackgroundAt(int index, java.awt.Color background)
setBackgroundAt
in class javax.swing.JTabbedPane
public void setForegroundAt(int index, java.awt.Color foreground)
setForegroundAt
in class javax.swing.JTabbedPane
public void setTitleAt(int index, java.lang.String title)
setTitleAt
in class javax.swing.JTabbedPane
public void insertTab(java.lang.String title, javax.swing.Icon icon, java.awt.Component component, java.lang.String tip, int index)
insertTab
in class javax.swing.JTabbedPane
public void addCloseTabbedPaneListener(CloseTabbedPane.CloseTabbedPaneListener l)
public void removeCloseTabbedPaneListener(CloseTabbedPane.CloseTabbedPaneListener l)