|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.impl.QtResource<C>
com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
com.sibvisions.rad.ui.qt.impl.QtComponent<C>
com.sibvisions.rad.ui.qt.impl.QtContainer<QVxTabWidget>
com.sibvisions.rad.ui.qt.impl.container.QtTabsetPanel
public class QtTabsetPanel
The QtTabsetPanel is the ITabsetPanel
implementation for QT.
QVxTabWidget,
ITabsetPanel| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
|---|
parent |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
|---|
factory |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
resource |
| Fields inherited from interface javax.rad.ui.container.ITabsetPanel |
|---|
PLACEMENT_BOTTOM, PLACEMENT_LEFT, PLACEMENT_RIGHT, PLACEMENT_TOP, TAB_LAYOUT_SCROLL, TAB_LAYOUT_WRAP |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
QtTabsetPanel()
Creates a new instance of QtTabsetPanel. |
|
| Method Summary | |
|---|---|
protected void |
addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
Internal function, for adding physical component and supporting layers. |
void |
doTabCloseRequest(Integer pIndex)
Notification when a tab was closed. |
void |
doTabMoved(Integer pOldIndex,
Integer pNewIndex)
Notification when a tab was moved. |
TabsetHandler |
eventTabClosed()
The TabsetHandler for the closed 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)
Not supported. |
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 |
removeIntern(IComponent pComponent)
Internal function, for adding physical component and supporting layers. |
void |
setClosableAt(int pTabPosition,
boolean pClosable)
Not supported. |
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 class com.sibvisions.rad.ui.qt.impl.QtContainer |
|---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
|---|
addStyle, capture, getBackground, getBounds, getCursor, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyleSheet, getToolTipText, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setResourceVisible, setSize, setToolTipText, setVerticalAlignment |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
|---|
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getFactory, isVisible, setFactory, setVisible |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
equals, getResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public QtTabsetPanel()
QtTabsetPanel.
| Method Detail |
|---|
public 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.
setIconAt in interface ITabsetPanelpIndex - the tab index where the icon should be setpImage - the icon to be displayed in the tabITabsetPanel.getIconAt(int)public IImage getIconAt(int pIndex)
pIndex.
getIconAt in interface ITabsetPanelpIndex - the index of the item being queried
pIndexITabsetPanel.setIconAt(int, javax.rad.ui.IImage)public void setSelectedIndex(int pIndex)
setSelectedIndex in interface ITabsetPanelpIndex - the index to be selectedITabsetPanel.getSelectedIndex()public int getSelectedIndex()
getSelectedIndex in interface ITabsetPanelITabsetPanel.setSelectedIndex(int)public void setTabLayoutPolicy(int pLayoutPolicy)
ITabsetPanel.TAB_LAYOUT_WRAP
JTabbedPane.TAB_LAYOUT_SCROLL
ITabsetPanel.TAB_LAYOUT_WRAP.
setTabLayoutPolicy in interface ITabsetPanelpLayoutPolicy - the policy used to layout the tabsITabsetPanel.getTabLayoutPolicy()public int getTabLayoutPolicy()
getTabLayoutPolicy in interface ITabsetPanelITabsetPanel.setTabLayoutPolicy(int)public void setTabPlacement(int pPlacement)
setTabPlacement in interface ITabsetPanelpPlacement - one of the following values: ITabsetPanel.PLACEMENT_TOP, ITabsetPanel.PLACEMENT_LEFT,
ITabsetPanel.PLACEMENT_RIGHT, ITabsetPanel.PLACEMENT_BOTTOMpublic int getTabPlacement()
getTabPlacement in interface ITabsetPanelITabsetPanel.PLACEMENT_TOP, ITabsetPanel.PLACEMENT_LEFT,
ITabsetPanel.PLACEMENT_RIGHT, ITabsetPanel.PLACEMENT_BOTTOM
public void setClosableAt(int pTabPosition,
boolean pClosable)
setClosableAt in interface ITabsetPanelpTabPosition - the position of the tabpClosable - true to set closable and false to be not closableITabsetPanel.setClosableAt(int, boolean)public boolean isClosableAt(int pTabPosition)
isClosableAt in interface ITabsetPanelpTabPosition - the position of the tab
falseITabsetPanel.isClosableAt(int)public void setDragable(boolean pDragable)
setDragable in interface ITabsetPanelpDragable - true to set the tabs dragable and false prevent.public boolean isDragable()
isDragable in interface ITabsetPaneltrue if the tabs are dragable or false if the they are not dragable.
public void setEnabledAt(int pTabPosition,
boolean pEnabled)
setEnabledAt in interface ITabsetPanelpTabPosition - the position of the tabpEnabled - true to enable and false to disable the tabpublic boolean isEnabledAt(int pTabPosition)
isEnabledAt in interface ITabsetPanelpTabPosition - the position of the tab
true if the tab is enabled or false if the tab is disabled
public void setTextAt(int pIndex,
String pText)
pIndex to pText which
can be null.
setTextAt in interface ITabsetPanelpIndex - the tab index where the text should be setpText - the text to be displayed in the tabITabsetPanel.getTextAt(int)public String getTextAt(int pIndex)
pIndex.
getTextAt in interface ITabsetPanelpIndex - the index of the tab
pIndexITabsetPanel.setTextAt(int, String)public void setNavigationKeysEnabled(boolean pEnabled)
setNavigationKeysEnabled in interface ITabsetPanelpEnabled - true to enable the navigation with the keyboard, otherwise falsepublic boolean isNavigationKeysEnabled()
isNavigationKeysEnabled in interface ITabsetPaneltrue if the keyboard navigation is enabled, otherwise falsepublic TabsetHandler eventTabClosed()
eventTabClosed in interface ITabsetPanelpublic TabsetHandler eventTabMoved()
eventTabMoved in interface ITabsetPanel
protected void addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
addIntern in class QtContainer<QVxTabWidget>pComponent - the Component to be addedpConstraints - an object expressing layout contraints for thispIndex - the position in the container's list at which to insert
the Component; -1 means insert at the end
componentQtContainer.add(IComponent, Object, int)public void removeIntern(IComponent pComponent)
removeIntern in class QtContainer<QVxTabWidget>pComponent - the Component to be removedQtContainer.remove(int)public void doTabCloseRequest(Integer pIndex)
pIndex - the tab index
public void doTabMoved(Integer pOldIndex,
Integer pNewIndex)
pOldIndex - the old tab indexpNewIndex - the new tab index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||