|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFrame
Platform and technology independent Frame definition. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .
Frame
,
JFrame
Field Summary | |
---|---|
static int |
ICONIFIED
This state bit indicates that frame is iconified. |
static int |
MAXIMIZED_BOTH
This state bit mask indicates that frame is fully maximized (that is both horizontally and vertically). |
static int |
MAXIMIZED_HORIZ
This state bit indicates that frame is maximized in the horizontal direction. |
static int |
MAXIMIZED_VERT
This state bit indicates that frame is maximized in the vertical direction. |
static int |
NORMAL
Frame is in the "normal" state. |
Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
Method Summary | |
---|---|
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). |
String |
getTitle()
Gets the title of the frame. |
boolean |
isResizable()
Indicates whether this frame is resizable by the user. |
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(String pTitle)
Sets the title for this frame to the specified string. |
Methods inherited from interface javax.rad.ui.container.IWindow |
---|
centerRelativeTo, dispose, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, toBack, toFront |
Methods inherited from interface javax.rad.ui.container.IToolBarPanel |
---|
addToolBar, addToolBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, removeAllToolBars, removeToolBar, removeToolBar, setToolBarArea |
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 |
---|
static final int NORMAL
setState(int)
,
getState()
,
Constant Field Valuesstatic final int ICONIFIED
setState(int)
,
getState()
,
Constant Field Valuesstatic final int MAXIMIZED_HORIZ
setState(int)
,
getState()
,
Constant Field Valuesstatic final int MAXIMIZED_VERT
setState(int)
,
getState()
,
Constant Field Valuesstatic final int MAXIMIZED_BOTH
MAXIMIZED_VERT | MAXIMIZED_HORIZ
.
Note that the correct test for frame being fully maximized is
(state & Frame.MAXIMIZED_BOTH) == Frame.MAXIMIZED_BOTH
To test is frame is maximized in some direction use
(state & Frame.MAXIMIZED_BOTH) != 0
setState(int)
,
getState()
,
Constant Field ValuesMethod Detail |
---|
String getTitle()
setTitle(String)
void setTitle(String pTitle)
pTitle
- the title to be displayed in the frame's border.
A null
value is treated as an empty string, "".getTitle()
IImage getIconImage()
null
if this frame doesn't have an icon image.setIconImage(IImage)
void setIconImage(IImage pIconImage)
pIconImage
- 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.getIconImage()
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.
Frame.NORMAL
or Frame.ICONIFIED
.setState(int)
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.
pState
- either Frame.NORMAL
or
Frame.ICONIFIED
.getState()
,
setState(int)
boolean isResizable()
true
if the user can resize this frame;
false
otherwise.setResizable(boolean)
void setResizable(boolean pResizable)
pResizable
- true
if this frame is resizable;
false
otherwise.isResizable()
void setMenuBar(IMenuBar pMenuBar)
pMenuBar
- the menubar being placed in the framegetMenuBar()
IMenuBar getMenuBar()
setMenuBar(javax.rad.ui.menu.IMenuBar)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |