Class WindowProperty


  • public class WindowProperty
    extends Object
    This class stores information about a screen, window, etc.
    Since:
    08-04-2004
    Author:
    Matt
    • 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 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 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()
        Overrides:
        hashCode in class Object
      • equal

        public boolean equal​(Object obj)