Toolbar
public class SideMenuBar extends MenuBar
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_ACTIONABLE
Deprecated.
When using a side component we might want to only have it behave as a visual tool
and still execute the command when it is clicked.
|
static String |
COMMAND_PLACEMENT_KEY
Deprecated.
This string can be used in putClientProperty within command to hint about
the placement of the command
|
static String |
COMMAND_PLACEMENT_VALUE_RIGHT
Deprecated.
This string can be used in putClientProperty within command to hint about
the placement of the command e.g.
|
static String |
COMMAND_PLACEMENT_VALUE_TOP
Deprecated.
This string can be used in putClientProperty within command to hint about
the placement of the command e.g.
|
static String |
COMMAND_SIDE_COMPONENT
Deprecated.
Allows placing a component instance into the client properties of the command so
it is shown instead of the command e.g.:
putClientProperty(SideMenuBar.COMMAND_SIDE_COMPONENT, myCustomComponentInstance);
|
BASELINE, BOTTOM, BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER, CENTER, CROSSHAIR_CURSOR, DEFAULT_CURSOR, DRAG_REGION_IMMEDIATELY_DRAG_X, DRAG_REGION_IMMEDIATELY_DRAG_XY, DRAG_REGION_IMMEDIATELY_DRAG_Y, DRAG_REGION_LIKELY_DRAG_X, DRAG_REGION_LIKELY_DRAG_XY, DRAG_REGION_LIKELY_DRAG_Y, DRAG_REGION_NOT_DRAGGABLE, DRAG_REGION_POSSIBLE_DRAG_X, DRAG_REGION_POSSIBLE_DRAG_XY, DRAG_REGION_POSSIBLE_DRAG_Y, E_RESIZE_CURSOR, HAND_CURSOR, LEFT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, RIGHT, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, TOP, W_RESIZE_CURSOR, WAIT_CURSOR
Constructor and Description |
---|
SideMenuBar()
Deprecated.
Empty Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command cmd)
Deprecated.
Adds a Command to the MenuBar
|
protected void |
addCommand(Command cmd,
int index)
Deprecated.
Add a Command to the MenuBar
|
protected void |
addComponentToSideMenu(Container menu,
Component cmp)
Deprecated.
This method responsible to add a Component to the side navigation panel.
|
static void |
closeCurrentMenu()
Deprecated.
Folds the current side menu if it is open, notice that the menu will
close asynchronously
|
static void |
closeCurrentMenu(Runnable callback)
Deprecated.
Folds the current side menu if it is open, when the menu is closed it
will invoke the runnable callback method
|
void |
closeMenu()
Deprecated.
Closes the menu if it is currently open
|
protected Container |
constructSideNavigationComponent()
Deprecated.
Creates an empty side navigation panel.
|
protected Button |
createOpenButton()
Deprecated.
Creates the Side Menu open button.
|
protected Container |
createSideNavigationComponent(Vector commands)
Deprecated.
Creates the side navigation component with the Commands
|
protected Container |
createSideNavigationComponent(Vector commands,
String placement)
Deprecated.
Creates the side navigation component with the Commands
|
protected Button |
createTouchCommandButton(Command c)
Deprecated.
Creates a touch command for use as a touch menu item
|
int |
getCommandBehavior()
Deprecated.
|
protected int |
getDragRegionStatus(int x,
int y)
Deprecated.
Indicates if the section within the X/Y area is a "drag region" where
we expect people to drag or press in which case we
can instantly start dragging making perceived performance faster.
|
Form |
getParentForm()
Deprecated.
Returns the Parent Form of this menu
|
protected void |
initMenuBar(Form parent)
Deprecated.
Initialize the MenuBar
|
protected void |
installMenuBar()
Deprecated.
Adds the MenuBar on the parent Form
|
boolean |
isMenuOpen()
Deprecated.
this code references functionality that is no longer supported and currently always returns false
|
static boolean |
isShowing()
Deprecated.
Returns true if a side menu is currently controlling the screen
|
void |
keyReleased(int keyCode)
Deprecated.
If this Component is focused, the key released event
will call this method
|
void |
openMenu(String direction)
Deprecated.
Opens the menu if it is currently closed
|
protected void |
removeAllCommands()
Deprecated.
Remove all commands from the menuBar
|
protected void |
removeCommand(Command cmd)
Deprecated.
Removes a Command from the MenuBar
|
void |
setBackCommand(Command backCommand)
Deprecated.
Indicates the command that is defined as the back command out of this form.
|
protected void |
unInstallMenuBar()
Deprecated.
Removes the MenuBar from the parent Form
|
actionPerformed, calcPreferredSize, calculateTouchCommandGridColumns, createBackCommandButton, createCommandComponent, createCommandList, createMenuCancelCommand, createMenuSelectCommand, createSelectCommand, createSoftButton, findCommandComponent, getBackCommand, getCancelMenuItem, getClearCommand, getCommand, getCommandCount, getCommands, getDefaultCommand, getMenuStyle, getSelectCommand, getSelectMenuItem, getTitleAreaContainer, getTitleComponent, handlesKeycode, isMenuShowing, isMinimizeOnBack, isReverseSoftButtons, keyPressed, refreshTheme, removeEmptySoftbuttons, setClearCommand, setCommandUIID, setDefaultCommand, setMenuCellRenderer, setMinimizeOnBack, setSelectCommand, setTransitions, setUnselectedStyle, showMenu, showMenuDialog
add, add, add, add, add, add, addAll, addComponent, addComponent, addComponent, addComponent, animateHierarchy, animateHierarchyAndWait, animateHierarchyFade, animateHierarchyFadeAndWait, animateLayout, animateLayoutAndWait, animateLayoutFade, animateLayoutFadeAndWait, animateUnlayout, animateUnlayoutAndWait, applyRTL, cancelRepaints, clearClientProperties, constrainHeightWhenScrollable, constrainWidthWhenScrollable, contains, createAnimateHierarchy, createAnimateHierarchyFade, createAnimateLayout, createAnimateLayoutFade, createAnimateLayoutFadeAndWait, createAnimateMotion, createAnimateUnlayout, createReplaceTransition, dragInitiated, drop, encloseIn, encloseIn, findDropTargetAt, findFirstFocusable, fireClicked, flushReplace, forceRevalidate, getBottomGap, getChildrenAsList, getClosestComponentTo, getComponentAt, getComponentAt, getComponentCount, getComponentIndex, getGridPosX, getGridPosY, getLayout, getLayoutHeight, getLayoutWidth, getLeadComponent, getLeadParent, getResponderAt, getSafeAreaRoot, getScrollIncrement, getSideGap, getUIManager, initLaf, invalidate, isEnabled, isSafeArea, isSafeAreaRoot, isScrollableX, isScrollableY, isSelectableInteraction, isSurface, iterator, iterator, layoutContainer, morph, morphAndWait, paint, paintBackground, paintBorderBackground, paintComponentBackground, paintGlass, paramString, pointerPressed, removeAll, removeComponent, replace, replace, replaceAndWait, replaceAndWait, replaceAndWait, revalidate, revalidateLater, revalidateWithAnimationSafety, scrollComponentToVisible, setCellRenderer, setEnabled, setLayout, setLeadComponent, setSafeArea, setSafeAreaRoot, setScrollable, setScrollableX, setScrollableY, setScrollIncrement, setShouldCalcPreferredSize, setShouldLayout, setUIManager, updateTabIndices
addDragFinishedListener, addDragOverListener, addDropListener, addFocusListener, addLongPressListener, addPointerDraggedListener, addPointerPressedListener, addPointerReleasedListener, addPullToRefresh, addScrollListener, addStateChangeListener, animate, bindProperty, blocksSideSwipe, calcScrollSize, contains, containsOrOwns, createStyleAnimation, deinitialize, deinitializeCustomStyle, dragEnter, dragExit, dragFinished, draggingOver, drawDraggedImage, focusGained, focusLost, getAbsoluteX, getAbsoluteY, getAllStyles, getAnimationManager, getBaseline, getBaselineResizeBehavior, getBindablePropertyNames, getBindablePropertyTypes, getBorder, getBoundPropertyValue, getBounds, getBounds, getClientProperty, getCloudBoundProperty, getCloudDestinationProperty, getComponentForm, getComponentState, getCursor, getDefaultDragTransparency, getDirtyRegion, getDisabledStyle, getDraggedx, getDraggedy, getDragImage, getDragSpeed, getDragTransparency, getEditingDelegate, getHeight, getInlineAllStyles, getInlineDisabledStyles, getInlinePressedStyles, getInlineSelectedStyles, getInlineStylesTheme, getInlineUnselectedStyles, getInnerHeight, getInnerPreferredH, getInnerPreferredW, getInnerWidth, getInnerX, getInnerY, getLabelForComponent, getName, getNativeOverlay, getNextFocusDown, getNextFocusLeft, getNextFocusRight, getNextFocusUp, getOuterHeight, getOuterPreferredH, getOuterPreferredW, getOuterWidth, getOuterX, getOuterY, getOwner, getParent, getPreferredH, getPreferredSize, getPreferredSizeStr, getPreferredTabIndex, getPreferredW, getPressedStyle, getPropertyNames, getPropertyTypeNames, getPropertyTypes, getPropertyValue, getSameHeight, getSameWidth, getScrollable, getScrollAnimationSpeed, getScrollDimension, getScrollOpacity, getScrollOpacityChangeSpeed, getScrollX, getScrollY, getSelectCommandText, getSelectedRect, getSelectedStyle, getStyle, getTabIndex, getTensileLength, getTextSelectionSupport, getTooltip, getUIID, getUnselectedStyle, getVisibleBounds, getVisibleBounds, getWidth, getX, getY, growShrink, handlesInput, hasFixedPreferredSize, hasFocus, hideNativeOverlay, initComponent, initCustomStyle, initDisabledStyle, initPressedStyle, initSelectedStyle, initUnselectedStyle, installDefaultPainter, isAlwaysTensile, isBlockLead, isCellRenderer, isChildOf, isDragActivated, isDragAndDropOperation, isDraggable, isDragRegion, isDropTarget, isEditable, isEditing, isFlatten, isFocusable, isGrabsPointerEvents, isHidden, isHidden, isHideInLandscape, isHideInPortrait, isIgnorePointerEvents, isInClippingRegion, isInitialized, isOpaque, isOwnedBy, isPinchBlocksDragAndDrop, isRippleEffect, isRTL, isScrollable, isScrollVisible, isSetCursorSupported, isSmoothScrolling, isSnapToGrid, isStickyDrag, isTactileTouch, isTactileTouch, isTensileDragEnabled, isTraversable, isVisible, keyRepeated, laidOut, longKeyPress, longPointerPress, onScrollX, onScrollY, paintBackgrounds, paintBorder, paintComponent, paintComponent, paintIntersectingComponentsAbove, paintLock, paintLockRelease, paintRippleOverlay, paintScrollbars, paintScrollbarX, paintScrollbarY, paintShadows, parsePreferredSize, pinch, pinch, pinchReleased, pointerDragged, pointerDragged, pointerHover, pointerHoverPressed, pointerHoverReleased, pointerPressed, pointerReleased, pointerReleased, putClientProperty, refreshTheme, refreshTheme, remove, removeDragFinishedListener, removeDragOverListener, removeDropListener, removeFocusListener, removeLongPressListener, removePointerDraggedListener, removePointerPressedListener, removePointerReleasedListener, removeScrollListener, removeStateChangeListener, repaint, repaint, requestFocus, resetFocusable, respondsToPointerEvents, scrollRectToVisible, scrollRectToVisible, setAlwaysTensile, setBlockLead, setBoundPropertyValue, setCloudBoundProperty, setCloudDestinationProperty, setComponentState, setCursor, setDefaultDragTransparency, setDirtyRegion, setDisabledStyle, setDraggable, setDragTransparency, setDropTarget, setEditingDelegate, setFlatten, setFocus, setFocusable, setGrabsPointerEvents, setHandlesInput, setHeight, setHidden, setHidden, setHideInLandscape, setHideInPortrait, setIgnorePointerEvents, setInitialized, setInlineAllStyles, setInlineDisabledStyles, setInlinePressedStyles, setInlineSelectedStyles, setInlineStylesTheme, setInlineUnselectedStyles, setIsScrollVisible, setLabelForComponent, setName, setNextFocusDown, setNextFocusLeft, setNextFocusRight, setNextFocusUp, setOpaque, setOwner, setPinchBlocksDragAndDrop, setPreferredH, setPreferredSize, setPreferredSizeStr, setPreferredTabIndex, setPreferredW, setPressedStyle, setPropertyValue, setRippleEffect, setRTL, setSameHeight, setSameSize, setSameWidth, setScrollAnimationSpeed, setScrollOpacityChangeSpeed, setScrollSize, setScrollVisible, setScrollX, setScrollY, setSelectCommandText, setSelectedStyle, setSize, setSmoothScrolling, setSnapToGrid, setTabIndex, setTactileTouch, setTensileDragEnabled, setTensileLength, setTooltip, setTraversable, setUIID, setUIID, setVisible, setWidth, setX, setY, shouldBlockSideSwipe, shouldBlockSideSwipeLeft, shouldBlockSideSwipeRight, shouldRenderComponentSelection, showNativeOverlay, startEditingAsync, stopEditing, stripMarginAndPadding, styleChanged, toImage, toString, unbindProperty, updateNativeOverlay, visibleBoundsContains
public static final String COMMAND_PLACEMENT_KEY
public static final String COMMAND_PLACEMENT_VALUE_RIGHT
public static final String COMMAND_PLACEMENT_VALUE_TOP
public static final String COMMAND_SIDE_COMPONENT
public static final String COMMAND_ACTIONABLE
protected void initMenuBar(Form parent)
initMenuBar
in class MenuBar
parent
- the associated Formpublic static boolean isShowing()
public static void closeCurrentMenu()
public static void closeCurrentMenu(Runnable callback)
callback
- will be invoked when the menu is actually closedprotected void removeAllCommands()
removeAllCommands
in class MenuBar
protected void unInstallMenuBar()
unInstallMenuBar
in class MenuBar
protected Button createOpenButton()
protected void installMenuBar()
installMenuBar
in class MenuBar
protected int getDragRegionStatus(int x, int y)
getDragRegionStatus
in class MenuBar
x
- x location for the touchy
- y location for the touchpublic void addCommand(Command cmd)
addCommand
in class MenuBar
cmd
- Command to addpublic void setBackCommand(Command backCommand)
setBackCommand
in class MenuBar
backCommand
- the command to treat as the back Commandpublic int getCommandBehavior()
getCommandBehavior
in class MenuBar
protected void addCommand(Command cmd, int index)
addCommand
in class MenuBar
cmd
- Command to Addindex
- determines the order of the added commandsprotected void removeCommand(Command cmd)
removeCommand
in class MenuBar
cmd
- Command to removepublic void keyReleased(int keyCode)
MenuBar
keyReleased
in class MenuBar
keyCode
- the key code value to indicate a physical key.public void closeMenu()
public void openMenu(String direction)
public boolean isMenuOpen()
protected Container createSideNavigationComponent(Vector commands)
commands
- the Command objectsprotected Container createSideNavigationComponent(Vector commands, String placement)
commands
- the Command objectsprotected Container constructSideNavigationComponent()
protected void addComponentToSideMenu(Container menu, Component cmp)
menu
- the Menu Container that was created in the
constructSideNavigationComponent() methodcmp
- the Component to add to the side menuprotected Button createTouchCommandButton(Command c)
createTouchCommandButton
in class MenuBar
c
- command to map into the returned buttonpublic Form getParentForm()