|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FramePeer
Disabled: no SafeJ information.
The peer interface for Frame
. This adds a couple of frame specific
methods to the WindowPeer
interface.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.
Field Summary |
---|
Fields inherited from interface java.awt.peer.ComponentPeer |
---|
DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE |
Method Summary | |
---|---|
Rectangle |
getBoundsPrivate()
Returns the size and location for embedded frames. |
int |
getState()
Returns the current state of the frame. |
void |
setBoundsPrivate(int x,
int y,
int width,
int height)
Sets the size and location for embedded frames. |
void |
setMaximizedBounds(Rectangle bounds)
Sets the bounds of the frame when it becomes maximized. |
void |
setMenuBar(MenuBar mb)
Sets the menu bar for the frame. |
void |
setResizable(boolean resizeable)
Sets if the frame should be resizable or not. |
void |
setState(int state)
Changes the state of the frame. |
void |
setTitle(String title)
Sets the title on the frame. |
Methods inherited from interface java.awt.peer.WindowPeer |
---|
repositionSecurityWarning, setAlwaysOnTop, setModalBlocked, setOpacity, setOpaque, toBack, toFront, updateFocusableWindowState, updateIconImages, updateMinimumSize, updateWindow |
Methods inherited from interface java.awt.peer.ContainerPeer |
---|
beginLayout, beginValidate, endLayout, endValidate, getInsets |
Method Detail |
---|
void setTitle(String title)
title
- the title to setFrame.setTitle(String)
void setMenuBar(MenuBar mb)
mb
- the menu bar to setFrame.setMenuBar(MenuBar)
void setResizable(boolean resizeable)
resizeable
- true
when the frame should be resizable,
false
if notFrame.setResizable(boolean)
void setState(int state)
state
- the new stateFrame.setExtendedState(int)
int getState()
Frame.getExtendedState()
void setMaximizedBounds(Rectangle bounds)
bounds
- the maximized bounds of the frameFrame.setMaximizedBounds(Rectangle)
void setBoundsPrivate(int x, int y, int width, int height)
x
- the X locationy
- the Y locationwidth
- the width of the frameheight
- the height of the frameEmbeddedFrame.setBoundsPrivate(int, int, int, int)
Rectangle getBoundsPrivate()
EmbeddedFrame.getBoundsPrivate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |