Package org.webkitgtk
Class OptionMenuItem
java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.OptionMenuItem
- All Implemented Interfaces:
Proxy
One item of a
WebKitOptionMenu.
The WebKitOptionMenu is composed of WebKitOptionMenuItem<!-- -->s.
A WebKitOptionMenuItem always has a label and can contain a tooltip text.
You can use the WebKitOptionMenuItem of a WebKitOptionMenu to build your
own menus.
- Since:
- 2.18
-
Constructor Summary
ConstructorsConstructorDescriptionOptionMenuItem(MemorySegment address) Create a OptionMenuItem proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Make a copy of theWebKitOptionMenuItem.voidfree()Free theWebKitOptionMenuItem.getLabel()Get the label of aWebKitOptionMenuItem.Get the tooltip of aWebKitOptionMenuItem.static @Nullable TypegetType()Get the GType of the OptionMenuItem classbooleanWhether aWebKitOptionMenuItemis enabled.booleanWhether aWebKitOptionMenuItemis a group child.booleanWhether aWebKitOptionMenuItemis a group label.booleanWhether aWebKitOptionMenuItemis the currently selected one.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OptionMenuItem
Create a OptionMenuItem proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getType
-
copy
Make a copy of theWebKitOptionMenuItem.- Returns:
- A copy of passed in
WebKitOptionMenuItem - Since:
- 2.18
-
free
public void free()Free theWebKitOptionMenuItem.- Since:
- 2.18
-
getLabel
Get the label of aWebKitOptionMenuItem.- Returns:
- The label of
item. - Since:
- 2.18
-
getTooltip
Get the tooltip of aWebKitOptionMenuItem.- Returns:
- The tooltip of
item,ornull. - Since:
- 2.18
-
isEnabled
public boolean isEnabled()Whether aWebKitOptionMenuItemis enabled.- Returns:
trueif the this OptionMenuItem is enabled orfalseotherwise.- Since:
- 2.18
-
isGroupChild
public boolean isGroupChild()Whether aWebKitOptionMenuItemis a group child.- Returns:
trueif the this OptionMenuItem is a group child orfalseotherwise.- Since:
- 2.18
-
isGroupLabel
public boolean isGroupLabel()Whether aWebKitOptionMenuItemis a group label.- Returns:
trueif the this OptionMenuItem is a group label orfalseotherwise.- Since:
- 2.18
-
isSelected
public boolean isSelected()Whether aWebKitOptionMenuItemis the currently selected one.- Returns:
trueif the this OptionMenuItem is selected orfalseotherwise.- Since:
- 2.18
-