public abstract class AbstractLoginDialog extends JDialog implements ILoginDialog
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLoginDialog.AcceptListener |
class |
AbstractLoginDialog.CancelListener |
class |
AbstractLoginDialog.CertificateListener |
JDialog.AccessibleJDialogDialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Button |
acceptButton |
protected AbstractLoginDialog.AcceptListener |
acceptListener |
protected Application |
application |
protected ResourceBundle |
bundle |
protected Button |
cancelButton |
protected AbstractLoginDialog.CancelListener |
cancelListener |
protected Button |
certificateButton |
protected AbstractLoginDialog.CertificateListener |
certificateListener |
protected Label |
connectToLabel |
protected EntityReferenceLocator |
locator |
protected boolean |
loggedIn |
static String |
LOGIN_BUTTON |
static String |
LOGIN_CHECK_DATA_FIELD |
static String |
LOGIN_PASSWORD_DATA_FIELD |
static String |
LOGIN_TEXT_DATA_FIELD |
protected Hashtable |
params |
protected PasswordDataField |
password |
protected CheckDataField |
rememberLogin |
protected CheckDataField |
rememberPassword |
protected JComboBox |
serverCombo |
protected JLabel |
status |
protected Color |
statusBarForeground |
static boolean |
useDNIeCN |
protected TextDataField |
user |
static String |
userDNIeCNColumn |
accessibleContext, rootPane, rootPaneCheckingEnabledDEFAULT_MODALITY_TYPEBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCONNECT_TO, CONNECT_TO_KEY, CONNECT_TO_TOOLTIP, CONNECTING_KEY, DNS_OPTIONS, ENCRYPT, ERROR_LOGIN_KEY, LAST_LOGIN, LOGIN_ICON, LOGIN_TEXT, REMEMBER_LAST_LOGIN, REMEMBER_PASSWORD, WINDOW_TITLE, WRONG_LOGIN_KEYDEBUG_LANGUAGEDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
AbstractLoginDialog(Application mainApplication,
Hashtable parameters,
EntityReferenceLocator locator) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTextsToTranslate, setComponentLocalepublic static final String LOGIN_PASSWORD_DATA_FIELD
public static final String LOGIN_TEXT_DATA_FIELD
public static final String LOGIN_CHECK_DATA_FIELD
public static final String LOGIN_BUTTON
protected boolean loggedIn
protected EntityReferenceLocator locator
protected Application application
protected TextDataField user
protected PasswordDataField password
protected CheckDataField rememberLogin
protected CheckDataField rememberPassword
protected JComboBox serverCombo
protected Button acceptButton
protected Button cancelButton
protected JLabel status
protected Label connectToLabel
protected ResourceBundle bundle
protected AbstractLoginDialog.AcceptListener acceptListener
protected AbstractLoginDialog.CancelListener cancelListener
protected Color statusBarForeground
protected Button certificateButton
protected AbstractLoginDialog.CertificateListener certificateListener
public static boolean useDNIeCN
public static String userDNIeCNColumn
protected Hashtable params
public AbstractLoginDialog(Application mainApplication, Hashtable parameters, EntityReferenceLocator locator)
protected void registerKeyBindings()
public void setKeyBinding(String key, KeyStroke keyStroke, Action action, InputMap inMap, ActionMap actMap)
public EntityReferenceLocator getEntityReferenceLocator()
getEntityReferenceLocator in interface ILoginDialogpublic Application getApplication()
getApplication in interface ILoginDialogpublic boolean login()
login in interface ILoginDialogpublic boolean isLoggedIn()
isLoggedIn in interface ILoginDialogprotected void init(Hashtable parameters)
protected void savePreferences()
public boolean checkLogin()
throws Exception
ILoginDialogcheckLogin in interface ILoginDialogExceptionprotected void changePassword()
protected TextDataField createLogin(Hashtable parameters)
protected PasswordDataField createPassword(Hashtable parameters)
protected CheckDataField createRememberLogin(Hashtable parameters)
protected CheckDataField createRememberPassword(Hashtable parameters)
protected Label createServerLabel()
public void setResourceBundle(ResourceBundle resources)
InternationalizationsetResourceBundle in interface Internationalizationresources - the new language bundle.protected void checkDNIeInstalled()
public boolean isInstalledDNIeProvider()
public void certificateButtonPressed()
protected void fillDialogFields(Certificate cert, String token, String signedToken)
public String getUserValue()
ILoginDialoggetUserValue in interface ILoginDialogpublic String getPasswordValue()
ILoginDialoggetPasswordValue in interface ILoginDialogpublic boolean isRememberLogin()
isRememberLogin in interface ILoginDialogpublic boolean isRememberPassword()
isRememberPassword in interface ILoginDialogpublic String getConnectedServer()
getConnectedServer in interface ILoginDialogpublic boolean isServerSelection()
isServerSelection in interface ILoginDialogCopyright © 2016 Imatia Innovation S.L.. All rights reserved.