Package com.pre.entity.base

Examples of com.pre.entity.base.Company


import com.pre.entity.base.Company;

public class CompanyRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Company c=(Company)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getName()));
    row.appendChild(new Label(c.getDivision().getCode()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here


    refreshCaller();
  }

  private void edit(ArrayList<String> ids) {
    setViewMode(EDIT_MODE);
    final Company c=manager.find(new Long(ids.get(0)));
    codeText.setDisabled(true);
    fillFromDB(c);
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
View Full Code Here

    appendChild(okButton);
  }

  private void show(ArrayList<String> ids) {
    setViewMode(SHOW_MODE);
    final Company c=manager.find(new Long(ids.get(0)));
    fillFromDB(c);
   
  }
View Full Code Here

    setViewMode(CREATE_MODE);
    setupCombos();
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Company comp=new Company();
        fillFromView(comp);
        manager.create(comp);
        refreshCaller();
        detach();           
      }
View Full Code Here

    organization.setName(organizationBox.getText());
    if(organization.getDescription()==null){
      BaseDescription description=new BaseDescription();
      organization.setDescription(description);
    }
    Company comp=companyManager.findByName(companiesCombo.getText()).get(0);
    if(organizationBox.getText().equals("")){
      try {
        Messagebox.show("Name is empty!", "Error", Messagebox.YES , null);
      } catch (InterruptedException e) {
       
View Full Code Here

TOP

Related Classes of com.pre.entity.base.Company

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.