Class WindowProperty


  • public class WindowProperty
    extends Object
    This class stores information about a screen, window, etc.
    • Constructor Detail

      • WindowProperty

        public WindowProperty()
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • hasSize

        public boolean hasSize()
      • hasPosition

        public boolean hasPosition()
      • setStateProperties

        public void setStateProperties​(Map<String,​Object> map)
      • 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.
        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()
        Gets name
        Returns:
        value of name
      • setName

        public void setName​(String name)
        Parameters:
        name - The name to set
      • isMaximized

        public boolean isMaximized()
        Gets maximized
        Returns:
        value of maximized
      • setMaximized

        public void setMaximized​(boolean maximized)
        Parameters:
        maximized - The maximized to set
      • getX

        public int getX()
        Gets x
        Returns:
        value of x
      • setX

        public void setX​(int x)
        Parameters:
        x - The x to set
      • getY

        public int getY()
        Gets y
        Returns:
        value of y
      • setY

        public void setY​(int y)
        Parameters:
        y - The y to set
      • getWidth

        public int getWidth()
        Gets width
        Returns:
        value of width
      • setWidth

        public void setWidth​(int width)
        Parameters:
        width - The width to set
      • getHeight

        public int getHeight()
        Gets height
        Returns:
        value of height
      • setHeight

        public void setHeight​(int height)
        Parameters:
        height - The height to set