public class KeyValueInputDialogWindow
extends com.vaadin.ui.Window
implements com.vaadin.ui.Window.CloseListener, com.vaadin.ui.Button.ClickListener
Modifier and Type | Class and Description |
---|---|
static interface |
KeyValueInputDialogWindow.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 |
---|
KeyValueInputDialogWindow()
Default constructor
|
KeyValueInputDialogWindow(String caption,
String keyName,
String valueName)
Constructor responsible for creating new instances of this class
|
Modifier and Type | Method and Description |
---|---|
void |
buttonClick(com.vaadin.ui.Button.ClickEvent event) |
KeyValueInputDialogWindow |
disableKey()
Disables the field.
|
KeyValueInputDialogWindow |
disableValue()
Disables the field.
|
KeyValueInputDialogWindow |
enableKey()
Enables the field.
|
KeyValueInputDialogWindow |
enableValue()
Enables the field.
|
KeyValueInputDialogWindow |
focusKey()
Sets the focus to the key field.
|
KeyValueInputDialogWindow |
focusValue()
Sets the focus to the value field.
|
String |
getKey()
Returns the value of the key input field.
|
String |
getValue()
Returns the value of the value input field.
|
void |
open() |
void |
windowClose(com.vaadin.ui.Window.CloseEvent e) |
KeyValueInputDialogWindow |
withCancelAction(KeyValueInputDialogWindow.Action cancelAction)
Sets the action to be performed when the dialog is cancelled.
|
KeyValueInputDialogWindow |
withCancelLabel(String cancelLabel)
Sets the label of the cancel button.
|
KeyValueInputDialogWindow |
withCaption(String caption)
Sets the caption of the window.
|
KeyValueInputDialogWindow |
withKey(String key)
Add key.
|
KeyValueInputDialogWindow |
withKeyFieldName(String fieldName)
Sets the label of the key input field.
|
KeyValueInputDialogWindow |
withKeyValidator(com.vaadin.data.Validator validator)
Sets the key validator to be used.
|
KeyValueInputDialogWindow |
withOkAction(KeyValueInputDialogWindow.Action okAction)
Sets the action to be performed when the dialog is confirmed.
|
KeyValueInputDialogWindow |
withOkLabel(String okLabel)
Sets the label of the ok button.
|
KeyValueInputDialogWindow |
withValue(String value)
Add value.
|
KeyValueInputDialogWindow |
withValueFieldName(String fieldName)
Sets the label of the value input field.
|
KeyValueInputDialogWindow |
withValueValidator(com.vaadin.data.Validator validator)
Sets the value 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 KeyValueInputDialogWindow()
public KeyValueInputDialogWindow(String caption, String keyName, String valueName)
caption
- the window's titlekeyName
- the title of the key input fieldvalueName
- the title of the value input fieldpublic KeyValueInputDialogWindow withKeyValidator(com.vaadin.data.Validator validator)
validator
- the validatorpublic KeyValueInputDialogWindow withValueValidator(com.vaadin.data.Validator validator)
validator
- the validatorpublic String getValue()
public String getKey()
public KeyValueInputDialogWindow withValue(String value)
value
- the value to be usedpublic KeyValueInputDialogWindow withKey(String key)
key
- the key to be usedpublic KeyValueInputDialogWindow withCaption(String caption)
caption
- the caption to be usedpublic KeyValueInputDialogWindow withKeyFieldName(String fieldName)
fieldName
- the field name to be usedpublic KeyValueInputDialogWindow withValueFieldName(String fieldName)
fieldName
- the field name to be usedpublic KeyValueInputDialogWindow withOkAction(KeyValueInputDialogWindow.Action okAction)
okAction
- the action to be executedpublic KeyValueInputDialogWindow withCancelAction(KeyValueInputDialogWindow.Action cancelAction)
cancelAction
- the action to be executedpublic void open()
public KeyValueInputDialogWindow withOkLabel(String okLabel)
okLabel
- the label to be usedpublic KeyValueInputDialogWindow 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
public KeyValueInputDialogWindow focusKey()
public KeyValueInputDialogWindow focusValue()
public KeyValueInputDialogWindow enableKey()
public KeyValueInputDialogWindow disableKey()
public KeyValueInputDialogWindow enableValue()
public KeyValueInputDialogWindow disableValue()
Copyright © 2017. All rights reserved.