001 package com.sptci.system.style;
002
003 import nextapp.echo2.app.Button;
004 import nextapp.echo2.app.Column;
005 import nextapp.echo2.app.ContentPane;
006 import nextapp.echo2.app.Label;
007 import nextapp.echo2.app.WindowPane;
008
009 /**
010 * The base class for the application wide style sheet.
011 *
012 * <p>Copyright 2007 Sans Pareil Technologies, Inc.</p>
013 * @author Rakesh Vidyadharan 2007-04-21
014 * @version $Id: StyleSheet.java 3157 2007-04-25 21:59:44Z rakesh $
015 */
016 public class StyleSheet extends com.sptci.echo2.style.StyleSheet
017 {
018 /**
019 * Default constructor.
020 *
021 * @see #init
022 */
023 public StyleSheet()
024 {
025 super();
026 }
027
028 /**
029 * Initialise the style sheet with the default styles.
030 *
031 * @see #addColumnStyles
032 */
033 @Override
034 protected void init()
035 {
036 super.init();
037 addStyle( ContentPane.class,
038 com.sptci.system.LoginView.class.getName() + ".ContentPane",
039 new com.sptci.system.style.LoginView() );
040 }
041
042 /**
043 * Over-ridden to add additional styles.
044 */
045 @Override
046 protected void addButtonStyles()
047 {
048 super.addButtonStyles();
049 addStyle( Button.class,
050 com.sptci.echo2.Logout.class.getName(), new Logout() );
051 }
052
053 /**
054 * Over-ridden to add additional styles.
055 */
056 @Override
057 protected void addColumnStyles()
058 {
059 super.addColumnStyles();
060 addStyle( Column.class,
061 com.sptci.system.LoginView.class.getName() + ".Column",
062 new LoginViewColumn() );
063 }
064
065 /**
066 * Over-ridden to add additional styles.
067 */
068 @Override
069 protected void addLabelStyles()
070 {
071 super.addLabelStyles();
072 addStyle( Label.class,
073 com.sptci.echo2.Header.LABEL_STYLE, new Header() );
074 }
075
076 /**
077 * Over-ridden to add additional styles.
078 */
079 @Override
080 protected void addWindowPaneStyles()
081 {
082 super.addWindowPaneStyles();
083 addStyle( WindowPane.class,
084 com.sptci.system.PasswordPane.class.getName(),
085 new PasswordPane() );
086 }
087 }