Top Inners Fields Constructors Methods
com.sun.glass.ui

public final Class Menu

extends Object
Class Inheritance
Imports
java.util.List, .ArrayList, .Collections, com.sun.glass.ui.delegate.MenuDelegate, .MenuItemDelegate

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final MenuDelegate
private boolean
private Menu.EventHandler
private final List<Object>
private String

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public void
add(Menu menu)

public void
add(MenuItem item)

pack-priv MenuDelegate
public Menu.EventHandler
public List<Object>
getItems()

Gets list of menu elements.

public String
public void
insert(Menu menu, int pos)

public void
insert(MenuItem item, int pos)

public boolean
protected void
protected void
public void
remove(int pos)

public void
setEnabled(boolean enabled)

public void
public boolean
setPixels(Pixels pixels)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final MenuDelegate delegate
enabledback to summary
private boolean enabled
eventHandlerback to summary
private Menu.EventHandler eventHandler
itemsback to summary
private final List<Object> items
titleback to summary
private String title

Constructor Detail

Method Detail

addback to summary
public void add(Menu menu)
addback to summary
public void add(MenuItem item)
getDelegateback to summary
pack-priv MenuDelegate getDelegate()
getEventHandlerback to summary
public Menu.EventHandler getEventHandler()
getItemsback to summary
public List<Object> getItems()

Gets list of menu elements. Objects in the list returned are instances of Menu or MenuItem.

getTitleback to summary
public String getTitle()
insertback to summary
public void insert(Menu menu, int pos) throws IndexOutOfBoundsException
insertback to summary
public void insert(MenuItem item, int pos) throws IndexOutOfBoundsException
isEnabledback to summary
public boolean isEnabled()
notifyMenuClosedback to summary
protected void notifyMenuClosed()
notifyMenuOpeningback to summary
protected void notifyMenuOpening()
removeback to summary
public void remove(int pos) throws IndexOutOfBoundsException
setEnabledback to summary
public void setEnabled(boolean enabled)
setEventHandlerback to summary
public void setEventHandler(Menu.EventHandler eventHandler)
setPixelsback to summary
public boolean setPixels(Pixels pixels)
setTitleback to summary
public void setTitle(String title)
com.sun.glass.ui back to summary

public Class Menu.EventHandler

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.javafx.tk.quantum.GlassMenuEventHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handleMenuClosed(Menu menu, long time)

public void
handleMenuOpening(Menu menu, long time)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EventHandlerback to summary
public EventHandler()

Method Detail

handleMenuClosedback to summary
public void handleMenuClosed(Menu menu, long time)
handleMenuOpeningback to summary
public void handleMenuOpening(Menu menu, long time)