Changeset 3793
- Timestamp:
- Aug 25, 2010, 9:49:16 AM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios/gui/form
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/gui/form/Fieldset.java
r3608 r3793 87 87 88 88 89 /**90 * @deprecated Use getLegendTitle().getTitle()91 */92 public String getLegend()93 {94 return legend;95 }96 97 98 /**99 * @deprecated Use getLegendTitle().setTitle(String title)100 */101 public void setLegend(String legend)102 {103 this.legend = legend;104 // Code making the string set with setLegend(...) appear105 // in fieldset legend after the method has been deprecated.106 getLegendTitle().setTitle(legend);107 }108 109 110 89 public List<GUIElement> getFields() 111 90 { -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3791 r3793 721 721 722 722 723 723 724 public Form getMyProfilePropertiesForm(User user) 724 725 { … … 773 774 } 774 775 775 776 // Cleaning up from here 776 777 public Form getMyProfilePasswordForm(User user) 777 778 { -
trunk/client/servlet/src/org/proteios/gui/form/LoginForm.java
r3408 r3793 33 33 This form contains a username and password field. 34 34 35 @author Gregory Vincic35 @author gregory 36 36 */ 37 37 public final class LoginForm … … 39 39 { 40 40 41 public Fieldset fs; 42 public TextField<String> usernameF; 43 public PasswordField passwordF; 44 public Title title; 41 public final Fieldset fs; 42 public final TextField<String> usernameF; 43 public final PasswordField passwordF; 45 44 46 45 public LoginForm() 47 46 { 48 this.fs = new Fieldset(); 49 this.usernameF = new UsernameField(); 50 this.passwordF = new PasswordField(PasswordField.VPWD1); 51 this.title = new Title("Login"); 52 this.setId("loginForm"); 53 this.fs.setLegendTitle(title); 54 this.fs.add(this.usernameF); 55 this.passwordF.setLabel("Password"); 56 this.fs.add(this.passwordF); 57 this.addFieldset(this.fs); 47 Title title; 48 49 fs = new Fieldset(); 50 usernameF = new UsernameField(); 51 passwordF = new PasswordField(PasswordField.VPWD1); 52 passwordF.setLabel("Password"); 53 title = new Title("Login"); 54 55 setId("loginForm"); 56 fs.setLegendTitle(title); 57 fs.add(usernameF); 58 fs.add(passwordF); 59 addFieldset(fs); 58 60 } 59 61 }
Note: See TracChangeset
for help on using the changeset viewer.