Top Methods
com.sun.javafx.menu

public Interface MenuBase

extends MenuItemBase
Imports
javafx.beans.property.ObjectProperty, .ReadOnlyBooleanProperty, javafx.collections.ObservableList, javafx.event.Event, .EventHandler

Method Summary

Modifier and TypeMethod and Description
public ObservableList<MenuItemBase>
getItemsBase()

* Public API * *

public EventHandler<Event>
public EventHandler<Event>
public EventHandler<Event>
public EventHandler<Event>
public void
hide()

Hides the menu if it was previously showing, and any showing submenus.

public boolean
isShowing()

* Properties * *

public ObjectProperty<EventHandler<Event>>
public ObjectProperty<EventHandler<Event>>
public ObjectProperty<EventHandler<Event>>
public ObjectProperty<EventHandler<Event>>
public void
setOnHidden(EventHandler<Event> value)

Called just after the menu has been hidden.

public void
setOnHiding(EventHandler<Event> value)

Called just prior to the menu being hidden.

public void
setOnShowing(EventHandler<Event> value)

Called just prior to the menu being shown, even if the menu has no items to show.

public void
setOnShown(EventHandler<Event> value)

Called just after the menu is shown.

public void
show()

If the menu is not disabled and is not already showing, then this will cause the menu to be shown.

public ReadOnlyBooleanProperty
Inherited from com.sun.javafx.menu.MenuItemBase:
acceleratorPropertydisablePropertyfirefireValidationgetAcceleratorgetGraphicgetIdgetOnActiongetTextgraphicPropertyidPropertyisDisableisMnemonicParsingisVisiblemnemonicParsingPropertyonActionPropertysetAcceleratorsetDisablesetGraphicsetIdsetMnemonicParsingsetOnActionsetTextsetVisibletextPropertyvisibleProperty

Method Detail

getItemsBaseback to summary
public ObservableList<MenuItemBase> getItemsBase()

* Public API * *

getOnHiddenback to summary
public EventHandler<Event> getOnHidden()
getOnHidingback to summary
public EventHandler<Event> getOnHiding()
getOnShowingback to summary
public EventHandler<Event> getOnShowing()
getOnShownback to summary
public EventHandler<Event> getOnShown()
hideback to summary
public void hide()

Hides the menu if it was previously showing, and any showing submenus. If this menu is not showing, then invoking this function has no effect.

isShowingback to summary
public boolean isShowing()

* Properties * *

onHiddenPropertyback to summary
public ObjectProperty<EventHandler<Event>> onHiddenProperty()
onHidingPropertyback to summary
public ObjectProperty<EventHandler<Event>> onHidingProperty()
onShowingPropertyback to summary
public ObjectProperty<EventHandler<Event>> onShowingProperty()
onShownPropertyback to summary
public ObjectProperty<EventHandler<Event>> onShownProperty()
setOnHiddenback to summary
public void setOnHidden(EventHandler<Event> value)

Called just after the menu has been hidden.

setOnHidingback to summary
public void setOnHiding(EventHandler<Event> value)

Called just prior to the menu being hidden.

setOnShowingback to summary
public void setOnShowing(EventHandler<Event> value)

Called just prior to the menu being shown, even if the menu has no items to show. Note however that this won't be called if the menu does not have a valid anchor node.

setOnShownback to summary
public void setOnShown(EventHandler<Event> value)

Called just after the menu is shown.

showback to summary
public void show()

If the menu is not disabled and is not already showing, then this will cause the menu to be shown.

showingPropertyback to summary
public ReadOnlyBooleanProperty showingProperty()