Subversion Repositories SmartDukaan

Rev

Rev 1962 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1962 Rev 2427
Line 8... Line 8...
8
import com.google.gwt.user.client.ui.Label;
8
import com.google.gwt.user.client.ui.Label;
9
import com.google.gwt.user.client.ui.PasswordTextBox;
9
import com.google.gwt.user.client.ui.PasswordTextBox;
10
import com.google.gwt.user.client.ui.TextBox;
10
import com.google.gwt.user.client.ui.TextBox;
11
import com.google.gwt.user.client.ui.VerticalPanel;
11
import com.google.gwt.user.client.ui.VerticalPanel;
12
 
12
 
-
 
13
/**
-
 
14
 * Login screen for the catalog dashboard. 
-
 
15
 * <p>In EntryPoint class CatalogDashboard.java, LoginScreen is initialised and added to the root panel.
-
 
16
 * If authentication is successful, root panel is cleared and dashboard widgets are added to the root panel.
-
 
17
 */
13
public class LoginScreen extends Composite {
18
public class LoginScreen extends Composite {
14
    private Label errLabel = new Label("");
19
    private Label errLabel = new Label("");
15
    private Label headerMessage = new Label("Please key in your credentials");
20
    private Label headerMessage = new Label("Please key in your credentials");
16
    private Label userLabel = new Label("Username");
21
    private Label userLabel = new Label("Username");
17
    private Label passwordLabel = new Label("Password");
22
    private Label passwordLabel = new Label("Password");
Line 71... Line 76...
71
    
76
    
72
    public void clearFields() {
77
    public void clearFields() {
73
        userTextBox.setText("");
78
        userTextBox.setText("");
74
        passwordTextBox.setText("");
79
        passwordTextBox.setText("");
75
    }
80
    }
76
    
-
 
77
    
-
 
78
}
81
}