public class WindowProperty extends Object
Constructor and Description |
---|
WindowProperty(org.eclipse.swt.widgets.Shell shell) |
WindowProperty(String name,
boolean maximized,
int x,
int y,
int width,
int height) |
WindowProperty(String name,
boolean maximized,
org.eclipse.swt.graphics.Rectangle rectangle) |
Modifier and Type | Method and Description |
---|---|
boolean |
equal(Object obj) |
int |
getHeight() |
String |
getName() |
org.eclipse.swt.graphics.Rectangle |
getRectangle() |
int |
getWidth() |
int |
getX() |
int |
getY() |
int |
hashCode() |
boolean |
isMaximized() |
void |
setMaximized(boolean maximized) |
void |
setName(String name) |
void |
setRectangle(org.eclipse.swt.graphics.Rectangle rectangle) |
void |
setShell(org.eclipse.swt.widgets.Shell shell) |
void |
setShell(org.eclipse.swt.widgets.Shell shell,
boolean onlyPosition) |
void |
setShell(org.eclipse.swt.widgets.Shell shell,
boolean onlyPosition,
int minWidth,
int minHeight)
Performs calculations to size and position a dialog If the size passed in is too large for the primary monitor
client area, it is shrunk to fit.
|
void |
setShell(org.eclipse.swt.widgets.Shell shell,
int minWidth,
int minHeight) |
public WindowProperty(String name, boolean maximized, org.eclipse.swt.graphics.Rectangle rectangle)
public WindowProperty(String name, boolean maximized, int x, int y, int width, int height)
public WindowProperty(org.eclipse.swt.widgets.Shell shell)
public void setShell(org.eclipse.swt.widgets.Shell shell)
public void setShell(org.eclipse.swt.widgets.Shell shell, boolean onlyPosition)
public void setShell(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight)
public void setShell(org.eclipse.swt.widgets.Shell shell, boolean onlyPosition, int minWidth, int minHeight)
shell
- The dialog to position and sizeonlyPosition
- Unused argument. If the window is outside the viewable client are, it must be resized to prevent
inaccessibility.minWidth
- minHeight
- public String getName()
public void setName(String name)
public boolean isMaximized()
public void setMaximized(boolean maximized)
public org.eclipse.swt.graphics.Rectangle getRectangle()
public void setRectangle(org.eclipse.swt.graphics.Rectangle rectangle)
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public boolean equal(Object obj)
Copyright © 2019 Hitachi Vantara. All rights reserved.