Package com.vaadin.ui
Class GridLayout.OverlapsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.vaadin.ui.GridLayout.OverlapsException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GridLayout
public class GridLayout.OverlapsException extends RuntimeException
Gridlayout does not support laying components on top of each other. AnOverlapsException
is thrown when a component already exists (even partly) at the same space on a grid with the new component.- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverlapsException(GridLayout.Area existingArea)
Constructs anOverlapsException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridLayout.Area
getArea()
Gets the area .String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OverlapsException
public OverlapsException(GridLayout.Area existingArea)
Constructs anOverlapsException
.- Parameters:
existingArea
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getArea
public GridLayout.Area getArea()
Gets the area .- Returns:
- the existing area.
-
-