org.gnome.gtk
Class ToolItem
Object
org.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Bin
org.gnome.gtk.ToolItem
- Direct Known Subclasses:
- SeparatorToolItem, ToolButton
public class ToolItem
- extends Bin
ToolItems are the items that can be added to a Toolbar
.
Usually you will prefer to use a subtype of this class, such as
ToolButton
, in your Toolbars. However, if you want to add another
kind of Widget, you have to create a new ToolItem and add()
the desired Widget to it.
- Since:
- 4.0.4
- Author:
- Vreixo Formoso
- See Also:
Toolbar
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
Constructor Summary |
ToolItem()
Create a new ToolItem. |
Method Summary |
boolean |
getExpand()
Get if this ToolItem will be [is] expanded in the presence of extra
available space on the Toolbar. |
void |
setExpand(boolean expand)
Set whether this ToolItem will be expanded when there is available
space on the Toolbar. |
Methods inherited from class org.gnome.gtk.Bin |
getChild |
Methods inherited from class org.gnome.gtk.Widget |
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
Methods inherited from class org.freedesktop.bindings.Pointer |
toString |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ToolItem
public ToolItem()
- Create a new ToolItem.
getExpand
public boolean getExpand()
- Get if this ToolItem will be [is] expanded in the presence of extra
available space on the Toolbar.
setExpand
public void setExpand(boolean expand)
- Set whether this ToolItem will be expanded when there is available
space on the Toolbar.