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

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


   *
   * @param title the title of the message box
   * @param message the message that appears in the message box
   */
  public PromptMessageBox(String title, String message) {
    super(new TextField(), title, message);
  }
View Full Code Here


   */
  public StringFilter(ValueProvider<? super M, String> valueProvider) {
    super(valueProvider);
    setHandler(new StringFilterHandler());

    field = new TextField() {
      protected void onKeyUp(Event event) {
        super.onKeyUp(event);
        onFieldKeyUp(event);
      }
    };
View Full Code Here

   *
   * @param title the title of the message box
   * @param message the message that appears in the message box
   */
  public PromptMessageBox(String title, String message) {
    super(new TextField(), title, message);
  }
View Full Code Here

//                public String getLabel(LineSeries<TimeSeriesDataVO> item) {
//                  return item.getYField().getPath();
//                }
//              });

          final TextField fieldInput = new TextField();
          fieldInput.setValue("first");
          fieldInput.setAllowBlank(false);
          fieldInput.addValidator(new MaxLengthValidator(20));
          final RegExp regex = RegExp.compile("\\s");
          fieldInput.addValidator(new Validator<String>() {
            public List<EditorError> validate(Editor<String> editor, String value) {
              if (regex.test(value)) {
                List<EditorError> errors = new ArrayList<EditorError>();
                errors.add(new DefaultEditorError(editor, "Field name cannot contain spaces.", ""));
                return errors;
View Full Code Here

   */
  public StringFilter(ValueProvider<? super M, String> valueProvider) {
    super(valueProvider);
    setHandler(new StringFilterHandler());

    field = new TextField() {
      protected void onKeyUp(Event event) {
        super.onKeyUp(event);
        onFieldKeyUp(event);
      };
    };
View Full Code Here

   
    formPanel=new FormPanel();
    VerticalLayoutContainer p=new VerticalLayoutContainer();
    formPanel.add(p);
   
    name=new TextField();
    name.setAllowBlank(false);
    p.add(new FieldLabel(name, "任务名称"),new VerticalLayoutData(1,-1));
   
    ListStore<Map<String, String>> jobTypeStore=new ListStore<Map<String, String>>(new ModelKeyProvider<Map<String, String>>() {
      public String getKey(Map<String, String> item) {
View Full Code Here

          pathField.setAllowBlank(false);
        }
      }
    });
   
    hostField=new TextField();
    hostField.setWidth(200);
   
    pathField=new TextField();
    pathField.setWidth(200);
    pathField.addValidator(new Validator<String>() {
      @Override
      public List<EditorError> validate(Editor<String> editor, String value) {
        List<EditorError> list=new ArrayList<EditorError>();
View Full Code Here

    setModal(true);

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

    dir = new Radio();
    dir.setBoxLabel("大目录");
    dir.setToolTipConfig(new ToolTipConfig("大目录,不可修改", "该类型的组下面只能添加目录,不能添加Job任务"){{setDismissDelay(0);}});
View Full Code Here

 
  private GroupPresenter presenter;
  public CardEditGroup(final GroupPresenter presenter){
    this.presenter=presenter;
    this.model=presenter.getGroupModel();
    name=new TextField();
    name.setAllowBlank(false);
    desc=new TextArea();
   
    FlowLayoutContainer centerContainer=new FlowLayoutContainer();
    centerContainer.setScrollMode(ScrollMode.AUTOY);
View Full Code Here

      hiveProcesserFieldSet = new FieldSet();
      hiveProcesserFieldSet.setCollapsible(true);
      hiveProcesserFieldSet.setHeadingText("辅助功能配置");
      hiveProcesserFieldSet.setHeight(160);
      VerticalLayoutContainer container = new VerticalLayoutContainer();
      outputTableField = new TextField();
      outputTableField.setWidth(550);
      outputTableField.setAutoValidate(true);
      outputTableField
          .setEmptyText("多个表用','分隔,用于产出检查和历史分区清理。只支持第一个分区字段为pt且最新分区为昨天的表");
      ToolTipConfig outputTableToolTip = new ToolTipConfig();
      outputTableToolTip = new ToolTipConfig();
      outputTableToolTip
          .setBodyHtml("<span style=\"display:inline;word-wrap:break-word;\">多个表用英文逗号分隔。用于产出检查和历史分区清理。</span>");
      outputTableToolTip.setTitleHtml("产出的表");
      outputTableToolTip.setMouseOffset(new int[] { 0, 0 });
      outputTableToolTip.setAnchor(Side.BOTTOM);
      outputTableToolTip.setMaxWidth(280);
      outputTableToolTip.setHideDelay(3000);
      // outputTableField.setToolTipConfig(outputTableToolTip);

      syncTableField = new TextField();
      syncTableField.setWidth(550);
      syncTableField.setAutoValidate(true);
      syncTableField.setEmptyText("多个表用';'分隔。参数之间用','分隔。");
      syncTableField
          .setToolTip("可选参数依次为 1.分区下子分区数目(默认1)2.要同步的日期与当天的差值(默认-1,也就是昨天);<br/>如r_auction_auctions,2;ds_fdi_atplog_base,70,-5");
View Full Code Here

TOP

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

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.