org.pentaho.di.ui.core.gui
Class WindowProperty

java.lang.Object
  extended by 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
WindowProperty(Shell shell)
           
WindowProperty(String name, boolean maximized, int x, int y, int width, int height)
           
WindowProperty(String name, boolean maximized, Rectangle rectangle)
           
 
Method Summary
 boolean equal(Object obj)
           
 int getHeight()
           
 String getName()
           
 Rectangle getRectangle()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 boolean isMaximized()
           
 void setMaximized(boolean maximized)
           
 void setName(String name)
           
 void setRectangle(Rectangle rectangle)
           
 void setShell(Shell shell)
           
 void setShell(Shell shell, boolean onlyPosition)
           
 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.
 void setShell(Shell shell, int minWidth, int minHeight)
           
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 size
onlyPosition - 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)