Package 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
-
-
Constructor Summary
Constructors Constructor Description WindowProperty(String name, boolean maximized, int x, int y, int width, int height)
WindowProperty(String name, boolean maximized, org.eclipse.swt.graphics.Rectangle rectangle)
WindowProperty(org.eclipse.swt.widgets.Shell shell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
WindowProperty
public WindowProperty(String name, boolean maximized, org.eclipse.swt.graphics.Rectangle rectangle)
-
WindowProperty
public WindowProperty(String name, boolean maximized, int x, int y, int width, int height)
-
WindowProperty
public WindowProperty(org.eclipse.swt.widgets.Shell shell)
-
-
Method Detail
-
setShell
public void setShell(org.eclipse.swt.widgets.Shell shell)
-
setShell
public void setShell(org.eclipse.swt.widgets.Shell shell, boolean onlyPosition)
-
setShell
public void setShell(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight)
-
setShell
public 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. 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 org.eclipse.swt.graphics.Rectangle getRectangle()
-
setRectangle
public void setRectangle(org.eclipse.swt.graphics.Rectangle rectangle)
-
getX
public int getX()
-
getY
public int getY()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
equal
public boolean equal(Object obj)
-
-