public class DialogWindowImpl extends WindowImpl implements DialogWindow, org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
protected class |
DialogWindowImpl.DialogWindowActionHandler |
static class |
DialogWindowImpl.GuiDialogWindow |
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkArea
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected JmixWindow |
dialogWindow |
protected Notifications |
notifications |
protected UiScreenProperties |
screenProperties |
protected Screens |
screens |
actionsHolder, actionsPermissions, allComponents, C_WINDOW_LAYOUT, caption, closeable, component, context, defaultScreenWindow, description, element, facets, focusComponentId, frameOwner, icon, icons, id, ownComponents, resolvedState
NAME
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
DialogWindowImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
center()
Sets this window to be centered on screen.
|
protected JmixWindow |
createComponent() |
com.vaadin.ui.Component |
getComposition() |
float |
getDialogHeight() |
SizeUnit |
getDialogHeightUnit() |
java.lang.String |
getDialogStylename() |
float |
getDialogWidth() |
SizeUnit |
getDialogWidthUnit() |
int |
getPositionX() |
int |
getPositionY() |
WindowMode |
getWindowMode() |
boolean |
isCloseOnClickOutside() |
boolean |
isDraggable() |
boolean |
isModal() |
boolean |
isResizable() |
protected void |
onCloseButtonClick(JmixWindow.PreCloseEvent preCloseEvent) |
protected void |
onCloseShortcutTriggered(java.lang.Object sender,
java.lang.Object target) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCaption(java.lang.String caption)
Sets the component's caption.
|
void |
setCloseable(boolean closeable)
Sets the closable status for the window.
|
void |
setCloseOnClickOutside(boolean closeOnClickOutside)
Sets if window can be closed by click outside of window content (by modality curtain).
|
void |
setDescription(java.lang.String description)
Sets the component's description.
|
void |
setDialogHeight(java.lang.String dialogHeight)
Sets dialog height.
|
void |
setDialogStylename(java.lang.String stylename)
Sets the custom CSS style.
|
void |
setDialogWidth(java.lang.String dialogWidth)
Sets dialog width.
|
void |
setDraggable(boolean draggable)
Enables or disables that a window can be dragged (moved) by the user.
|
void |
setIcon(java.lang.String icon)
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
void |
setModal(boolean modal)
Sets window modality.
|
void |
setNotifications(Notifications notifications) |
void |
setPositionX(int positionX)
Sets the distance of Window left border in pixels from left border of the containing (main window).
|
void |
setPositionY(int positionY)
Sets the distance of Window top border in pixels from top border of the containing (main window).
|
void |
setResizable(boolean resizable)
Sets window resizable.
|
void |
setScreenProperties(UiScreenProperties screenProperties) |
void |
setScreens(Screens screens) |
protected void |
setupContextMenu() |
protected void |
setupDefaultSize() |
protected void |
setupDialogShortcuts() |
void |
setWindowMode(WindowMode mode)
Sets the mode for the window.
|
add, add, addAction, addAction, addBeforeWindowCloseListener, addFacet, addStyleName, createLayout, disableEventListeners, enableEventListeners, expand, findAndFocusChildComponent, fireBeforeClose, getAction, getActions, getActionsPermissions, getAlignment, getCaption, getComponent, getComponent, getComponent, getComponents, getComponentToFocus, getContainer, getContext, getDescription, getEventHub, getExpandDirection, getExpandRatio, getFacet, getFacets, getFocusComponent, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getId, getMargin, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getRegisteredComponent, getResolvedState, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getXmlDescriptor, handleValidationErrors, indexOf, initUiEventListeners, isCloseable, isDefaultScreenWindow, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isValid, isVisible, isVisibleRecursive, publish, registerComponent, remove, removeAction, removeAction, removeAll, removeAllActions, removeFacet, removeStyleName, resetExpanded, setAlignment, setContext, setDefaultScreenWindow, setEnabled, setExpandRatio, setFocusComponent, setFrame, setFrameOwner, setHeight, setIconFromSet, setIcons, setId, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setResolvedState, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setXmlDescriptor, unregisterComponent, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, validate, validate, validateAll, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPosition
addBeforeWindowCloseListener, getContext, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAll
addFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validate
expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, add, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
getIcon, setIconFromSet
getCaption
getDescription
getExpandRatio, setExpandRatio
protected JmixWindow dialogWindow
protected org.springframework.context.ApplicationContext applicationContext
protected Notifications notifications
protected Screens screens
protected UiScreenProperties screenProperties
protected JmixWindow createComponent()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected void setupDefaultSize()
protected void setupContextMenu()
protected void setupDialogShortcuts()
protected void onCloseButtonClick(JmixWindow.PreCloseEvent preCloseEvent)
protected void onCloseShortcutTriggered(java.lang.Object sender, java.lang.Object target)
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
@Autowired public void setNotifications(Notifications notifications)
@Autowired public void setScreens(Screens screens)
@Autowired public void setScreenProperties(UiScreenProperties screenProperties)
public void setIcon(@Nullable java.lang.String icon)
Component.HasIcon
setIcon
in interface Component.HasIcon
setIcon
in class WindowImpl
public void setCaption(@Nullable java.lang.String caption)
Component.HasCaption
setCaption
in interface Component.HasCaption
setCaption
in class WindowImpl
caption
- the new component's captionpublic void setDescription(@Nullable java.lang.String description)
Component.HasDescription
setDescription
in interface Component.HasDescription
setDescription
in class WindowImpl
description
- the new description to setpublic com.vaadin.ui.Component getComposition()
getComposition
in interface Component.Wrapper
getComposition
in class WindowImpl
public void setDialogWidth(@Nullable java.lang.String dialogWidth)
DialogWindow
setDialogWidth
in interface DialogWindow
dialogWidth
- widthpublic float getDialogWidth()
getDialogWidth
in interface DialogWindow
public SizeUnit getDialogWidthUnit()
getDialogWidthUnit
in interface DialogWindow
public void setDialogHeight(@Nullable java.lang.String dialogHeight)
DialogWindow
setDialogHeight
in interface DialogWindow
dialogHeight
- heightpublic float getDialogHeight()
getDialogHeight
in interface DialogWindow
public SizeUnit getDialogHeightUnit()
getDialogHeightUnit
in interface DialogWindow
public void setDialogStylename(@Nullable java.lang.String stylename)
DialogWindow
setDialogStylename
in interface DialogWindow
stylename
- style name@Nullable public java.lang.String getDialogStylename()
getDialogStylename
in interface DialogWindow
public void setResizable(boolean resizable)
DialogWindow
setResizable
in interface DialogWindow
resizable
- resizable flagpublic boolean isResizable()
isResizable
in interface DialogWindow
public void setDraggable(boolean draggable)
DialogWindow
setDraggable
in interface DialogWindow
draggable
- draggable flagpublic boolean isDraggable()
isDraggable
in interface DialogWindow
public void setCloseable(boolean closeable)
Window
setCloseable
in interface Window
setCloseable
in class WindowImpl
closeable
- closeable flagpublic void setModal(boolean modal)
DialogWindow
setModal
in interface DialogWindow
modal
- modal flagpublic boolean isModal()
isModal
in interface DialogWindow
public void setCloseOnClickOutside(boolean closeOnClickOutside)
DialogWindow
setCloseOnClickOutside
in interface DialogWindow
closeOnClickOutside
- true if window to be closed by click outside of window content (by modality curtain)public boolean isCloseOnClickOutside()
isCloseOnClickOutside
in interface DialogWindow
public void setWindowMode(WindowMode mode)
DialogWindow
setWindowMode
in interface DialogWindow
mode
- modepublic WindowMode getWindowMode()
getWindowMode
in interface DialogWindow
public void center()
DialogWindow
center
in interface DialogWindow
public void setPositionX(int positionX)
DialogWindow
setPositionX
in interface DialogWindow
positionX
- left position in pixelspublic int getPositionX()
getPositionX
in interface DialogWindow
public void setPositionY(int positionY)
DialogWindow
setPositionY
in interface DialogWindow
positionY
- top position in pixelspublic int getPositionY()
getPositionY
in interface DialogWindow