|
||||||||||
| 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<C>
javax.rad.genui.container.AbstractWindow<C>
javax.rad.genui.container.AbstractFrame<C>
C - instance of IFramepublic abstract class AbstractFrame<C extends IFrame>
Platform and technology independent frame. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary | |
|---|---|
protected IImage |
iconImage
the icon image. |
protected IMenuBar |
menuBar
the menu bar. |
| Fields inherited from class javax.rad.genui.UIContainer |
|---|
allComponents, components |
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.ui.container.IFrame |
|---|
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL |
| Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
| Constructor Summary | |
|---|---|
protected |
AbstractFrame(C pFrame)
Creates a new instance of AbstractFrame. |
| 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. |
IImage |
getIconImage()
Returns the image to be displayed as the icon for this frame. |
IMenuBar |
getMenuBar()
Returns the menubar set on this frame. |
int |
getState()
Gets the state of this frame (obsolete). |
java.lang.String |
getTitle()
Gets the title of the frame. |
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 IToolBars in this panel. |
int |
indexOfToolBar(IToolBar pToolBar)
Gets the nth position of an IToolBar in this panel. |
boolean |
isResizable()
Indicates whether this frame is resizable by the user. |
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 |
setIconImage(IImage pIconImage)
Sets the image to be displayed as the icon for this window. |
void |
setMenuBar(IMenuBar pMenuBar)
Sets the menubar for this frame. |
void |
setResizable(boolean pResizable)
Sets whether this frame is resizable by the user. |
void |
setState(int pState)
Sets the state of this frame (obsolete). |
void |
setTitle(java.lang.String pTitle)
Sets the title for this frame to the specified string. |
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.container.AbstractWindow |
|---|
centerRelativeTo, dispose, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, setVisible, toBack, toFront, topLevelAddNotify |
| Methods inherited from class javax.rad.genui.UIContainer |
|---|
add, add, add, add, addInternal, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, setLayout, setUIResourceContainer, setZOrder |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
centerRelativeTo, dispose, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, getTranslation, isActive, isDisposed, pack, setTranslation, toBack, toFront |
| 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 |
|---|
protected IImage iconImage
protected IMenuBar menuBar
| Constructor Detail |
|---|
protected AbstractFrame(C pFrame)
AbstractFrame.
pFrame - the IFrame.IFrame| Method Detail |
|---|
public java.lang.String getTitle()
getTitle in interface IFrameIFrame.setTitle(String)public void setTitle(java.lang.String pTitle)
setTitle in interface IFramepTitle - the title to be displayed in the frame's border.
A null value is treated as an empty string, "".IFrame.getTitle()public IImage getIconImage()
getIconImage in interface IFramenull
if this frame doesn't have an icon image.IFrame.setIconImage(IImage)public void setIconImage(IImage pIconImage)
setIconImage in interface IFramepIconImage - the icon image to be displayed.
If this parameter is null then the
icon image is set to the default image, which may vary
with platform.IFrame.getIconImage()public int getState()
In older versions of JDK a frame state could only be NORMAL or ICONIFIED. Since JDK 1.4 set of supported frame states is expanded and frame state is represented as a bitwise mask.
For compatibility with old programs this method still returns
Frame.NORMAL and Frame.ICONIFIED but
it only reports the iconic state of the frame, other aspects of
frame state are not reported by this method.
getState in interface IFrameFrame.NORMAL or Frame.ICONIFIED.IFrame.setState(int)public void setState(int pState)
In older versions of JDK a frame state could only be NORMAL or ICONIFIED. Since JDK 1.4 set of supported frame states is expanded and frame state is represented as a bitwise mask.
For compatibility with old programs this method still accepts
Frame.NORMAL and Frame.ICONIFIED but
it only changes the iconic state of the frame, other aspects of
frame state are not affected by this method.
setState in interface IFramepState - either Frame.NORMAL or
Frame.ICONIFIED.IFrame.getState(),
IFrame.setState(int)public boolean isResizable()
isResizable in interface IFrametrue if the user can resize this frame;
false otherwise.IFrame.setResizable(boolean)public void setResizable(boolean pResizable)
setResizable in interface IFramepResizable - true if this frame is resizable;
false otherwise.IFrame.isResizable()public IMenuBar getMenuBar()
getMenuBar in interface IFrameIFrame.setMenuBar(javax.rad.ui.menu.IMenuBar)public void setMenuBar(IMenuBar pMenuBar)
setMenuBar in interface IFramepMenuBar - the menubar being placed in the frameIFrame.getMenuBar()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 IToolBar 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 pArea)
setToolBarArea in interface IToolBarPanelpArea - 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_RIGHTpublic 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 AbstractWindow<C extends IFrame>UIComponent.setTranslation(TranslationMap),
UIComponent.addNotify()public void beforeAddNotify(IComponent pParent)
beforeAddNotify in class UIContainer<C extends IFrame>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<C extends IFrame>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<C extends IFrame>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 | |||||||||