|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.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
public class ToolItem
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.
Toolbar
Nested Class Summary |
---|
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 |
Nested classes/interfaces inherited from class org.gnome.gtk.Object |
---|
Object.Destroy |
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. |
Action |
getRelatedAction()
Get the Action that is triggered when this Activatable is activated, if any. |
void |
setExpand(boolean expand)
Set whether this ToolItem will be expanded when there is available space on the Toolbar. |
void |
setIsImportant(boolean setting)
Indicate that this ToolItem is to be considered to have "priority text". |
void |
setRelatedAction(Action action)
Set the Action that is triggered when this Activatable is activated. |
Methods inherited from class org.gnome.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnome.gtk.Container |
---|
add, getChildren, remove, setBorderWidth |
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, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
Methods inherited from class org.gnome.gtk.Object |
---|
connect, destroy |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToolItem()
Method Detail |
---|
public boolean getExpand()
public Action getRelatedAction()
Activatable
getRelatedAction
in interface Activatable
public void setExpand(boolean expand)
public void setIsImportant(boolean setting)
BOTH_HORIZ
(which is the default in
GNOME these days) only ToolItems with this property set will have their
labels showing. For example, browsers often have the label "Back" but
not "Forward" or "Up" marked important and thus showing.
public void setRelatedAction(Action action)
Activatable
This replaced Action's connectProxy().
setRelatedAction
in interface Activatable
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |