|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
com.sibvisions.rad.ui.swing.ext.JVxTabbedPane
public class JVxTabbedPane
The JVxTabbedPane extends the JTabbedPane and allows special
tab options, like closing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
|---|
javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTabbedPane.ModelListener |
| 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 |
|---|
| Fields inherited from class javax.swing.JTabbedPane |
|---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
| 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 | |
|---|---|
JVxTabbedPane()
Creates a new instance of JVxTabbedPane with default
settings. |
|
| Method Summary | |
|---|---|
void |
addTabListener(ITabListener pListener)
Adds an ITabListener to receive tab events from this
tabbed pane. |
javax.swing.Icon |
getDisabledIconAt(int pIndex)
|
javax.swing.Icon |
getIconAt(int pIndex)
|
void |
insertTab(java.lang.String pTitle,
javax.swing.Icon pIcon,
java.awt.Component pComponent,
java.lang.String pTip,
int pIndex)
|
boolean |
isDragable()
Returns the drag option of tabs. |
boolean |
isNavigationKeysEnabled()
Determines whether the navigation with the keyboard is enabled. |
boolean |
processKeyBinding(javax.swing.KeyStroke pStroke,
java.awt.event.KeyEvent pEvent,
int pModifier,
boolean pPressed)
|
protected void |
processMouseEvent(java.awt.event.MouseEvent pEvent)
Handles the MouseEvent.MOUSE_PRESSED, MouseEvent.MOUSE_RELEASED and MouseEvent.MOUSE_EXITED
events. |
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent pEvent)
Handles the MouseEvent.MOUSE_MOVED event and set the
rollover for the close button of tabs. |
void |
removeTabAt(int pIndex)
|
void |
removeTabListener(ITabListener pListener)
Removes the specified ITabListener so that it no longer
receives tab events from this tabbed pane. |
void |
setClosableAt(int pIndex,
boolean pClosable)
Set/Unset the closable option for a tab. |
void |
setDisabledIconAt(int pIndex,
javax.swing.Icon pIcon)
|
void |
setDragable(boolean pDragable)
Sets the drag option for tabs. |
void |
setFont(java.awt.Font pFont)
|
void |
setForeground(java.awt.Color pForeground)
|
void |
setIconAt(int pIndex,
javax.swing.Icon pIcon)
|
void |
setNavigationKeysEnabled(boolean pEnabled)
En- or disables the tab navigation with the keyboard. |
void |
setSelectedIndex(int pIndex)
|
void |
setTabLayoutPolicy(int pTabLayoutPolicy)
|
void |
setTitleAt(int pIndex,
java.lang.String pTitle)
|
void |
setUI(javax.swing.plaf.TabbedPaneUI pUI)
|
| Methods inherited from class javax.swing.JTabbedPane |
|---|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisplayedMnemonicIndexAt, getForegroundAt, 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, setBackgroundAt, setComponentAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setMnemonicAt, setModel, setSelectedComponent, setTabComponentAt, setTabPlacement, setToolTipTextAt, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, 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, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
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, 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 |
| Constructor Detail |
|---|
public JVxTabbedPane()
JVxTabbedPane with default
settings.
| Method Detail |
|---|
public void setUI(javax.swing.plaf.TabbedPaneUI pUI)
setUI in class javax.swing.JTabbedPaneprotected void processMouseMotionEvent(java.awt.event.MouseEvent pEvent)
MouseEvent.MOUSE_MOVED event and set the
rollover for the close button of tabs.
processMouseMotionEvent in class javax.swing.JComponentpEvent - the mouse eventprotected void processMouseEvent(java.awt.event.MouseEvent pEvent)
MouseEvent.MOUSE_PRESSED, MouseEvent.MOUSE_RELEASED and MouseEvent.MOUSE_EXITED
events. The close button of tabs will be selected or marked as pressed.
processMouseEvent in class javax.swing.JComponentpEvent - the mouse event
public void setTitleAt(int pIndex,
java.lang.String pTitle)
setTitleAt in class javax.swing.JTabbedPane
public void setIconAt(int pIndex,
javax.swing.Icon pIcon)
setIconAt in class javax.swing.JTabbedPanepublic javax.swing.Icon getIconAt(int pIndex)
getIconAt in class javax.swing.JTabbedPanepublic javax.swing.Icon getDisabledIconAt(int pIndex)
getDisabledIconAt in class javax.swing.JTabbedPane
public void setDisabledIconAt(int pIndex,
javax.swing.Icon pIcon)
setDisabledIconAt in class javax.swing.JTabbedPane
public void insertTab(java.lang.String pTitle,
javax.swing.Icon pIcon,
java.awt.Component pComponent,
java.lang.String pTip,
int pIndex)
insertTab in class javax.swing.JTabbedPanepublic void removeTabAt(int pIndex)
removeTabAt in class javax.swing.JTabbedPanepublic void setForeground(java.awt.Color pForeground)
setForeground in class javax.swing.JComponentpublic void setFont(java.awt.Font pFont)
setFont in class javax.swing.JComponentpublic void setTabLayoutPolicy(int pTabLayoutPolicy)
setTabLayoutPolicy in class javax.swing.JTabbedPanepublic void setSelectedIndex(int pIndex)
setSelectedIndex in class javax.swing.JTabbedPane
public boolean processKeyBinding(javax.swing.KeyStroke pStroke,
java.awt.event.KeyEvent pEvent,
int pModifier,
boolean pPressed)
processKeyBinding in class javax.swing.JComponentpublic void addTabListener(ITabListener pListener)
ITabListener to receive tab events from this
tabbed pane. If listener pListener is null
no exception is thrown and no action is performed.
pListener - the listener implementationpublic void removeTabListener(ITabListener pListener)
ITabListener so that it no longer
receives tab events from this tabbed pane. This method performs
no function, nor does it throw an exception, if the listener
specified by the argument was not previously added to this component.
If listener pListener is null,
no exception is thrown and no action is performed.
pListener - the listener implementation
public void setClosableAt(int pIndex,
boolean pClosable)
pIndex - the tab indexpClosable - true to enable the close option; otherwise falsepublic void setDragable(boolean pDragable)
pDragable - true to enable the drag option, otherwise falsepublic boolean isDragable()
true if it's possible to drag tabs, false otherwisepublic void setNavigationKeysEnabled(boolean pEnabled)
pEnabled - true to enable the navigation with the keyboard, otherwise falsepublic boolean isNavigationKeysEnabled()
true if the keyboard navigation is enabled, otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||