public class SeparatorToolItem extends ToolItem
A SeparatorToolItem usually appears as a vertical line, and is used to create a visual distinction between logically related items in a Toolbar.
Somewhat unusually, a SeparatorToolItem can be used to force align other
ToolItems at the right of the Toolbar by adding one with
setDraw(false)
and setExpand(true)
between the two "sides".
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent
Constructor and Description |
---|
SeparatorToolItem()
Creates a new SeparatorToolItem.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getDraw()
Is the separator being displayed as a vertical line, or is it just
blank?
|
void |
setDraw(boolean draw)
Set whether the separator will display a vertical line.
|
getExpand, getRelatedAction, setExpand, setIsImportant, setRelatedAction
add, getChildren, remove, setBorderWidth
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll
public boolean getDraw()
public void setDraw(boolean draw)