|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITabsetPanel
Platform and technology independent TabSetPanel definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
JTabbedPane
Field Summary | |
---|---|
static int |
PLACEMENT_BOTTOM
the constant value for bottom tab placement. |
static int |
PLACEMENT_LEFT
the constant value for left tab placement. |
static int |
PLACEMENT_RIGHT
the constant value for right tab placement. |
static int |
PLACEMENT_TOP
the constant value for top tab placement. |
static int |
TAB_LAYOUT_SCROLL
Tab layout policy for providing a subset of available tabs when all the tabs will not fit within a single run. |
static int |
TAB_LAYOUT_WRAP
The tab layout policy for wrapping tabs in multiple runs when all tabs will not fit within a single run. |
Method Summary | |
---|---|
TabsetHandler |
eventTabActivated()
The TabsetHandler for the activated event. |
TabsetHandler |
eventTabClosed()
The TabsetHandler for the closed event. |
TabsetHandler |
eventTabDeactivated()
The TabsetHandler for the activated event. |
TabsetHandler |
eventTabMoved()
The TabsetHandler for the moved event. |
IImage |
getIconAt(int pIndex)
Returns the tab icon at pIndex . |
int |
getSelectedIndex()
Returns the currently selected index for this tabbedpane. |
int |
getTabLayoutPolicy()
Returns the policy used by the tabbedpane to layout the tabs when all the tabs will not fit within a single run. |
int |
getTabPlacement()
Gets the tab placement. |
String |
getTextAt(int pIndex)
Returns the tab text at pIndex . |
boolean |
isClosableAt(int pTabPosition)
Returns whether a tab is closable. |
boolean |
isDragable()
Returns whether the tabs are dragable. |
boolean |
isEnabledAt(int pTabPosition)
Returns if a tab is en- or disabled. |
boolean |
isNavigationKeysEnabled()
Determines whether the navigation with the keyboard is enabled. |
void |
setClosableAt(int pTabPosition,
boolean pClosable)
Sets a tab closable. |
void |
setDragable(boolean pDragable)
Sets a tabs dragable. |
void |
setEnabledAt(int pTabPosition,
boolean pEnabled)
Sets a tab en- or disabled. |
void |
setIconAt(int pIndex,
IImage pImage)
Sets the icon at pIndex to pImage which can be
null . |
void |
setNavigationKeysEnabled(boolean pEnabled)
En- or disables the tab navigation with the keyboard. |
void |
setSelectedIndex(int pIndex)
Sets the selected index for this tabbedpane. |
void |
setTabLayoutPolicy(int pLayoutPolicy)
Sets the policy which the tabbedpane will use in laying out the tabs when all the tabs will not fit within a single run. |
void |
setTabPlacement(int pPlacement)
Sets the tab placement. |
void |
setTextAt(int pIndex,
String pText)
Sets the text at pIndex to pText which
can be null . |
Methods inherited from interface javax.rad.ui.IContainer |
---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Field Detail |
---|
static final int PLACEMENT_TOP
static final int PLACEMENT_LEFT
static final int PLACEMENT_BOTTOM
static final int PLACEMENT_RIGHT
static final int TAB_LAYOUT_WRAP
static final int TAB_LAYOUT_SCROLL
Method Detail |
---|
void setTabPlacement(int pPlacement)
pPlacement
- one of the following values: PLACEMENT_TOP
, PLACEMENT_LEFT
,
PLACEMENT_RIGHT
, PLACEMENT_BOTTOM
int getTabPlacement()
PLACEMENT_TOP
, PLACEMENT_LEFT
,
PLACEMENT_RIGHT
, PLACEMENT_BOTTOM
void setEnabledAt(int pTabPosition, boolean pEnabled)
pTabPosition
- the position of the tabpEnabled
- true
to enable and false
to disable the tabboolean isEnabledAt(int pTabPosition)
pTabPosition
- the position of the tab
true
if the tab is enabled or false
if the tab is disabledvoid setTabLayoutPolicy(int pLayoutPolicy)
ITabsetPanel.TAB_LAYOUT_WRAP
JTabbedPane.TAB_LAYOUT_SCROLL
ITabsetPanel.TAB_LAYOUT_WRAP
.
pLayoutPolicy
- the policy used to layout the tabs
IllegalArgumentException
- if layoutPolicy value isn't one of the above valid valuesgetTabLayoutPolicy()
int getTabLayoutPolicy()
setTabLayoutPolicy(int)
void setSelectedIndex(int pIndex)
pIndex
- the index to be selected
IndexOutOfBoundsException
- if index is out of range
(index < -1 || index >= tab count)getSelectedIndex()
int getSelectedIndex()
setSelectedIndex(int)
void setIconAt(int pIndex, IImage pImage)
pIndex
to pImage
which can be
null
. This does not set disabled icon at icon
.
If the new Icon is different than the current Icon and disabled icon
is not explicitly set, the LookAndFeel will be asked to generate a disabled
Icon. To explicitly set disabled icon, use setDisableIconAt()
.
An internal exception is raised if there is no tab at that index.
pIndex
- the tab index where the icon should be setpImage
- the icon to be displayed in the tab
IndexOutOfBoundsException
- if index is out of range
(pIndex < 0 || pIndex >= tab count)getIconAt(int)
IImage getIconAt(int pIndex)
pIndex
.
pIndex
- the index of the item being queried
pIndex
IndexOutOfBoundsException
- if index is out of range
(pIndex < 0 || pIndex >= tab count)setIconAt(int, javax.rad.ui.IImage)
void setClosableAt(int pTabPosition, boolean pClosable)
pTabPosition
- the position of the tabpClosable
- true
to set closable and false
to be not closableboolean isClosableAt(int pTabPosition)
pTabPosition
- the position of the tab
true
if the tab is closable or false
if the tab is not closablevoid setDragable(boolean pDragable)
pDragable
- true
to set the tabs dragable and false
prevent.boolean isDragable()
true
if the tabs are dragable or false
if the they are not dragable.void setTextAt(int pIndex, String pText)
pIndex
to pText
which
can be null
.
pIndex
- the tab index where the text should be setpText
- the text to be displayed in the tab
IndexOutOfBoundsException
- if index is out of range
(pIndex < 0 || pIndex >= tab count)getTextAt(int)
String getTextAt(int pIndex)
pIndex
.
pIndex
- the index of the tab
pIndex
IndexOutOfBoundsException
- if index is out of range
(pIndex < 0 || pIndex >= tab count)setTextAt(int, String)
void setNavigationKeysEnabled(boolean pEnabled)
pEnabled
- true
to enable the navigation with the keyboard, otherwise false
boolean isNavigationKeysEnabled()
true
if the keyboard navigation is enabled, otherwise false
TabsetHandler eventTabClosed()
TabsetHandler eventTabMoved()
TabsetHandler eventTabActivated()
TabsetHandler eventTabDeactivated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |