Interface ContainerWrapper
- All Superinterfaces:
ComponentWrapper
-
Field Summary
Fields inherited from interface ComponentWrapper
TYPE_BUTTON, TYPE_CHECK_BOX, TYPE_COMBO_BOX, TYPE_CONTAINER, TYPE_IMAGE, TYPE_LABEL, TYPE_LIST, TYPE_PANEL, TYPE_PROGRESS_BAR, TYPE_SCROLL_BAR, TYPE_SCROLL_PANE, TYPE_SEPARATOR, TYPE_SLIDER, TYPE_SPINNER, TYPE_TABBED_PANE, TYPE_TABLE, TYPE_TEXT_AREA, TYPE_TEXT_FIELD, TYPE_TREE, TYPE_UNKNOWN, TYPE_UNSETModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of components that this parent has.Returns the components of the container that wrapper is wrapping.Returns theLayoutHandler(in Swing terms) that is handling the layout of this container.booleanReturns if this container is using left-to-right component ordering.voidpaintDebugCell(int x, int y, int width, int height) Paints a cell to indicate where it is.Methods inherited from interface ComponentWrapper
getBaseline, getComponent, getComponentType, getContentBias, getHeight, getHorizontalScreenDPI, getLayoutHashCode, getLinkId, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getParent, getPixelUnitFactor, getPreferredHeight, getPreferredWidth, getScreenHeight, getScreenLocationX, getScreenLocationY, getScreenWidth, getVerticalScreenDPI, getVisualPadding, getWidth, getX, getY, hasBaseline, isVisible, paintDebugOutline, setBoundsModifier and TypeMethodDescriptionintgetBaseline(int width, int height) Returns the baseline for the component given the suggested height.Returns the actual object that this wrapper is aggregating.intgetComponentType(boolean disregardScrollPane) Returns the type of component that this wrapper is wrapping.intReturns in what way the min/pref/max sizes relates to it's height or width for the current settings of the component (like wrapText).intReturns the current height for this component.intReturns the DPI (Dots Per Inch) of the screen the component is currently in or for the default screen if the component is not visible.intReturns a hash code that should be reasonably different for anything that might change the layout.Returns a String id that can be used to reference the component in link constraints.intgetMaximumHeight(int wHint) Returns the maximum height of the component.intgetMaximumWidth(int hHint) Returns the maximum width of the component.intgetMinimumHeight(int wHint) Returns the minimum height of the component.intgetMinimumWidth(int hHint) Returns the minimum width of the component.Returns the container for this component.floatgetPixelUnitFactor(boolean isHor) Returns the pixel unit factor for the horizontal or vertical dimension.intgetPreferredHeight(int wHint) Returns the preferred height of the component.intgetPreferredWidth(int hHint) Returns the preferred width of the component.intReturns the pixel size of the screen that the component is currently in or for the default screen if the component is not visible ornull.intReturns the screen x-coordinate for the upper left coordinate of the component layout-able bounds.intReturns the screen y-coordinate for the upper left coordinate of the component layout-able bounds.intReturns the pixel size of the screen that the component is currently in or for the default screen if the component is not visible ornull.intReturns the DPI (Dots Per Inch) of the screen the component is currently in or for the default screen if the component is not visible.int[]Returns the padding on a component by component basis.intgetWidth()Returns the current width for this component.intgetX()Returns the current x coordinate for this component.intgetY()Returns the current y coordinate for this component.booleanReturns if the component has a baseline and if it can be retrieved.booleanReturns if the component's visibility is set totrue.voidpaintDebugOutline(boolean showVisualPadding) Paints component outline to indicate where it is.voidsetBounds(int x, int y, int width, int height) Sets the component's bounds.
-
Method Details
-
getComponents
ComponentWrapper[] getComponents()Returns the components of the container that wrapper is wrapping.
Returns
The components of the container that wrapper is wrapping. Never
null. -
getComponentCount
int getComponentCount()Returns the number of components that this parent has.
Returns
The number of components that this parent has.
-
getLayout
Object getLayout()Returns the
LayoutHandler(in Swing terms) that is handling the layout of this container. If there exist no such class the method should return the same as#getComponent(), which is the container itself.Returns
The layout handler instance. Never
null. -
isLeftToRight
boolean isLeftToRight()Returns if this container is using left-to-right component ordering.
Returns
If this container is using left-to-right component ordering.
-
paintDebugCell
void paintDebugCell(int x, int y, int width, int height) Paints a cell to indicate where it is.
Parameters
-
x: The x coordinate to start the drwaing. -
y: The x coordinate to start the drwaing. -
width: The width to draw/fill -
height: The height to draw/fill
-
-