|
||||||||||
| 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.WebToolBarPanel
public class WebToolBarPanel
Web server implementation of IToolBarPanel.
| Field Summary | |
|---|---|
protected WebToolBar |
toolBarPanel
The tool bar panel. |
| 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.IToolBarPanel |
|---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
WebToolBarPanel()
Creates a new instance of WebToolBarPanel. |
|
| 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. |
protected void |
addPanelIntern(WebContainer pWebContainer,
Object pConstraints)
Adds the tool bar panel. |
void |
addToolBar(IToolBar pToolBar)
Adds a toolbar to this panel as last component. |
void |
addToolBar(IToolBar pToolBar,
int pIndex)
Adds a toolbar to this panel at a specified index. |
WebToolBar |
getToolBar(int pIndex)
Gets the IToolBar from a specific index. |
int |
getToolBarArea()
Gets the area where the toolbar(s) are added. |
int |
getToolBarCount()
Gets the number of IToolBars in this panel. |
int |
indexOfToolBar(IToolBar pToolBar)
Gets the nth position of an IToolBar in this panel. |
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 |
removeAllToolBars()
Removes all toolbars from this panel. |
protected void |
removePanelIntern(WebContainer pWebContainer)
Removes the tool bar panel. |
void |
removeToolBar(int pIndex)
Removes a toolbar from this panel. |
void |
removeToolBar(IToolBar pToolBar)
Removes a toolbar from this panel. |
void |
setLayout(ILayout pLayout)
Sets the layout manager for this container. |
void |
setToolBarArea(int pToolBarArea)
Sets the display area where the toolbars will be added. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebContainer |
|---|
add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, removeAll |
| 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 |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Field Detail |
|---|
protected WebToolBar toolBarPanel
| Constructor Detail |
|---|
public WebToolBarPanel()
WebToolBarPanel.
IToolBarPanel| Method Detail |
|---|
public void setLayout(ILayout pLayout)
setLayout in interface IContainersetLayout in class WebContainerpLayout - the specified layout managerILayout,
IContainer.getLayout()
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()
protected void addPanelIntern(WebContainer pWebContainer,
Object pConstraints)
pWebContainer - the tool bar panel.pConstraints - the constraints.protected void removePanelIntern(WebContainer pWebContainer)
pWebContainer - the tool bar panel.public void addToolBar(IToolBar pToolBar)
addToolBar in interface IToolBarPanelpToolBar - the toolbar to be added
public void addToolBar(IToolBar pToolBar,
int pIndex)
addToolBar in interface IToolBarPanelpToolBar - the toolbar to be addedpIndex - the index for the toolbarpublic void removeToolBar(int pIndex)
removeToolBar in interface IToolBarPanelpIndex - the indexpublic void removeToolBar(IToolBar pToolBar)
removeToolBar in interface IToolBarPanelpToolBar - the toolbarpublic void removeAllToolBars()
removeAllToolBars in interface IToolBarPanelpublic int getToolBarCount()
IToolBars in this panel.
getToolBarCount in interface IToolBarPanelpublic WebToolBar getToolBar(int pIndex)
IToolBar from a specific index.
getToolBar in interface IToolBarPanelpIndex - the index
pIndexpublic int indexOfToolBar(IToolBar pToolBar)
IToolBar in this panel.
indexOfToolBar in interface IToolBarPanelpToolBar - the IToolBar to search
pToolBar in this panel or
-1 if pToolBar is not addedpublic void setToolBarArea(int pToolBarArea)
setToolBarArea in interface IToolBarPanelpToolBarArea - an area constant IToolBarPanel.AREA_TOP, IToolBarPanel.AREA_LEFT,
IToolBarPanel.AREA_BOTTOM, IToolBarPanel.AREA_RIGHTpublic int getToolBarArea()
getToolBarArea in interface IToolBarPanelIToolBarPanel.AREA_TOP, IToolBarPanel.AREA_LEFT,
IToolBarPanel.AREA_BOTTOM, IToolBarPanel.AREA_RIGHT
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||