org.gnu.gtk
public class ToolBar extends Container
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.ToolBar
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
ToolBar()
Create a new ToolBar | |
ToolBar(Handle hndl) |
Method Summary | |
---|---|
void | addListener(ToolBarListener listener)
Register an object to handle dialog events.
|
void | appendSpace()
Add a space to the end of the ToolBar.
|
void | appendWidget(Widget widget, String tooltip, String helpText)
Add a widget to the end of the toolbar.
|
int | getDropIndex(int x, int y)
Returns the position corresponding to the indicated point on ToolBar.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
ToolItem | getItem(int position)
Return the ToolItem on the ToolBar from the position specified.
|
int | getItemIndex(ToolItem item)
Return the position of an item on the ToolBar starting from 0.
|
int | getNumItems()
Return the number of items on the ToolBar. |
ReliefStyle | getReliefStyle()
Returns the ReliefStyle of Buttons on the ToolBar. |
boolean | getShowArrow()
Returns whether the ToolBar has an overflow menu. |
static ToolBar | getToolBar(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | insert(ToolItem item, int position)
Insert a ToolItem into the ToolBar at a specified position. |
void | insertSpace(int position)
Insert a space in the ToolBar at the specified location.
|
void | insertWidget(Widget widget, String tooltip, String helpText, int index)
Insert a Widget in the ToolBar at the given position
|
boolean | isToolTips() |
void | prependSpace()
Add a space to the beginning of the ToolBar.
|
void | prependWidget(Widget widget, String tooltip, String helpText)
Add a widget to the beginning of the toolbar.
|
void | removeListener(ToolBarListener listener)
Removes a listener
|
void | removeSpace(int position)
Remove a space from the ToolBar.
|
void | setDropHighlightItem(ToolItem item, int index)
Highlights ToolBar to give an idea of what it would look like if a
ToolItem was added to the ToolBar and the provided index.
|
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 | setShowArrow(boolean showArrow)
Sets whether to show an overflow menu when ToolBar doesn't have room for
all of its' items.
|
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.
|
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Create a new ToolBarDeprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle dialog events.See Also: ToolBarListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Add a space to the end of the ToolBar.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Add a widget to the end of the toolbar.Parameters: 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.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the position corresponding to the indicated point on ToolBar. This is useful when dragging items to the ToolBar: this functions returns the position a new item would be inserted.Parameters: x y
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the ToolItem on the ToolBar from the position specified.Parameters: position
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the position of an item on the ToolBar starting from 0.Parameters: item
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the number of items on the ToolBar.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the ReliefStyle of Buttons on the ToolBar.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether the ToolBar has an overflow menu.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Insert a ToolItem into the ToolBar at a specified position. If position is 0 then the item is prepended to the start of the ToolBar. If position is negative then it is appended to the end of the ToolBar.Parameters: item position
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Insert a space in the ToolBar at the specified location.Parameters: position The location to insert the space.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Insert a Widget in the ToolBar at the given positionParameters: 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.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Add a space to the beginning of the ToolBar.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Add a widget to the beginning of the toolbar.Parameters: 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.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listenerSee Also: addListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Remove a space from the ToolBar.Parameters: position The position of the space to remove.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Highlights ToolBar to give an idea of what it would look like if a ToolItem was added to the ToolBar and the provided index.Parameters: item index
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the size of the stock icons in the ToolBar.Parameters: iconSize The size of the icons.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Set whether the ToolBar should appear horizontally or vertically.Parameters: orientation Specifies the direction of the ToolBar.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether to show an overflow menu when ToolBar doesn't have room for all of its' items.Parameters: showArrow
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Alter the view of the ToolBar to display either icons only, text only, or both.Parameters: style Determines how to display the items.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets if the tooltips of the ToolBar should be active or not.Parameters: enable Should the tooltips be enabled.