Package org.apache.hop.ui.core.gui
Class WindowProperty
- java.lang.Object
-
- org.apache.hop.ui.core.gui.WindowProperty
-
public class WindowProperty extends Object
This class stores information about a screen, window, etc.
-
-
Constructor Summary
Constructors Constructor Description WindowProperty()WindowProperty(String name, boolean maximized, int x, int y, int width, int height)WindowProperty(String windowName, Map<String,Object> stateProperties)WindowProperty(org.eclipse.swt.widgets.Shell shell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetHeight()Gets heightStringgetName()Gets nameMap<String,Object>getStateProperties()intgetWidth()Gets widthintgetX()Gets xintgetY()Gets yinthashCode()booleanhasPosition()booleanhasSize()booleanisMaximized()Gets maximizedvoidsetHeight(int height)voidsetMaximized(boolean maximized)voidsetName(String name)voidsetShell(org.eclipse.swt.widgets.Shell shell)voidsetShell(org.eclipse.swt.widgets.Shell shell, boolean onlyPosition)voidsetShell(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.voidsetShell(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight)voidsetStateProperties(Map<String,Object> map)voidsetWidth(int width)voidsetX(int x)voidsetY(int y)
-
-
-
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)
-
hasSize
public boolean hasSize()
-
hasPosition
public boolean hasPosition()
-
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 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()
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
-
-