public class FlexMenuBar extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexMenuBar(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexMenuBar with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor()
Gets the background color of the component.
|
Color |
getColor()
Gets the color of text in the component, including the component label.
|
List<String> |
getColumnNames()
Gets a list containing the names of all columns in the data.
|
Color |
getDisabledColor()
Gets the color of text in the component if it is disabled.
|
List<Color> |
getFillColors()
Gets the colors used to tint the background of the control.
|
int |
getFirstVisibleRow()
Gets the index of the first visible child.
|
String |
getFontFamily()
Gets the name of the font to use.
|
double |
getFontSize()
Gets the height of the text, in pixels.
|
String |
getFontStyle()
Gets whether the text is italic font.
|
String |
getFontWeight()
Gets whether the text is boldface.
|
int |
getLastVisibleRow()
Gets the index of the last visible child.
|
int |
getNumChildren()
Gets the number of children of this object.
|
int |
getNumColumns()
Gets the total number of columns in the data available.
|
int |
getNumRows()
Gets the total number of rows of data available.
|
Color |
getRollOverColor()
Gets the color of the menu item background when a user rolls the mouse over it.
|
double |
getSelectedIndex()
Gets the index in the MenuBar control of the currently open Menu or the last opened Menu if none are currently open.
|
Color |
getSelectionColor()
Gets the color of the menu item background when a menu item is selected.
|
String |
getTextAlign()
Gets the alignment of text within a container.
|
String |
getTextDecoration()
Gets whether the text is underlined.
|
int |
getTextIndent()
Gets the offset of the first line of text from the left side of the container, in pixels.
|
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 |
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 FlexMenuBar(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexMenuBardesktop
- 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 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 Color getBackgroundColor()
The default value is undefined, which means it is not set and the component has a transparent background.
The default skins of most Flex controls are partially transparent. As a result, the background color of a container partially shows through to controls that are in that container. You can avoid this by setting the alpha values of the control's fillAlphas property to 1.
public Color getColor()
public List<String> getColumnNames()
public Color getDisabledColor()
public List<Color> getFillColors()
Pass the same color for both values for a flat-looking control. The default value is [ 0xFFFFFF, 0xCCCCCC ].
public int getFirstVisibleRow()
public String getFontFamily()
Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is Verdana
.
public double getFontSize()
The default value is 10 for all controls except the ColorPicker control. For the ColorPicker control, the default value is 11.
public String getFontStyle()
Recognized values are normal
and italic
. The default value is normal
.
public String getFontWeight()
Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
public int getLastVisibleRow()
public int getNumChildren()
public int getNumColumns()
public int getNumRows()
public Color getRollOverColor()
public double getSelectedIndex()
public Color getSelectionColor()
public String getTextAlign()
Possible values are:left, right, or center.
The default value for most components is left. For the FormItem component, the default value is right. For the Button, LinkButton, and AccordionHeader components, the default value is center, and this property is only recognized when the labelPlacement property is set to left or right. If labelPlacement is set to top or bottom, the text and any icon are centered.
public String getTextDecoration()
Possible values are none
and underline
. The default value is none
.
public int getTextIndent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.