public final class SwingContainerWrapper extends SwingComponentWrapper implements ContainerWrapper
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_UNSET| 构造器和说明 |
|---|
SwingContainerWrapper(Container c) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getComponentCount()
Returns the number of components that this parent has.
|
ComponentWrapper[] |
getComponents()
Returns the components of the container that wrapper is wrapping.
|
int |
getComponentType(boolean disregardScrollPane)
Returns the type of component that this wrapper is wrapping.
|
Object |
getLayout()
Returns the
LayoutHandler (in Swing terms) that is handling the layout of this container. |
int |
getLayoutHashCode()
Returns a hash code that should be reasonably different for anything that might change the layout.
|
boolean |
isLeftToRight()
Returns if this container is using left-to-right component ordering.
|
void |
paintDebugCell(int x,
int y,
int width,
int height)
Paints a cell to indicate where it is.
|
equals, getBaseline, getComponent, getContentBias, getHeight, getHorizontalScreenDPI, getLinkId, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getParent, getPixelUnitFactor, getPreferredHeight, getPreferredWidth, getScreenHeight, getScreenLocationX, getScreenLocationY, getScreenWidth, getVerticalScreenDPI, getVisualPadding, getWidth, getX, getY, hasBaseline, hashCode, isMaxSizeSetOn1_4, isVisible, isVisualPaddingEnabled, paintDebugOutline, setBounds, setMaxSizeSetOn1_4, setVisualPaddingEnabledgetBaseline, getComponent, getContentBias, getHeight, getHorizontalScreenDPI, getLinkId, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getParent, getPixelUnitFactor, getPreferredHeight, getPreferredWidth, getScreenHeight, getScreenLocationX, getScreenLocationY, getScreenWidth, getVerticalScreenDPI, getVisualPadding, getWidth, getX, getY, hasBaseline, isVisible, paintDebugOutline, setBoundspublic SwingContainerWrapper(Container c)
public ComponentWrapper[] getComponents()
ContainerWrappergetComponents 在接口中 ContainerWrappernull.public int getComponentCount()
ContainerWrappergetComponentCount 在接口中 ContainerWrapperpublic Object getLayout()
ContainerWrapperLayoutHandler (in Swing terms) that is handling the layout of this container.
If there exist no such class the method should return the same as ComponentWrapper.getComponent(), which is the
container itself.getLayout 在接口中 ContainerWrappernull.public final boolean isLeftToRight()
ContainerWrapperisLeftToRight 在接口中 ContainerWrapperpublic final void paintDebugCell(int x,
int y,
int width,
int height)
ContainerWrapperpaintDebugCell 在接口中 ContainerWrapperx - The x coordinate to start the drawing.y - The x coordinate to start the drawing.width - The width to draw/fillheight - The height to draw/fillpublic int getComponentType(boolean disregardScrollPane)
ComponentWrapperThis method can be invoked often so the result should be cached.
getComponentType 在接口中 ComponentWrappergetComponentType 在类中 SwingComponentWrapperdisregardScrollPane - Is true any wrapping scroll pane should be disregarded and the type
of the scrolled component should be returned.ComponentWrapper.TYPE_LABEL.public int getLayoutHashCode()
ComponentWrappergetLayoutHashCode 在接口中 ComponentWrappergetLayoutHashCode 在类中 SwingComponentWrapperCopyright © 2021. All rights reserved.