Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT RootPanel not interacting
    primarykey
    data
    text
    <p>I have created Login Class:</p> <pre><code>public class LoginPage extends VerticalPanel implements ClickHandler { ApplicationMethods appMthd; private RootPanel rootPanel; TextBox txtUserEmail; PasswordTextBox txtPassword; Button btnLogin; String strEmail, strPass; public LoginPage(ApplicationMethods appMthd) { this.appMthd = appMthd; rootPanel = RootPanel.get(); rootPanel.setSize("320", "480"); btnLogin = new Button("Login"); btnLogin.setText("Login"); rootPanel.add(btnLogin, 224, 256); btnLogin.setSize("79px", "35px"); btnLogin.addClickHandler(this); txtUserEmail = new TextBox(); rootPanel.add(txtUserEmail, 36, 161); txtUserEmail.setSize("240px", "20px"); txtPassword = new PasswordTextBox(); rootPanel.add(txtPassword, 36, 207); txtPassword.setSize("240px", "20px"); } @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub if(event.getSource() == btnLogin) { strEmail = txtUserEmail.getText().toString(); strPass = txtPassword.getText().toString(); appMthd.onLogin(strEmail, strPass); } else { Window.alert("Coming Soon..!!"); } } </code></pre> <p>}</p> <p>But I can't access any textbox or click on button. Because Parent class is RootPanel.</p> <p>If I am using :</p> <pre><code>add(txtUserEmail); add(txtPassword); add(btnReg); add(btnLogin); btnLogin.addClickHandler(this); </code></pre> <p>Then, it is accessible. In this, parent class is VerticalPanel.</p> <p>So, how can I resolve this problem for RootPanel.?</p> <p>Please help me for this.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload