|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<IToolBarPanel>
javax.rad.genui.container.UIToolBarPanel
public class UIToolBarPanel
Platform and technology independent toolbar panel. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .
Field Summary |
---|
Fields inherited from class javax.rad.genui.UIContainer |
---|
components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
lLastTranslationModified, parent |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
Constructor Summary | |
---|---|
|
UIToolBarPanel()
Creates a new instance of UIToolBarPanel . |
protected |
UIToolBarPanel(IToolBarPanel pPanel)
Creates a new instance of UIToolBarPanel with the given
toolbar panel. |
Method Summary | |
---|---|
void |
addNotify()
Makes this UIComponent displayable by adding it to an UIContainer . |
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. |
void |
beforeAddNotify(IComponent pParent)
Invoked before this component is added. |
IToolBar |
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 IToolBar s in this panel. |
int |
indexOfToolBar(IToolBar pToolBar)
Gets the nth position of an IToolBar in this panel. |
boolean |
isToolBarMovable()
Gets whether the toolbars are movable. |
void |
removeAllToolBars()
Removes all toolbars from this panel. |
void |
removeNotify()
Makes this UIComponent undisplayable by removing it to an UIContainer . |
void |
removeToolBar(int pIndex)
Removes a toolbar from this panel. |
void |
removeToolBar(IToolBar pToolBar)
Removes a toolbar from this panel. |
void |
setToolBarArea(int pArea)
Sets the display area where the toolbars will be added. |
void |
setToolBarMovable(boolean pMovable)
Sets all toolbars movable or fixed. |
void |
updateTranslation()
Notification for updating the translation. |
Methods inherited from class javax.rad.genui.UIContainer |
---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setZOrder |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getUIResource, 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 UIToolBarPanel()
UIToolBarPanel
.
IToolBarPanel
protected UIToolBarPanel(IToolBarPanel pPanel)
UIToolBarPanel
with the given
toolbar panel.
pPanel
- the toolbar panelIToolBarPanel
Method Detail |
---|
public void addToolBar(IToolBar pToolBar)
addToolBar
in interface IToolBarPanel
pToolBar
- the toolbar to be addedpublic void addToolBar(IToolBar pToolBar, int pIndex)
addToolBar
in interface IToolBarPanel
pToolBar
- the toolbar to be addedpIndex
- the index for the toolbarpublic void removeToolBar(IToolBar pToolBar)
removeToolBar
in interface IToolBarPanel
pToolBar
- the toolbarpublic void removeToolBar(int pIndex)
removeToolBar
in interface IToolBarPanel
pIndex
- the indexpublic void removeAllToolBars()
removeAllToolBars
in interface IToolBarPanel
public int getToolBarCount()
IToolBar
s in this panel.
getToolBarCount
in interface IToolBarPanel
public IToolBar getToolBar(int pIndex)
IToolBar
from a specific index.
getToolBar
in interface IToolBarPanel
pIndex
- the index
pIndex
public int indexOfToolBar(IToolBar pToolBar)
IToolBar
in this panel.
indexOfToolBar
in interface IToolBarPanel
pToolBar
- the IToolBar
to search
pToolBar
in this panel or
-1
if pToolBar
is not addedpublic void setToolBarArea(int pArea)
setToolBarArea
in interface IToolBarPanel
pArea
- an area constant IToolBarPanel.AREA_TOP
, IToolBarPanel.AREA_LEFT
,
IToolBarPanel.AREA_BOTTOM
, IToolBarPanel.AREA_RIGHT
public int getToolBarArea()
getToolBarArea
in interface IToolBarPanel
IToolBarPanel.AREA_TOP
, IToolBarPanel.AREA_LEFT
,
IToolBarPanel.AREA_BOTTOM
, IToolBarPanel.AREA_RIGHT
public void updateTranslation()
UIComponent
will be added to a displayable containment hierarchy,
when its containment hierarchy is made displayable or the translation table will
be changed.
updateTranslation
in class UIContainer<IToolBarPanel>
UIComponent.setTranslation(TranslationMap)
,
UIComponent.addNotify()
public void beforeAddNotify(IComponent pParent)
beforeAddNotify
in class UIContainer<IToolBarPanel>
pParent
- the parentpublic void addNotify()
UIComponent
displayable by adding it to an UIContainer
.
This method is called internally by the genui and should not be called directly.
addNotify
in class UIContainer<IToolBarPanel>
UIComponent.removeNotify()
,
UIComponent.isNotified()
public void removeNotify()
UIComponent
undisplayable by removing it to an UIContainer
.
This method is called by the genui internally and should not be called directly.
Code overriding this method should call super.removeNotify
as the first line
of the overriding method.
removeNotify
in class UIContainer<IToolBarPanel>
UIComponent.addNotify()
,
UIComponent.isNotified()
public void setToolBarMovable(boolean pMovable)
pMovable
- true
to move the toolbars, false
otherwisepublic boolean isToolBarMovable()
true
if the toolbars are movable, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |