Package org.mypj.tele.client

Examples of org.mypj.tele.client.Msg


    this.addPerson = addPerson;
  }

  protected void initUI() {

    Msg msg = GWT.create(Msg.class);
    // name
    HTML title_name = new HTML(msg.name());
    // contact
    HTML title_contact = new HTML(msg.contact());

    table.setWidget(0, 0, title_name);
    table.setWidget(0, 1, txt_name);
    table.setWidget(1, 0, title_contact);
    table.setWidget(1, 1, txt_contact);
    // detail panel
    DisclosurePanel detailPanel = new DisclosurePanel(msg.detail());
    Grid detailGrid = new Grid(3, 2);
    // birthday
    HTML title_birthday = new HTML(msg.birthday());
    txt_birthday.setFormat(new DateBox.DefaultFormat(DateTimeFormat
        .getFormat("yyyy/MM/dd")));
    // sex
    HTML title_sex = new HTML(msg.sex());
    // ps
    HTML title_ps = new HTML(msg.ps());

    detailGrid.setWidget(0, 0, title_birthday);
    detailGrid.setWidget(0, 1, txt_birthday);
    detailGrid.setWidget(1, 0, title_sex);
    detailGrid.setWidget(1, 1, txt_sex);
View Full Code Here


        }
      }

      @Override
      public void onFailure(Throwable caught) {
        Msg msg = GWT.create(Msg.class);
        Window.alert(msg.serviceerror());
      }
    });
  }
View Full Code Here

    initWidget(mainPanel);
  }

  public void updateUI(BasicInfo info) {
    mainPanel.clear();
    Msg msg = GWT.create(Msg.class);

    // name
    if (!U.NVL(info.getViewName())) {
      HTML name = new HTML(msg.name()+":" + info.getViewName());
      mainPanel.add(name);
    }
    // contact
    if (!U.NVL(info.getViewContact())) {
      HTML contact = new HTML(msg.contact()+":" + info.getViewContact());
      mainPanel.add(contact);
    }
    // birthday
    if (!U.NVL(info.getViewBirthday())) {
      HTML birthday = new HTML(msg.birthday()+":" + info.getViewBirthday());
      mainPanel.add(birthday);
    }
    // sex
    if (!U.NVL(info.getViewSex())) {
      HTML sex = new HTML(msg.sex()+":" + info.getViewSex());
      mainPanel.add(sex);
    }
    // ps
    if (!U.NVL(info.getViewPs())) {
      HTML ps = new HTML(msg.ps()+":" + info.getViewPs());
      mainPanel.add(ps);
    }
    if (!U.NVL(info.getViewName())) {
      EditCompany company =new EditCompany();
      mainPanel.add(company);
View Full Code Here

  Image saveImage = new Image("tele/images/save.gif");
  HTML company = new HTML();
  private TextBox txt_company = new TextBox();

  public EditCompany() {
    Msg msg = GWT.create(Msg.class);
    company = new HTML(msg.company()+":");
   
    updateUI(null);
    addImage.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
View Full Code Here

  private FlexTable table = new FlexTable();
  public SearchPerson() {
    initUI();
  }
  protected void initUI() {
    Msg msg = GWT.create(Msg.class);
    //search text box
    MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
    oracle.add("Cat");
    oracle.add("Dog");
    oracle.add("Horse");
    oracle.add("Canary");
    box = new SuggestBox(oracle);
    //search button
    final Button searchButton = new Button(msg.search());
    searchButton.addClickHandler(new ClickHandler() {
     
      @Override
      public void onClick(ClickEvent event) {
        doAsync(box.getValue());
View Full Code Here

        initTable(result);
      }
     
      @Override
      public void onFailure(Throwable caught) {
        Msg msg = GWT.create(Msg.class);
        Window.alert(msg.serviceerror());
      }
    });
  }
View Full Code Here

      }
    });
  }
 
  private void initTable(PersonInfo persons[]) {
    Msg msg = GWT.create(Msg.class);
    table.clear();
    table.setCellSpacing(0);
    table.setCellPadding(0);
    table.setWidth("350px");
    table.setText(0, 0, msg.name());
    table.setText(0, 1, msg.contact());
    table.getRowFormatter().setStyleName(0, "gwt-Grid-header");
    if(persons == null)return;
    for (int row =1; row <= persons.length; ++row) {
      table.setText(row, 0, persons[row-1].getName());
      table.setText(row, 1, persons[row-1].getContact());
View Full Code Here

TOP

Related Classes of org.mypj.tele.client.Msg

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.