org.pentaho.di.ui.core.gui
Class WindowProperty
java.lang.Object
org.pentaho.di.ui.core.gui.WindowProperty
public class WindowProperty
- extends Object
This class stores information about a screen, window, etc.
- Since:
- 08-04-2004
- Author:
- Matt
WindowProperty
public WindowProperty(String name,
boolean maximized,
Rectangle rectangle)
WindowProperty
public WindowProperty(String name,
boolean maximized,
int x,
int y,
int width,
int height)
WindowProperty
public WindowProperty(Shell shell)
setShell
public void setShell(Shell shell)
setShell
public void setShell(Shell shell,
boolean onlyPosition)
setShell
public void setShell(Shell shell,
int minWidth,
int minHeight)
setShell
public void setShell(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. If
the positioning leaves part of the dialog outside the client area, it is
centered instead Note that currently, many of the defaults in
org.pentaho.di.ui.core/default.properties have crazy values. This causes
the failsafe code in here to fire a lot more than is really necessary.
- Parameters:
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
-
getName
public String getName()
setName
public void setName(String name)
isMaximized
public boolean isMaximized()
setMaximized
public void setMaximized(boolean maximized)
getRectangle
public Rectangle getRectangle()
setRectangle
public void setRectangle(Rectangle rectangle)
getX
public int getX()
getY
public int getY()
getWidth
public int getWidth()
getHeight
public int getHeight()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equal
public boolean equal(Object obj)