@BeanSettings(acceptChildren=true, useXdevCustomizer=true) public class XdevTabbedPane extends JTabbedPane implements Persistable
JTabbedPane
.JTabbedPane
,
Serialized FormJTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
VALUE_SEPARATOR
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
XdevTabbedPane()
Creates an empty
TabbedPane with a default tab placement of
JTabbedPane.TOP . |
XdevTabbedPane(int tabPlacement)
Creates an empty
TabbedPane with the specified tab placement
of either: JTabbedPane.TOP , JTabbedPane.BOTTOM ,
JTabbedPane.LEFT , or JTabbedPane.RIGHT . |
XdevTabbedPane(int tabPlacement,
int tabLayoutPolicy)
Creates an empty
TabbedPane with the specified tab placement
and tab layout policy. |
Modifier and Type | Method and Description |
---|---|
Component |
add(Component comp)
|
Component |
add(Component comp,
int index)
|
void |
add(Component comp,
Object constraints)
|
void |
add(Component comp,
Object constraints,
int index)
|
Component |
add(String name,
Component comp)
|
void |
addTab(XdevTab tab)
Adds a
XdevTab to the this XdevTabbedPane . |
String |
getPersistentId()
Uses the name of the component as a persistent id.
|
Component |
getTabAt(int index)
Returns the component at
index . |
void |
insertTab(String title,
Icon icon,
Component component,
String tip,
int index) |
boolean |
isPersistenceEnabled()
Flag, indicates, if the gui state for this component should be persisted.
|
void |
loadPersistentState(String persistentState)
Restores this
Components persistent state. |
String |
savePersistentState()
Generates a
String representation of this Components
persistent state and returns it for being stored. |
void |
setPersistenceEnabled(boolean persistenceEnabled)
Sets the persistenceEnabled flag.
|
String |
toString() |
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, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI
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, 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, 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, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
addContainerListener, 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, validateTree
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, 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, transferFocus, transferFocusBackward, transferFocusUpCycle
public XdevTabbedPane()
TabbedPane
with a default tab placement of
JTabbedPane.TOP
.public XdevTabbedPane(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 contentpublic XdevTabbedPane(int tabPlacement, int tabLayoutPolicy) throws IllegalArgumentException
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 runIllegalArgumentException
- if tab placement or tab layout policy are not one of the
above supported valuespublic void addTab(XdevTab tab) throws NullPointerException
XdevTab
to the this XdevTabbedPane
.tab
- the XdevTab
to addNullPointerException
- if tab
is null
public void insertTab(String title, Icon icon, Component component, String tip, int index)
insertTab
in class JTabbedPane
public Component getTabAt(int index) throws IndexOutOfBoundsException
index
.index
- the index of the item being queriedComponent
at index
IndexOutOfBoundsException
- if index is out of range (index < 0 || index >= tab count)public Component add(Component comp)
addTab(XdevTab)
to add a XdevTab
to the
XdevTabbedPane
. If use one of the "add" methods the
XdevTab
will not be displayed as tab.
This method is only overridden to place a hint related to the use of the
addTab(XdevTab)
method.
add
in class JTabbedPane
public Component add(Component comp, int index)
addTab(XdevTab)
to add a XdevTab
to the
XdevTabbedPane
. If use one of the "add" methods the
XdevTab
will not be displayed as tab.
This method is only overridden to place a hint related to the use of the
addTab(XdevTab)
method.
add
in class JTabbedPane
public void add(Component comp, Object constraints)
addTab(XdevTab)
to add a XdevTab
to the
XdevTabbedPane
. If use one of the "add" methods the
XdevTab
will not be displayed as tab.
This method is only overridden to place a hint related to the use of the
addTab(XdevTab)
method.
add
in class JTabbedPane
public void add(Component comp, Object constraints, int index)
addTab(XdevTab)
to add a XdevTab
to the
XdevTabbedPane
. If use one of the "add" methods the
XdevTab
will not be displayed as tab.
This method is only overridden to place a hint related to the use of the
addTab(XdevTab)
method.
add
in class JTabbedPane
public Component add(String name, Component comp)
addTab(XdevTab)
to add a XdevTab
to the
XdevTabbedPane
. If use one of the "add" methods the
XdevTab
will not be displayed as tab.
This method is only overridden to place a hint related to the use of the
addTab(XdevTab)
method.
add
in class JTabbedPane
public void loadPersistentState(String persistentState)
Components
persistent state.
By calling this method, the passed state information get interpreted and applied on the affected attributes.
loadPersistentState
in interface Persistable
persistentState
- String
representation for the persistent state of the
Component
.savePersistentState()
public String savePersistentState()
String
representation of this Components
persistent state and returns it for being stored.
Persisted properties:
savePersistentState
in interface Persistable
String
containing persistent statepublic String getPersistentId()
If no name is specified the name of the class will be used. This will work only for one persistent instance of the class!
Return a persistent id for thisComponent
.
The following requirements have to be met for the persistent id:
getPersistentId
in interface Persistable
public boolean isPersistenceEnabled()
isPersistenceEnabled
in interface Persistable
true
if a instance of type Persistable
is to be
persisted.public void setPersistenceEnabled(boolean persistenceEnabled)
persistenceEnabled
- the state for this instanceCopyright © 2003–2021 XDEV Software. All rights reserved.