public class WPlainPanel extends WPanel
| Constructor and Description |
|---|
WPlainPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(WWidget w,
int x,
int y)
Adds a new widget to this panel.
|
void |
add(WWidget w,
int x,
int y,
int width,
int height)
Adds a new widget to this panel and resizes it to a custom size.
|
Insets |
getInsets()
Gets the layout insets of this panel.
|
WPlainPanel |
setInsets(Insets insets)
Sets the layout insets of this panel.
|
addPainters, canResize, createPeers, cycleFocus, cycleFocus, expandToFit, expandToFit, getBackgroundPainter, hit, layout, onHidden, onShown, paint, remove, setBackgroundPainter, tick, toString, validateaddTooltip, canFocus, getAbsoluteX, getAbsoluteY, getHeight, getHost, getParent, getWidth, getX, getY, isActivationKey, isFocused, isWithinBounds, onCharTyped, onClick, onFocusGained, onFocusLost, onKeyPressed, onKeyReleased, onMouseDown, onMouseDrag, onMouseMove, onMouseScroll, onMouseUp, releaseFocus, renderTooltip, requestFocus, setHost, setLocation, setParent, setSizepublic void add(WWidget w, int x, int y)
If the widget can be resized, it will be resized to (18, 18).
w - the widgetx - the X positiony - the Y positionpublic void add(WWidget w, int x, int y, int width, int height)
w - the widgetx - the X positiony - the Y positionwidth - the new widthheight - the new heightpublic Insets getInsets()
public WPlainPanel setInsets(Insets insets)
The insets should be set before adding any widgets to this panel.
insets - the insets, should not be null