public class FlexMenu extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexMenu(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexMenu with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
List<Color> |
getAlternatingItemColors()
Gets the colors used for menu or submenu menu items in an alternating pattern.
|
List<String> |
getColumnNames()
Gets a list containing the names of all columns in the data.
|
int |
getFirstVisibleRow()
Gets the index of the first visible child.
|
int |
getLastVisibleRow()
Gets the index of the last visible child.
|
int |
getNumColumns()
Gets the total number of columns in the data available.
|
int |
getNumRows()
Gets the total number of rows of data available.
|
List<Color> |
getRollOverColor()
Gets the color of the menu item background when a user rolls the mouse over it.
|
int |
getRowCount()
Gets the number of rows to be displayed.
|
int |
getSelectedIndex()
Gets the index in the data provider of the selected item.
|
List<Color> |
getSelectionColor()
Gets the color of the menu item background when a menu item is selected.
|
List<Color> |
getTextRollOverColor()
Gets the color of the menu item text when a user rolls the mouse over the menu item.
|
List<Color> |
getTextSelectedColor()
Gets the color of the menu item text when the menu item is selected.
|
List<List<String>> |
getValues(int start,
int end)
Returns a matrix containing the automation values of all parts of the components.
|
void |
hide()
Dispatched when a menu or submenu is dismissed.
|
void |
select(String itemRenderer)
Dispatched when a menu item is selected.
|
void |
show(String itemRenderer)
Dispatched when a menu or submenu opens.
|
void |
type(String keyCode)
Dispatched when the user presses a key.
|
void |
type(String keyCode,
ModifierKey keyModifier)
Dispatched when the user presses a key.
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected FlexMenu(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexMenudesktop
- the desktop on which this object livespublic List<List<String>> getValues(int start, int end)
The return value is an array of rows, each of which is an array of items.
start
- the index of the starting child. The default value is 0.end
- the index of the ending child. The default value is 0.public void hide()
public void select(String itemRenderer)
itemRenderer
- the ListItemRenderer of the selected menu itempublic void show(String itemRenderer)
itemRenderer
- this property is not set for this type of eventpublic void type(String keyCode)
keyCode
- the key code value of the key pressed or releasedpublic void type(String keyCode, ModifierKey keyModifier)
keyCode
- the key code value of the key pressed or releasedkeyModifier
- the key modifiers (for example, the Ctrl key) to usepublic List<Color> getAlternatingItemColors()
The value can be an Array of two or more colors. This style is only used if backgroundColor is not specified. The default value is undefined
.
public List<String> getColumnNames()
public int getFirstVisibleRow()
public int getLastVisibleRow()
public int getNumColumns()
public int getNumRows()
public List<Color> getRollOverColor()
public int getRowCount()
public int getSelectedIndex()
public List<Color> getSelectionColor()
public List<Color> getTextRollOverColor()
Copyright 2009-2012 Micro Focus. All Rights Reserved.