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

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


   *
   * @param title the title of the message box
   * @param message the message that appears in the message box
   */
  public MultiLinePromptMessageBox(String title, String message) {
    super(new TextArea(), title, message);
    getField().setHeight(75);
  }
View Full Code Here


   *
   * @param title the title of the message box
   * @param message the message that appears in the message box
   */
  public MultiLinePromptMessageBox(String title, String message) {
    super(new TextArea(), title, message);
    getField().setHeight(75);
  }
View Full Code Here

  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);
   
    FieldSet one=new FieldSet();
    one.setHeadingText("基本信息");
    VerticalLayoutContainer p1 = new VerticalLayoutContainer();
    p1.add(new FieldLabel(name, "名称"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    p1.add(new FieldLabel(desc, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    one.add(p1);
   
    centerContainer.add(one,new MarginData(5));
   
    final FieldSet two=new FieldSet();
    two.setHeadingText("配置项信息");
    configs=new TextArea();
    configs.setResizable(TextAreaInputCell.Resizable.BOTH);
    configs.addValidator(FormatUtil.propValidator);
    configs.setWidth(800);
    configs.setHeight(150);
    two.add(configs);
   
    centerContainer.add(two,new MarginData(5));
   
    final FieldSet three=new FieldSet();
    three.setHeadingText("资源信息");
    resources=new TextArea();
    resources.setResizable(Resizable.BOTH);
    resources.setWidth(800);
    resources.setHeight(150);
    resources.addValidator(FormatUtil.resourceValidator);
    three.add(resources);
View Full Code Here

      layoutContainer.add(rightContainer);

      baseName = new TextField();
      baseName.setWidth(150);

      baseDesc = new TextArea();
      baseDesc.setWidth(150);
      baseDesc.setHeight(36);

      ListStore<String> scheduleTypeStore = new ListStore<String>(
          new ModelKeyProvider<String>() {
View Full Code Here

      configFieldSet = new FieldSet();
      configFieldSet.setCollapsible(true);
      configFieldSet.setHeadingText("配置项信息");
      configFieldSet.setWidth("96%");
      configFieldSet.setResize(false);
      configs = new TextArea();
      configs.setWidth(700);
      configs.setHeight(148);
      configFieldSet.add(configs);
    }
    return configFieldSet;
View Full Code Here

      resourceField = new FieldSet();
      resourceField.setCollapsible(true);
      resourceField.setHeadingText("资源信息");
      resourceField.setWidth("96%");
      resourceField.setResize(false);
      resources = new TextArea();
      resources.setWidth(700);
      resources.setHeight(148);
      resourceField.add(resources);
    }
    return resourceField;
View Full Code Here

  {
    public ExceptionDetailsMessageBox(final BaseAction<?> action, final Throwable exception)
    {
      super(false, 1, DisplayableButton.CANCEL);
      setResizable(true);
      final TextArea textArea = new TextArea();
      textArea.setHeight(500);
      setWidth(1050);
      final StringBuilder stringBuilder = new StringBuilder(1000);
      stringBuilder.append("ERROR REPORT: [").append(new Date().toString()).append("]").append(newLine);
      stringBuilder.append("Page URL: ").append(Window.Location.getHref()).append(newLine).append(newLine);
      if (action != null)
      {
        stringBuilder.append("Actions chain :").append(newLine);
        BaseAction<?> currentAction = action;
        int count = 0; // prevent infinite loop ... we never know :P
        while (currentAction != null && count++ < 100)
        {
          if (count > 1)
          {
            stringBuilder.append(newLine).append("Called by: ");
          }
          stringBuilder.append(currentAction.getProgressMessage());
          currentAction = currentAction.getParentChainAction();
        }
        stringBuilder.append(newLine).append(newLine);
      }
      if (exception instanceof DkException)
      {
        final DkException gwtlibException = (DkException) exception;
        stringBuilder.append("Server Error Context: ").append(newLine);
        for (final Entry<String, String> entry : gwtlibException.getContext().getContextMap().entrySet())
        {
          stringBuilder.append(entry.getKey()).append(": ").append(entry.getValue()).append(newLine);
        }
        stringBuilder.append(newLine).append(newLine);
      }
      if (exception.getMessage() != null)
      {
        stringBuilder.append("Exception Message: ");
      }
      if (exception instanceof DkException)
      {
        final DkException gwtlibException = (DkException) exception;
        final Iterator<Couple<String, List<String>>> it = gwtlibException.getContext().getStackTrace().iterator();
        while (it.hasNext())
        {
          final Couple<String, List<String>> couple = it.next();
          stringBuilder.append(couple.first).append(newLine);
          for (final String stackTraceElement : couple.second)
          {
            stringBuilder.append(stackTraceElement).append(newLine);
          }
          if (it.hasNext())
          {
            stringBuilder.append(newLine).append("Caused by: ");
          }
        }
      }
      else
      {
        stringBuilder.append(exception.getMessage()).append(newLine);
        for (final StackTraceElement stackTraceElement : exception.getStackTrace())
        {
          stringBuilder.append(stackTraceElement).append(newLine);
        }
        if (exception.getCause() != null
            && !DkObjectUtils.equalsWithNull(exception.getMessage(), exception.getCause().getMessage()))
        {
          stringBuilder.append(newLine).append("Caused by: ").append(exception.getCause().getMessage()).append(newLine);
          for (final StackTraceElement stackTraceElement : exception.getCause().getStackTrace())
          {
            stringBuilder.append(stackTraceElement).append(newLine);
          }
        }
      }
      stringBuilder.append(newLine);
      textArea.setValue(stringBuilder.toString());
      addField(textArea);
    }
View Full Code Here

TOP

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

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.