|
||||||||||
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 |
---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, 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. |
Icon |
getDisabledIconAt(int pIndex)
|
Icon |
getIconAt(int pIndex)
|
void |
insertTab(String pTitle,
Icon pIcon,
Component pComponent,
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(KeyStroke pStroke,
KeyEvent pEvent,
int pModifier,
boolean pPressed)
|
protected void |
processMouseEvent(MouseEvent pEvent)
Handles the MouseEvent.MOUSE_PRESSED , MouseEvent.MOUSE_RELEASED and MouseEvent.MOUSE_EXITED
events. |
protected void |
processMouseMotionEvent(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,
Icon pIcon)
|
void |
setDragable(boolean pDragable)
Sets the drag option for tabs. |
void |
setFont(Font pFont)
|
void |
setForeground(Color pForeground)
|
void |
setIconAt(int pIndex,
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,
String pTitle)
|
void |
setUI(TabbedPaneUI pUI)
|
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(TabbedPaneUI pUI)
setUI
in class JTabbedPane
protected void processMouseMotionEvent(MouseEvent pEvent)
MouseEvent.MOUSE_MOVED
event and set the
rollover for the close button of tabs.
processMouseMotionEvent
in class JComponent
pEvent
- the mouse eventprotected void processMouseEvent(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 JComponent
pEvent
- the mouse eventpublic void setTitleAt(int pIndex, String pTitle)
setTitleAt
in class JTabbedPane
public void setIconAt(int pIndex, Icon pIcon)
setIconAt
in class JTabbedPane
public Icon getIconAt(int pIndex)
getIconAt
in class JTabbedPane
public Icon getDisabledIconAt(int pIndex)
getDisabledIconAt
in class JTabbedPane
public void setDisabledIconAt(int pIndex, Icon pIcon)
setDisabledIconAt
in class JTabbedPane
public void insertTab(String pTitle, Icon pIcon, Component pComponent, String pTip, int pIndex)
insertTab
in class JTabbedPane
public void removeTabAt(int pIndex)
removeTabAt
in class JTabbedPane
public void setForeground(Color pForeground)
setForeground
in class JComponent
public void setFont(Font pFont)
setFont
in class JComponent
public void setTabLayoutPolicy(int pTabLayoutPolicy)
setTabLayoutPolicy
in class JTabbedPane
public void setSelectedIndex(int pIndex)
setSelectedIndex
in class JTabbedPane
public boolean processKeyBinding(KeyStroke pStroke, KeyEvent pEvent, int pModifier, boolean pPressed)
processKeyBinding
in class JComponent
public 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 implementationpublic void setClosableAt(int pIndex, boolean pClosable)
pIndex
- the tab indexpClosable
- true
to enable the close option; otherwise false
public void setDragable(boolean pDragable)
pDragable
- true
to enable the drag option, otherwise false
public 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 false
public 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 |