• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. OpenJFX
  3. Main
  4. Projects and Components
  5. Controls
  6. User Experience Specifications
  7. MenuButton and SplitMenuButton User Experience Documentation

MenuButton and SplitMenuButton User Experience Documentation

  • Created by Jindrich Dinga, last modified on Sep 19, 2013

Author: Jindrich Dinga

1. Introduction

This document is the user experience specification for the JavaFX MenuButton and SplitMenuButton UI controls.

 

2. Overview

MenuButton

The MenuButton is a control that offers a list of choices to the user. It can contain an icon, label, or both, and an arrow.

figure 1 - MenuButton states

Please note that the whole area of the button is click-able.

SplitMenuButton

The SplitMenuButton is a control that consists from two buttons: 1. main button and 2. pop-up menu button. It allows users to change the function of the main button by selecting items from the pop-up menu. The most recently selected item becomes the main button item.

figure 2 - SplitMenuButton states

The SplitMenuButton works as follows:

  • the main button contains an action/function
  • the user clicks on the small button that shows the pop-up menu
    • the user selects new action/function
  • the new action/function replaces the previous action/function
    • new action/function IS NOT performed
  • the user clicks the main button
    • new action/function IS performed

Please note, that it should be possible to modify behavior of this button so actions that the user selects from the pop-up menu do not change the default action that is available on the main button.

The SplitMenuButton supports only a single-level menu. Also, it can contain an icon, label, or both.

3 Keyboard Support

The following table describes how keystrokes should be processed in case a MenuButton has focus:

KeystrokeAction
SpaceOpens the Pop-up menu.
Enter
  1. Opens the Pop-up menu.
  2. When the Pop-up menu is open and focus is on a menu item, it performs its associated action.
Up ArrowIf Up Arrow icon is available on the menu button and the Pop-up menu is closed, it opens the Pop-up menu. If the Pop-up menu is open, it moves focus to the previous menu item in the Pop-up menu, wrapping from first to last.
Down ArrowIf Down Arrow icon is available on the menu button and the Pop-up menu is closed, it opens the Pop-up menu. If the Pop-up menu is opened, it moves focus to the next menu item in the Pop-up menu, wrapping from last to first.
Left ArrowIf Left Arrow icon is available on the menu button and the Pop-up menu is closed, it opens the Pop-up menu.
Right ArrowIf Right Arrow icon is available on the menu button and the Pop-up menu is closed, it opens the Pop-up menu.
EscDismisses the Pop-up menu, if it is open.
TabMoves focus to the next focusable control.
Shift - TabMoves focus to the previous focusable control.

 

The following table describes how keystrokes should be processed in case a SplitMenuButton has focus:

KeystrokeAction
SpacePerforms action that is available on the main button.
Enter
  1. Performs action that is available on the main button.
  2. When the Pop-up menu is open and focus is on an action, it replaces action that is available on the main button with the selected action.
Up ArrowIf Up Arrow icon is available on the pop-up menu button and the Pop-up menu is closed, it opens the Pop-up menu. If the Pop-up menu is open, it moves focus to the previous menu item in the Pop-up menu, wrapping from first to last.
Down ArrowIf Down Arrow icon is available on the pop-up menu button and the Pop-up menu is closed, it opens the Pop-up menu. If the Pop-up menu is open, it moves focus to the next menu item in the Pop-up menu, wrapping from last to first.
Left ArrowIf Left Arrow icon is available on the pop-up menu button and the Pop-up menu is closed, it opens the Pop-up menu.
Right ArrowIf Right Arrow icon is available on the pop-up menu button and the Pop-up menu is closed, it opens the Pop-up menu.
EscDismisses the Pop-up menu, if it is open.
TabMoves focus to the next focusable control.
Shift - TabMoves focus to the previous focusable control.
Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 292, "requestCorrelationId": "0d48ff3d7d81efd0"}