title: SmartGWT ListGrid final
body: <p>I realized that ListGrid must be always Final. For me a static object would be the best because I would like to modify its properties from another class.</p>
  
  <p>In my project to have a clear code I created several classes. </p>
  
  <ol>
  <li><p>class <code>DataGrid extends ListGrid</code> which set up the properties of the new object and also fills up with data. An @Override method adds button to my grid object.</p></li>
  <li><p>class <code>PopupWindow extend Window</code> which is used to create a Window object when you click on the edit button in the ListGrid. In the Window there are some textboxes where you can add new data and a Submit button. OnClick event of the Submit button will write the data to a MySQL server, and <strong>should update the grid with the actual data</strong> (query from the MySQL). This is the part I can not implement.</p></li>
  <li><p>In the Entry Point class onModuleLoad I just have this grid code:</p>
  
  <p>final DataGrid grid_far = new DataGrid();
  grid_far.setGridData();</p></li>
  </ol>
  
  <p>I am new in java, maybe I should not use so many classes, just put everything in the Entry Point class onModuleLoad()?</p>
  
  <p>If in the PopupWindow extends Window class I declare Button OnClick to run onModuleLoad() methode from Entry Point class, will this duplicate my web page?
  I mean doing this:</p>
  
  <pre><code> EntryPointClass ep = new EntryPointClass();
   ep.onModuleLoad();
  </code></pre>