|
java-gnome version 4.0.16 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| 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 |
| 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 |
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, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, 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 |
| Constructor Detail |
|---|
public ToolItem()
| Method Detail |
|---|
public boolean getExpand()
public Action getRelatedAction()
Activatable
getRelatedAction in interface Activatablepublic void setExpand(boolean expand)
public void setRelatedAction(Action action)
ActivatableThis replaced Action's connectProxy().
setRelatedAction in interface Activatable
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||