Package com.sencha.gxt.widget.core.client.form

Examples of com.sencha.gxt.widget.core.client.form.FormPanel


    setHeight(150);
    setWidth(350);
   
    setHeadingText(groupModel.getName()+" 下新建任务");
   
    formPanel=new FormPanel();
    VerticalLayoutContainer p=new VerticalLayoutContainer();
    formPanel.add(p);
   
    name=new TextField();
    name.setAllowBlank(false);
View Full Code Here


    setModal(true);
    this.zkBtn = zk;
    setHeadingText("ZooKeeper通知 配置");
    setSize("400", "200");
   
    formPanel=new FormPanel();
   
    VerticalLayoutContainer p = new VerticalLayoutContainer();
    formPanel.add(p);
   
    zkType=new ToggleGroup();
View Full Code Here

   
    FramedPanel fp=new FramedPanel();
    fp.setHeaderVisible(false);
    fp.setButtonAlign(BoxLayoutPack.CENTER);
   
    final FormPanel panel = new FormPanel();
    panel.setAction("upload.do?type="+type+"&id="+id);
    panel.setEncoding(Encoding.MULTIPART);
    panel.setMethod(Method.POST);

    fp.add(panel);

   
   
    file = new FileUploadField();
    file.setAllowBlank(false);
    file.setName("uploadedfile");
    panel.add(new FieldLabel(file,"选择文件"));

    TextButton btn = new TextButton("重置",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        panel.reset();
      }
    });
    fp.addButton(btn);

    btn = new TextButton("上传",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        if (panel.isValid()) {
          panel.submit();
          return;
        }
      }
    });
    fp.addButton(btn);

    panel.addSubmitCompleteHandler(new SubmitCompleteHandler() {
      public void onSubmitComplete(SubmitCompleteEvent event) {
        String html=event.getResults().trim();
        if(html.contains("[[uri=")){
          if(callback!=null){
            String value=html.substring(html.indexOf("[[")+6, html.indexOf("]]"));
View Full Code Here

    setHeadingText("新建组");
    setWidth(350);
    setHeight(150);
    setModal(true);

    panel = new FormPanel();
    VerticalLayoutContainer p = new VerticalLayoutContainer();
    panel.add(p,new MarginData(5));
    name = new TextField();
    name.setToolTipConfig(new ToolTipConfig("组名称", "必填,可修改"){{setDismissDelay(0);}});
View Full Code Here

 
  private GroupPresenter presenter;
 
  public CardAddGroup(GroupPresenter presenter) {
    this.presenter=presenter;
    panel = new FormPanel();
    VerticalLayoutContainer p = new VerticalLayoutContainer();
    panel.add(p,new MarginData(5));
    name = new TextField();
    name.setToolTipConfig(new ToolTipConfig("组名称", "必填,可修改"){{setDismissDelay(0);}});
View Full Code Here

   * @param url
   *           the url to be called (must be absolute starting with http://)
   */
  public void callUrl(final String url)
  {
    final FormPanel hyperlinkFormPanel = gui.getHyperlinkCallerFormPanel();
    hyperlinkFormPanel.setAction(url);
    log.debug("CALL URL : " + url);
    hyperlinkFormPanel.submit();
  }
View Full Code Here

    final BorderLayoutData northBorderLayoutData = new BorderLayoutData(63);
    mainBorderLayoutContainer.setNorthWidget(northPanel, northBorderLayoutData);

    // HYPERLINK FORM PANEL -----------------------------------------------------------------
    hyperlinkCallerFormPanel = new FormPanel();
    hyperlinkCallerFormPanel.setAction("");
    hyperlinkCallerFormPanel.setMethod(Method.POST);
    northPanel.add(hyperlinkCallerFormPanel);

    hyperLink = new Anchor();
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.form.FormPanel

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.