|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComposite
org.formaria.swt.Panel
public class Panel
A basic container for components. The panel can optional draw a border. By default no frame is displayed.
Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Field Summary | |
|---|---|
static int |
BORDER_BEVEL
|
static int |
BORDER_FLAT
|
static int |
BORDER_NONE
|
| Constructor Summary | |
|---|---|
Panel(java.lang.Object parent)
Constructs a new panel with a null layout |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
int |
getDrawFrame()
Get the frame display value. |
java.lang.String |
getToolTip()
Get the tooltip text |
void |
setBounds(int x,
int y,
int w,
int h)
Set the panel size and location and then force it to redo its layout. |
void |
setDrawBorder(int value)
Toggle the border display. |
void |
setToolTip(java.lang.String text)
Set the tooltip text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BORDER_NONE
public static final int BORDER_BEVEL
public static final int BORDER_FLAT
| Constructor Detail |
|---|
public Panel(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
public void setDrawBorder(int value)
value - 0 for no frame, 1 for a bevel, 2 for a flat framepublic int getDrawFrame()
public void setToolTip(java.lang.String text)
text - the new textpublic java.lang.String getToolTip()
public void setBounds(int x,
int y,
int w,
int h)
x - the left coordinatey - the top coordinatew - the widthh - the height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||