|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.ToolBar
The ToolBar is used to construct a toolbar. It is the container that controls the position of a set of icons that are mouse sensitive.
Constructor Summary | |
ToolBar()
Create a new ToolBar |
Method Summary | |
void |
appendSpace()
Add a space to the end of the ToolBar. |
void |
appendWidget(Widget widget,
java.lang.String tooltip,
java.lang.String helpText)
Add a widget to the end of the toolbar. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
insertSpace(int position)
Insert a space in the ToolBar at the specified location. |
void |
insertWidget(Widget widget,
java.lang.String tooltip,
java.lang.String helpText,
int index)
Insert a Widget in the ToolBar at the given position |
void |
prependSpace()
Add a space to the beginning of the ToolBar. |
void |
prependWidget(Widget widget,
java.lang.String tooltip,
java.lang.String helpText)
Add a widget to the beginning of the toolbar. |
void |
removeSpace(int position)
Remove a space from the ToolBar. |
void |
setIconSize(IconSize iconSize)
Sets the size of the stock icons in the ToolBar. |
void |
setOrientation(Orientation orientation)
Set whether the ToolBar should appear horizontally or vertically. |
void |
setStyle(ToolBarStyle style)
Alter the view of the ToolBar to display either icons only, text only, or both. |
void |
setToolTips(boolean enable)
Sets if the tooltips of the ToolBar should be active or not. |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ToolBar()
Method Detail |
public void appendWidget(Widget widget, java.lang.String tooltip, java.lang.String helpText)
widget
- The widget to add to the end of the ToolBar.tooltip
- The text for the tooltip for this item.helpText
- Context sensitive help about this item.public void prependWidget(Widget widget, java.lang.String tooltip, java.lang.String helpText)
widget
- The widget to add to the beginning of the ToolBar.tooltip
- The text for the tooltip for this item.helpText
- Context sensitive help about this item.public void insertWidget(Widget widget, java.lang.String tooltip, java.lang.String helpText, int index)
widget
- The widget to add to the ToolBar.tooltip
- The text for the tooltip for this item.helpText
- Context sensitive help about this item.index
- The location in the ToolBar to insert this Widget.public void appendSpace()
public void prependSpace()
public void insertSpace(int position)
position
- The location to insert the space.public void removeSpace(int position)
position
- The position of the space to remove.public void setOrientation(Orientation orientation)
orientation
- Specifies the direction of the ToolBar.public void setStyle(ToolBarStyle style)
style
- Determines how to display the items.public void setToolTips(boolean enable)
enable
- Should the tooltips be enabled.public void setIconSize(IconSize iconSize)
iconSize
- The size of the icons.public static Type getType()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |