public class SwtComponentWrapper extends Object implements 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_UNSET| Constructor and Description |
|---|
SwtComponentWrapper(org.eclipse.swt.widgets.Control c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getBaseline(int width,
int height) |
Object |
getComponent() |
int |
getComponentType(boolean disregardScrollPane) |
int |
getContentBias() |
int |
getHeight() |
int |
getHorizontalScreenDPI() |
int |
getLayoutHashCode() |
String |
getLinkId() |
int |
getMaximumHeight(int sz) |
int |
getMaximumWidth(int sz) |
int |
getMinimumHeight(int sz) |
int |
getMinimumWidth(int sz) |
ContainerWrapper |
getParent() |
float |
getPixelUnitFactor(boolean isHor) |
int |
getPreferredHeight(int sz) |
int |
getPreferredWidth(int sz) |
int |
getScreenHeight() |
int |
getScreenLocationX() |
int |
getScreenLocationY() |
int |
getScreenWidth() |
int |
getVerticalScreenDPI() |
int[] |
getVisualPadding() |
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
hasBaseline() |
int |
hashCode() |
static boolean |
isMinimumSizeZero()
Sets if minimum size for SWT components should be preferred size (default, false) or 0.
|
static boolean |
isUseVisualPadding() |
boolean |
isVisible() |
void |
paintDebugOutline(boolean useVisaualPadding) |
void |
setBounds(int x,
int y,
int width,
int height) |
static void |
setMinimumSizeZero(boolean b)
Sets if minimum size for SWT components should be preferred size (default, false) or 0.
|
static void |
setUseVisualPadding(boolean b) |
String |
toString() |
public SwtComponentWrapper(org.eclipse.swt.widgets.Control c)
public final int getBaseline(int width,
int height)
getBaseline in interface ComponentWrapperpublic final Object getComponent()
getComponent in interface ComponentWrapperpublic final float getPixelUnitFactor(boolean isHor)
getPixelUnitFactor in interface ComponentWrapperpublic final int getX()
getX in interface ComponentWrapperpublic final int getY()
getY in interface ComponentWrapperpublic final int getWidth()
getWidth in interface ComponentWrapperpublic final int getHeight()
getHeight in interface ComponentWrapperpublic final int getScreenLocationX()
getScreenLocationX in interface ComponentWrapperpublic final int getScreenLocationY()
getScreenLocationY in interface ComponentWrapperpublic final int getMinimumHeight(int sz)
getMinimumHeight in interface ComponentWrapperpublic final int getMinimumWidth(int sz)
getMinimumWidth in interface ComponentWrapperpublic final int getPreferredHeight(int sz)
getPreferredHeight in interface ComponentWrapperpublic final int getPreferredWidth(int sz)
getPreferredWidth in interface ComponentWrapperpublic final int getMaximumHeight(int sz)
getMaximumHeight in interface ComponentWrapperpublic final int getMaximumWidth(int sz)
getMaximumWidth in interface ComponentWrapperpublic final ContainerWrapper getParent()
getParent in interface ComponentWrapperpublic int getHorizontalScreenDPI()
getHorizontalScreenDPI in interface ComponentWrapperpublic int getVerticalScreenDPI()
getVerticalScreenDPI in interface ComponentWrapperpublic final int getScreenWidth()
getScreenWidth in interface ComponentWrapperpublic final int getScreenHeight()
getScreenHeight in interface ComponentWrapperpublic final boolean hasBaseline()
hasBaseline in interface ComponentWrapperpublic final String getLinkId()
getLinkId in interface ComponentWrapperpublic final void setBounds(int x,
int y,
int width,
int height)
setBounds in interface ComponentWrapperpublic boolean isVisible()
isVisible in interface ComponentWrapperpublic final int[] getVisualPadding()
getVisualPadding in interface ComponentWrapperpublic static boolean isUseVisualPadding()
public static void setUseVisualPadding(boolean b)
public static boolean isMinimumSizeZero()
true means minimum size is 0.public static void setMinimumSizeZero(boolean b)
b - true means minimum size is 0.public int getLayoutHashCode()
getLayoutHashCode in interface ComponentWrapperpublic final void paintDebugOutline(boolean useVisaualPadding)
paintDebugOutline in interface ComponentWrapperpublic int getComponentType(boolean disregardScrollPane)
getComponentType in interface ComponentWrapperpublic int getContentBias()
getContentBias in interface ComponentWrapperCopyright © 2007–2021. All rights reserved.