Package io.jmix.mapsui.component
Class PopupWindowOptions
java.lang.Object
io.jmix.mapsui.component.PopupWindowOptions
Options for a
PopupWindow
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns max width of the popup, in pixels.int
Returns min width of the popup, in pixels.boolean
boolean
Whether popup should be closed when user clicks on the map.setCloseButtonEnabled
(boolean closeButtonEnabled) Defines whether close button is enabled in a popup window.setCloseOnClick
(boolean closeOnClick) Defines whether popup should be closed when user clicks on the map.setMaxWidth
(int maxWidth) Sets max width of the popup window, in pixels.setMinWidth
(int minWidth) Sets min width of the popup, in pixels.
-
Constructor Details
-
PopupWindowOptions
public PopupWindowOptions()
-
-
Method Details
-
isCloseButtonEnabled
public boolean isCloseButtonEnabled() -
setCloseButtonEnabled
Defines whether close button is enabled in a popup window.Default value:
true
.- Parameters:
closeButtonEnabled
-- Returns:
- the instance of
PopupWindowOptions
on which this method was called. Useful for a fluent API.
-
isCloseOnClick
public boolean isCloseOnClick()Whether popup should be closed when user clicks on the map. -
setCloseOnClick
Defines whether popup should be closed when user clicks on the map.Default value:
true
.- Parameters:
closeOnClick
-- Returns:
- the instance of
PopupWindowOptions
on which this method was called. Useful for a fluent API.
-
getMaxWidth
public int getMaxWidth()Returns max width of the popup, in pixels. -
setMaxWidth
Sets max width of the popup window, in pixels.Default value: 300.
- Parameters:
maxWidth
-- Returns:
- the instance of
PopupWindowOptions
on which this method was called. Useful for a fluent API.
-
getMinWidth
public int getMinWidth()Returns min width of the popup, in pixels. -
setMinWidth
Sets min width of the popup, in pixels.Default value: 50.
- Parameters:
minWidth
-- Returns:
- the instance of
PopupWindowOptions
on which this method was called. Useful for a fluent API.
-