public class FlexDividedBox extends FlexBox
DividedBox 类是 HDividedBox 和 VDividedBox 类的基类。
| Modifier | Constructor and Description |
|---|---|
protected |
FlexDividedBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexDividedBox。
|
| Modifier and Type | Method and Description |
|---|---|
void |
dragged(int dividerIndex,
double delta)
用户拖动任何分隔线时多次发送。
|
boolean |
isResizeToContent()
获取 DividedBox 是否自动调整子级尺寸的大小。
|
void |
pressed(int dividerIndex,
double delta)
用户按此容器中的任意分隔线时发送。
|
void |
released(int dividerIndex,
double delta)
用户松开分隔线时发送。
|
getDirection, getHorizontalAlign, getVerticalAligndragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getBackgroundAlpha, getBackgroundColor, getBackgroundDisabledColor, getBackgroundImage, getBackgroundSize, getColumnNames, getCreationIndex, getCreationPolicy, getFillAlphas, getFillColors, getFirstVisibleRow, getFontFamily, getFontSize, getFontStyle, getFontWeight, getLabel, getLastVisibleRow, getNumChildren, getNumColumns, getNumRows, getValues, mouseScroll, mouseScroll, scrollchangeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, 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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected FlexDividedBox(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 FlexDividedBox 的句柄desktop - 此对象所在的桌面public void dragged(int dividerIndex,
double delta)
dividerIndex - 包含可拖动的分隔线的零基索引。最左边或最上边分隔线的 dividerIndex 为 0。delta - 包含已拖动的分隔线的像素数量。正数表示向右或向下拖动,负数表示向左或向上拖动。public void pressed(int dividerIndex,
double delta)
发送任何 dividerDrag 事件前须先发送 dividerPress 事件。
dividerIndex - 包含可拖动的分隔线的零基索引。最左边或最上边分隔线的 dividerIndex 为 0。delta - 包含已拖动的分隔线的像素数量。正数表示向右或向下拖动,负数表示向左或向上拖动。public void released(int dividerIndex,
double delta)
先发送 dividerDrag 事件,再发送 dividerRelease 事件,最后调整容器子级的大小。触发此事件后才会更新分隔线的 x 和 y 属性。因此,对 hDividerBox.getDividerAt(0).x 的调用操作将返回第一个分隔线的原始 x 位置的值。要在移动后获取分隔线的位置,您可以在触发 DividerBox 的 updateComplete 事件后访问它。
dividerIndex - 包含可拖动的分隔线的零基索引。最左边或最上边分隔线的 dividerIndex 为 0。delta - 包含已拖动的分隔线的像素数量。正数表示向右或向下拖动,负数表示向左或向上拖动。public boolean isResizeToContent()
如果为 true,则 DividedBox 自动调整子级尺寸的大小。默认值为 false。
Copyright 2009-2012 Micro Focus. All Rights Reserved.