public class StringInputDialogWindow
extends com.vaadin.ui.Window
implements com.vaadin.ui.Window.CloseListener, com.vaadin.ui.Button.ClickListener
Modifier and Type | Class and Description |
---|---|
static interface |
StringInputDialogWindow.Action
The callback interface
|
com.vaadin.ui.Window.CloseEvent, com.vaadin.ui.Window.CloseListener, com.vaadin.ui.Window.CloseShortcut, com.vaadin.ui.Window.ResizeEvent, com.vaadin.ui.Window.ResizeListener, com.vaadin.ui.Window.WindowModeChangeEvent, com.vaadin.ui.Window.WindowModeChangeListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
Constructor and Description |
---|
StringInputDialogWindow()
Default constructor
|
StringInputDialogWindow(String caption,
String fieldName)
Constructor responsible for creating new instances of this class
|
Modifier and Type | Method and Description |
---|---|
void |
buttonClick(com.vaadin.ui.Button.ClickEvent event) |
String |
getValue()
Returns the value of the input field.
|
void |
open() |
void |
windowClose(com.vaadin.ui.Window.CloseEvent e) |
StringInputDialogWindow |
withCancelAction(StringInputDialogWindow.Action cancelAction)
Sets the action to be performed when the dialog is cancelled.
|
StringInputDialogWindow |
withCancelLabel(String cancelLabel)
Sets the label of the cancel button.
|
StringInputDialogWindow |
withCaption(String caption)
Sets the caption of the window.
|
StringInputDialogWindow |
withFieldName(String fieldName)
Sets the label of the input field.
|
StringInputDialogWindow |
withOkAction(StringInputDialogWindow.Action okAction)
Sets the action to be performed when the dialog is confirmed.
|
StringInputDialogWindow |
withOkLabel(String okLabel)
Sets the label of the ok button.
|
StringInputDialogWindow |
withValidator(com.vaadin.data.Validator validator)
Sets the validator to be used.
|
addBlurListener, addCloseListener, addFocusListener, addListener, addListener, addListener, addListener, addResizeListener, addWindowModeChangeListener, bringToFront, center, changeVariables, close, fireClose, fireResize, fireWindowWindowModeChange, focus, getAssistiveDescription, getAssistivePostfix, getAssistivePrefix, getAssistiveRole, getPositionX, getPositionY, getState, getState, getTabStopBottomAssistiveText, getTabStopTopAssistiveText, getWindowMode, isClosable, isDraggable, isModal, isResizable, isResizeLazy, isTabStopEnabled, paintContent, removeBlurListener, removeCloseListener, removeCloseShortcut, removeFocusListener, removeListener, removeListener, removeListener, removeListener, removeResizeListener, removeWindowModeChangeListener, setAssistiveDescription, setAssistivePostfix, setAssistivePrefix, setAssistiveRole, setClosable, setCloseShortcut, setDraggable, setModal, setParent, setPositionX, setPositionY, setResizable, setResizeLazy, setTabStopBottomAssistiveText, setTabStopEnabled, setTabStopTopAssistiveText, setWindowMode
addAction, addActionHandler, addClickListener, addListener, getActionManager, getScrollLeft, getScrollTop, getTabIndex, removeAction, removeActionHandler, removeAllActionHandlers, removeClickListener, removeListener, setCaption, setScrollLeft, setScrollTop, setTabIndex
addComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidth
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setIcon, setId, setImmediate, setLocale, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
forEach, spliterator
public StringInputDialogWindow withValidator(com.vaadin.data.Validator validator)
validator
- the validatorpublic String getValue()
public StringInputDialogWindow withCaption(String caption)
caption
- the caption to be usedpublic StringInputDialogWindow withFieldName(String fieldName)
fieldName
- the field name to be usedpublic StringInputDialogWindow withOkAction(StringInputDialogWindow.Action okAction)
okAction
- the action to be executedpublic StringInputDialogWindow withCancelAction(StringInputDialogWindow.Action cancelAction)
cancelAction
- the action to be executedpublic void open()
public StringInputDialogWindow withOkLabel(String okLabel)
okLabel
- the label to be usedpublic StringInputDialogWindow withCancelLabel(String cancelLabel)
cancelLabel
- the label to be usedpublic void windowClose(com.vaadin.ui.Window.CloseEvent e)
windowClose
in interface com.vaadin.ui.Window.CloseListener
public void buttonClick(com.vaadin.ui.Button.ClickEvent event)
buttonClick
in interface com.vaadin.ui.Button.ClickListener
Copyright © 2017. All rights reserved.