public class FlexDividedBox extends FlexBox
The DividedBox
class is the base class for the HDividedBox
and VDividedBox
classes.
Modifier | Constructor and Description |
---|---|
protected |
FlexDividedBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexDividedBox with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
dragged(int dividerIndex,
double delta)
Dispatched multiple times as the user drags any divider.
|
boolean |
isResizeToContent()
Gets whether the DividedBox automatically resizes to the size of its children.
|
void |
pressed(int dividerIndex,
double delta)
Dispatched when the user presses any divider in this container.
|
void |
released(int dividerIndex,
double delta)
Dispatched when the user releases a divider.
|
getDirection, getHorizontalAlign, getVerticalAlign
dragCancel, 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, scroll
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 FlexDividedBox(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexDividedBoxdesktop
- the desktop on which this object livespublic void dragged(int dividerIndex, double delta)
dividerIndex
- contains the zero-based index of the divider being dragged. The leftmost or topmost divider has a dividerIndex of 0.delta
- contains the number of pixels that the divider has been dragged. Positive numbers represent a drag toward the right or bottom, negative numbers toward the left or top.public void pressed(int dividerIndex, double delta)
The dividerPress event is dispatched before any dividerDrag events are dispatched.
dividerIndex
- contains the zero-based index of the divider being dragged. The leftmost or topmost divider has a dividerIndex of 0.delta
- contains the number of pixels that the divider has been dragged. Positive numbers represent a drag toward the right or bottom, negative numbers toward the left or top.public void released(int dividerIndex, double delta)
The dividerRelease event is dispatched after the dividerDrag events, but before the container's children are resized. The divider's x and y properties are not updated until after this event is triggered. As a result, a call to hDividerBox.getDividerAt(0).x will return the value of the original x position of the first divider. If you want the position of the divider after the move, you can access it when the DividerBox's updateComplete event has been triggered.
dividerIndex
- contains the zero-based index of the divider being dragged. The leftmost or topmost divider has a dividerIndex of 0.delta
- contains the number of pixels that the divider has been dragged. Positive numbers represent a drag toward the right or bottom, negative numbers toward the left or top.public boolean isResizeToContent()
If true, the DividedBox automatically resizes to the size of its children. The default value is false.
Copyright 2009-2012 Micro Focus. All Rights Reserved.