public class AuthWindow
extends com.vaadin.ui.Window
implements com.vaadin.ui.Button.ClickListener
com.vaadin.ui.Window.CloseEvent, com.vaadin.ui.Window.CloseListener, com.vaadin.ui.Window.CloseShortcut, com.vaadin.ui.Window.Notification, com.vaadin.ui.Window.ResizeEvent, com.vaadin.ui.Window.ResizeListener
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.terminal.URIHandler.ErrorEvent
com.vaadin.terminal.ParameterHandler.ErrorEvent
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.TextField |
hostField |
protected com.vaadin.ui.PasswordField |
passwordField |
protected com.vaadin.ui.TextField |
portField |
protected String |
testString |
protected com.vaadin.ui.TextField |
usernameField |
Constructor and Description |
---|
AuthWindow(String host,
int port)
This constructor method spawns a window to authorize the
username and password input by the user.
|
Modifier and Type | Method and Description |
---|---|
void |
attach() |
void |
buttonClick(com.vaadin.ui.Button.ClickEvent event) |
protected void |
showSSHWindow()
This methods adds (shows) the SSH Window to the main application
|
protected boolean |
validateInput()
The validateInput method attempts to set the host and port variables.
|
addComponent, addListener, addListener, addListener, addListener, addParameterHandler, addURIHandler, addWindow, bringToFront, center, changeVariables, close, detach, executeJavaScript, fireClose, fireResize, focus, getApplication, getBorder, getBrowserWindowHeight, getBrowserWindowWidth, getChildWindows, getName, getParent, getPositionX, getPositionY, getTerminal, getTheme, getURL, getWindow, handleParameters, handleURI, isClosable, isDraggable, isModal, isResizable, isResizeLazy, open, open, open, paintContent, removeCloseShortcut, removeListener, removeListener, removeListener, removeListener, removeParameterHandler, removeURIHandler, removeWindow, scrollIntoView, setApplication, setBorder, setClosable, setCloseShortcut, setDraggable, setModal, setName, setPositionX, setPositionY, setResizable, setResizeLazy, setTerminal, setTheme, showNotification, showNotification, showNotification, showNotification, showNotification, showNotification
addAction, addActionHandler, addListener, componentAttachedToContainer, componentDetachedFromContainer, getActionManager, getComponentIterator, getContent, getLayout, getScrollLeft, getScrollOffsetX, getScrollOffsetY, getScrollTop, getTabIndex, isScrollable, removeAction, removeActionHandler, removeAllActionHandlers, removeAllComponents, removeComponent, removeListener, replaceComponent, requestRepaintAll, setCaption, setContent, setLayout, setScrollable, setScrollLeft, setScrollOffsetX, setScrollOffsetY, setScrollTop, setTabIndex
addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeListener, removeListener, setEnabled, setHeight, setWidth
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getStyle, getStyleName, getWidth, getWidthUnits, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, childRequestedRepaint, getCaption, getIcon, getLocale, getStyleName, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
protected String testString
protected com.vaadin.ui.TextField hostField
protected com.vaadin.ui.TextField portField
protected com.vaadin.ui.TextField usernameField
protected com.vaadin.ui.PasswordField passwordField
public AuthWindow(String host, int port)
app
- - The current applicationh
- - The host name to connect top
- - The port number to connect toprotected boolean validateInput() throws NumberFormatException
NumberFormatException
- Port was not an integerpublic void attach()
attach
in interface com.vaadin.ui.Component
attach
in class com.vaadin.ui.Window
protected void showSSHWindow()
public void buttonClick(com.vaadin.ui.Button.ClickEvent event)
buttonClick
in interface com.vaadin.ui.Button.ClickListener
Copyright © 2015. All Rights Reserved.