|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Frame
public class Frame
The Frame widget is a Bin that surrounds its child with a decorative frame and an optional label. If present, the label is drawn in the gap in the top side of the frame by default.
Constructor Summary | |
---|---|
Frame()
Creates a new frame with no label |
|
Frame(org.gnu.glib.Handle handle)
Construct a frame using a handle to a native resource. |
|
Frame(java.lang.String label)
Creates a new frame, with the text of label being displayed in the top left. |
Method Summary | |
---|---|
static Frame |
getFrame(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
java.lang.String |
getLabel()
Returns the text of the label which is being displayed at the top of the frame. |
double |
getLabelAlign()
Returns a number representing the alignment of the label |
Widget |
getLabelWidget()
Returns the widget being used as the label of the frame. |
ShadowType |
getShadow()
Returns the shadow type in use |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
removeLabel()
Removes the label from the frame |
void |
setLabel(java.lang.String label)
Changes the label which is displayed in the frame border. |
void |
setLabelAlign(double align)
Sets the alignment of the label widget along the top edge of the frame. |
void |
setLabelWidget(Widget labelWidget)
Sets the widget to use as the label for the frame. |
void |
setShadow(ShadowType shadowType)
Sets the ShadowType to be displayed for the frame. |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Frame()
public Frame(org.gnu.glib.Handle handle)
public Frame(java.lang.String label)
label
- Text to be displayed in the border of the frame.Method Detail |
---|
public static Frame getFrame(org.gnu.glib.Handle handle)
public void setLabel(java.lang.String label)
label
- The text to displaypublic void removeLabel()
public java.lang.String getLabel()
public void setLabelWidget(Widget labelWidget)
setLabel(String)
method
labelWidget
- The widget to use in the label position of the frame.public Widget getLabelWidget()
Label
widget. This method allows you to customise the widget.
public void setLabelAlign(double align)
align
- A number representing the alignment of the label.public double getLabelAlign()
setLabelAlign(double)
public void setShadow(ShadowType shadowType)
ShadowType
to be displayed for the frame.
shadowType
- the shadow type to be used.public ShadowType getShadow()
public static Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |