SPT Core API

com.sptci.epng
Class LoginView

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.ContentPane
          extended by com.sptci.epng.ContentPane
              extended by com.sptci.epng.LoginView
All Implemented Interfaces:
View, Serializable, Pane, PaneContainer, RenderIdSupport

public abstract class LoginView
extends ContentPane

A standard login view that uses a ContentPane instead of a ContentPane. This makes it possible to invoke ContentPane.setMenuBar(echopointng.MenuBar), and ContentPane.setContent(nextapp.echo2.app.Component) or ContentPane.add(nextapp.echo2.app.Component) methods to replace the login screen with the appropriate application screen.

© Copyright 2008 Sans Pareil Technologies, Inc.

Version:
$Id: LoginView.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 12-Apr-2008
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sptci.epng.ContentPane
content, menuBar
 
Fields inherited from class nextapp.echo2.app.ContentPane
PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_VERTICAL_SCROLL
 
Fields inherited from class nextapp.echo2.app.Component
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
protected LoginView()
          Default constructor.
 
Method Summary
protected abstract  LoginListener getLoginListener()
          Return the listener used to implement authentication.
 void init()
          Life-cycle method invoked when this component is added to the component hierarchy.
 
Methods inherited from class com.sptci.epng.ContentPane
add, add, createTop, getContent, getMenuBar, removeAll, setContent, setMenuBar
 
Methods inherited from class nextapp.echo2.app.ContentPane
getBackgroundImage, getHorizontalScroll, getInsets, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setVerticalScroll
 
Methods inherited from class nextapp.echo2.app.Component
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, remove, remove, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginView

protected LoginView()
Default constructor. Sets the style for this content pane.

Method Detail

init

public void init()
Life-cycle method invoked when this component is added to the component hierarchy. Adds a Header and LoginPane as children of this view.

Overrides:
init in class ContentPane

getLoginListener

protected abstract LoginListener getLoginListener()
Return the listener used to implement authentication. Sub-classes must ensure that a proper implementation is returned for proper behaviour.

Returns:
The listener instance to use.

SPT Core API