|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebComponent
com.sibvisions.rad.ui.web.impl.WebContainer
com.sibvisions.rad.ui.web.impl.container.WebTabsetPanel
public class WebTabsetPanel
Web server implementation of ITabsetPanel.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebContainer |
|---|
components |
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent |
|---|
componentId |
| 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 | |
|---|---|
WebTabsetPanel()
Creates a new instance of WebTabsetPanel. |
|
| Method Summary | |
|---|---|
void |
add(IComponent pComponent,
Object pConstraints,
int pIndex)
Adds the specified IComponent to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object. |
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 pIndex)
Returns whether a tab is closable. |
boolean |
isDragable()
Returns whether the tabs are dragable. |
boolean |
isEnabledAt(int pIndex)
Returns if a tab is en- or disabled. |
boolean |
isNavigationKeysEnabled()
Determines whether the navigation with the keyboard is enabled. |
void |
remove(int pIndex)
Removes the IComponent, specified by index,
from this container.
This method also notifies the layout manager to remove the
component from this container's layout via the
removeLayoutComponent method. |
void |
setClosableAt(int pIndex,
boolean pClosable)
Sets a tab closable. |
void |
setDragable(boolean pDragable)
Sets a tabs dragable. |
void |
setEnabledAt(int pIndex,
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 pNavigationKeysEnabled)
En- or disables the tab navigation with the keyboard. |
void |
setSelectedIndex(int pSelectedIndex)
Sets the selected index for this tabbedpane. |
void |
setTabLayoutPolicy(int pTabLayoutPolicy)
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 pTabPlacement)
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.web.impl.WebContainer |
|---|
add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, removeAll, setLayout |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, setAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, removeAll, setLayout |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public WebTabsetPanel()
WebTabsetPanel.
ITabsetPanel| Method Detail |
|---|
public void setTabPlacement(int pTabPlacement)
setTabPlacement in interface ITabsetPanelpTabPlacement - 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 setEnabledAt(int pIndex,
boolean pEnabled)
setEnabledAt in interface ITabsetPanelpIndex - the position of the tabpEnabled - true to enable and false to disable the tabpublic boolean isEnabledAt(int pIndex)
isEnabledAt in interface ITabsetPanelpIndex - the position of the tab
true if the tab is enabled or false if the tab is disabledpublic void setTabLayoutPolicy(int pTabLayoutPolicy)
ITabsetPanel.TAB_LAYOUT_WRAP
JTabbedPane.TAB_LAYOUT_SCROLL
ITabsetPanel.TAB_LAYOUT_WRAP.
setTabLayoutPolicy in interface ITabsetPanelpTabLayoutPolicy - the policy used to layout the tabsITabsetPanel.getTabLayoutPolicy()public int getTabLayoutPolicy()
getTabLayoutPolicy in interface ITabsetPanelITabsetPanel.setTabLayoutPolicy(int)public void setSelectedIndex(int pSelectedIndex)
setSelectedIndex in interface ITabsetPanelpSelectedIndex - the index to be selectedITabsetPanel.getSelectedIndex()public int getSelectedIndex()
getSelectedIndex in interface ITabsetPanelITabsetPanel.setSelectedIndex(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 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 void setClosableAt(int pIndex,
boolean pClosable)
setClosableAt in interface ITabsetPanelpIndex - the position of the tabpClosable - true to set closable and false to be not closablepublic boolean isClosableAt(int pIndex)
isClosableAt in interface ITabsetPanelpIndex - the position of the tab
true if the tab is closable or false if the tab is not closablepublic 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 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 pNavigationKeysEnabled)
setNavigationKeysEnabled in interface ITabsetPanelpNavigationKeysEnabled - 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
public void add(IComponent pComponent,
Object pConstraints,
int pIndex)
IComponent to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object.
add in interface IContaineradd in class WebContainerpComponent - the IComponent to be addedpConstraints - an object expressing layout contraints for thispIndex - the position in the container's list at which to insert
the IComponent; -1 means insert at the end
componentIComponentpublic void remove(int pIndex)
IComponent, specified by index,
from this container.
This method also notifies the layout manager to remove the
component from this container's layout via the
removeLayoutComponent method.
remove in interface IContainerremove in class WebContainerpIndex - the index of the IComponent to be removedIContainer.add(javax.rad.ui.IComponent),
IContainer.getComponentCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||