Package org.pentaho.di.ui.core.gui
Class WindowProperty
java.lang.Object
org.pentaho.di.ui.core.gui.WindowProperty
This class stores information about a screen, window, etc.
- Since:
- 08-04-2004
- Author:
- Matt
-
Constructor Summary
ConstructorDescriptionWindowProperty
(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
Modifier and TypeMethodDescriptionboolean
int
getName()
org.eclipse.swt.graphics.Rectangle
int
getWidth()
int
getX()
int
getY()
int
hashCode()
boolean
void
setMaximized
(boolean maximized) void
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 Details
-
WindowProperty
-
WindowProperty
-
WindowProperty
public WindowProperty(org.eclipse.swt.widgets.Shell shell)
-
-
Method Details
-
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
-
setName
-
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() -
hashCode
public int hashCode() -
equal
-