Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.ToolBar
public class ToolBar
extends Container
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
int |
|
Class |
|
EventType |
|
ToolItem |
|
int |
|
int |
|
ReliefStyle |
|
boolean |
|
static ToolBar |
|
static Type |
|
void | |
void |
|
void |
|
boolean | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public 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.
Create a new ToolBar
public ToolBar(Handle hndl)
public void addListener(ToolBarListener listener)
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.
Register an object to handle dialog events.
- See Also:
ToolBarListener
public void appendSpace()
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.
public void appendWidget(Widget widget, String tooltip, String helpText)
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.
public int getDropIndex(int x, int 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.
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
-
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Container
public EventType getEventType(String signal)
- Overrides:
- getEventType in interface Container
public ToolItem getItem(int 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 ToolItem on the ToolBar from the position specified.
- Parameters:
position
-
public int getItemIndex(ToolItem 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 position of an item on the ToolBar starting from 0.
- Parameters:
item
-
public int getNumItems()
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.
public ReliefStyle getReliefStyle()
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.
public boolean getShowArrow()
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.
public static ToolBar getToolBar(Handle handle)
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.
public static Type getType()
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.
public void insert(ToolItem item, int 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 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
-
public void insertSpace(int 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.
public void insertWidget(Widget widget, String tooltip, String helpText, int 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.
Insert a Widget in the ToolBar at the given position
- Parameters:
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 boolean isToolTips()
public void prependSpace()
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.
public void prependWidget(Widget widget, String tooltip, String helpText)
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.
public void removeListener(ToolBarListener listener)
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 listener
- See Also:
addListener(ToolBarListener)
public void removeSpace(int 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.
Remove a space from the ToolBar.
- Parameters:
position
- The position of the space to remove.
public void setDropHighlightItem(ToolItem item, int 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.
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
-
public void setIconSize(IconSize iconSize)
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.
public void setOrientation(Orientation orientation)
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.
public void setShowArrow(boolean 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.
Sets whether to show an overflow menu when ToolBar doesn't have room for all of its' items.
- Parameters:
showArrow
-
public void setStyle(ToolBarStyle style)
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.
public void setToolTips(boolean enable)
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.