Examples of MultiLineLabel


Examples of fmg.fmg8.graphVis.MultiLineLabel

       
        this.result = "";
        this.liste = new java.awt.List(elemente.size(), multi);
        Button but1 = new Button(button1);
        Button but2 = new Button(button2);
        MultiLineLabel lab = new MultiLineLabel(message);

        this.setLayout(new GridLayout(2, 2));
        this.add(this.liste);
        if (this.zusatzText == null) {
            this.add(lab);
        } else {
            this.add(this.zusatzText);
            this.setTitle(this.getTitle() + " (" + message + ")");
        }
        lab.setLeftRightMargin(50);
       
        this.add(but1);
        this.add(but2);

        but1.addActionListener(this);
View Full Code Here

Examples of fmg.fmg8.graphVis.MultiLineLabel

        buttonPanel.add(b3);
        buttonPanel.add(b4);
        buttonPanel.add(this.b5);
        buttonPanel.add(this.b6);
       
        MultiLineLabel m3;
        m3 = new MultiLineLabel();
        buttonPanel2.add(b10);
        buttonPanel2.add(b11);
        buttonPanel2.add(b8);
        buttonPanel2.add(b9);
        buttonPanel2.add(b12);
        buttonPanel2.add(b13);
        buttonPanel2.add(m3);
//        buttonPanel2.add(m4);

        this.infos = new MultiLineLabel();
        labelPanel.add(b7);
        labelPanel.add(this.infos);
        this.traceListe.addItemListener(this);

        this.add(buttonPanel);
View Full Code Here

Examples of fmg.fmg8.graphVis.MultiLineLabel

        buttonPanel.add(b3);
        buttonPanel.add(b4);
        buttonPanel.add(this.b5);
        buttonPanel.add(this.b6);
       
        MultiLineLabel m3, m4;
        m3 = new MultiLineLabel();
        m4 = new MultiLineLabel();
        buttonPanel2.add(b10);
        buttonPanel2.add(b11);
        buttonPanel2.add(b8);
        buttonPanel2.add(b9);
        buttonPanel2.add(m3);
        buttonPanel2.add(m4);

        this.infos = new MultiLineLabel();
        labelPanel.add(b7);
        labelPanel.add(this.infos);
        this.traceListe.addItemListener(this);

        this.add(buttonPanel);
View Full Code Here

Examples of net.sf.mzmine.util.components.MultiLineLabel

      }
      newComponent = new Structure2DComponent(structure2D);
    } catch (Exception e) {
      String errorMessage = "Could not load 2D structure\n"
          + "Exception: " + ExceptionUtils.exceptionToString(e);
      newComponent = new MultiLineLabel(errorMessage);
    }
    splitPane.setLeftComponent(newComponent);
    splitPane.setDividerLocation(500);
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel

        final WebMarkupContainer tableGroup = new WebMarkupContainer("tableGroup");
        tableGroup.setOutputMarkupId(true);
        //tableGroup.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
        tableGroup.add(new PagingNavigator("navigator", listview));
        tableGroup.add(listview);
        final MultiLineLabel statusLabel = new MultiLineLabel("status",
                new PropertyModel(this, "message"));
        statusLabel.setOutputMarkupId(true);
        final Label tickerLabel =new Label("ticker",new PropertyModel(this,"ticker"));
        tickerLabel.setOutputMarkupId(true);
        add(new AbstractAjaxTimerBehavior(Duration.seconds(3))
        {
            protected void onTimer(AjaxRequestTarget target)
View Full Code Here

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel

   */
  @Override
  protected MultiLineLabel newLabel(final MarkupContainer parent, final String componentId,
    final IModel<T> model)
  {
    MultiLineLabel label = new MultiLineLabel(componentId, model)
    {
      private static final long serialVersionUID = 1L;

      /**
       * {@inheritDoc}
       */
      @Override
      public void onComponentTagBody(final MarkupStream markupStream,
        final ComponentTag openTag)
      {
        Object modelObject = getDefaultModelObject();
        if ((modelObject == null) || "".equals(modelObject))
        {
          replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
        }
        else
        {
          super.onComponentTagBody(markupStream, openTag);
        }
      }
    };
    label.setOutputMarkupId(true);
    label.add(new LabelAjaxBehavior(getLabelAjaxEvent()));
    return label;
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel

    TextField<String> nameTextField = new TextField<String>("name", new PropertyModel<String>(
      MailTemplate.this, "name"));
    nameTextField.setOutputMarkupId(true);
    form.add(nameTextField);

    final MultiLineLabel result = new MultiLineLabel("result", new Model<String>());
    result.setOutputMarkupId(true);
    add(result);

    AjaxSubmitLink basedOnPageLink = new AjaxSubmitLink("pageBasedLink", form)
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel

  public ExceptionErrorPage(final Throwable throwable, final Page page)
  {
    this.throwable = throwable;

    // Add exception label
    add(new MultiLineLabel("exception", getErrorMessage(throwable)));

    add(new MultiLineLabel("stacktrace", getStackTrace(throwable)));

    // Get values
    String resource = "";
    String markup = "";
    MarkupStream markupStream = null;

    if (throwable instanceof MarkupException)
    {
      markupStream = ((MarkupException)throwable).getMarkupStream();

      if (markupStream != null)
      {
        markup = markupStream.toHtmlDebugString();
        resource = markupStream.getResource().toString();
      }
    }

    // Create markup label
    final MultiLineLabel markupLabel = new MultiLineLabel("markup", markup);

    markupLabel.setEscapeModelStrings(false);

    // Add container with markup highlighted
    final WebMarkupContainer markupHighlight = new WebMarkupContainer("markupHighlight");

    markupHighlight.add(markupLabel);
View Full Code Here

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel

    TextField<String> nameTextField = new TextField<String>("name", new PropertyModel<String>(
      MailTemplate.this, "name"));
    nameTextField.setOutputMarkupId(true);
    form.add(nameTextField);

    final MultiLineLabel result = new MultiLineLabel("result", new Model<String>());
    result.setOutputMarkupId(true);
    add(result);

    AjaxSubmitLink basedOnPageLink = new AjaxSubmitLink("pageBasedLink", form)
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel

   *      java.lang.String, org.apache.wicket.model.IModel)
   */
  @Override
  protected MultiLineLabel newLabel(MarkupContainer parent, String componentId, IModel<T> model)
  {
    MultiLineLabel label = new MultiLineLabel(componentId, model)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
      {
        Object modelObject = getDefaultModelObject();
        if (modelObject == null || "".equals(modelObject))
        {
          replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
        }
        else
        {
          super.onComponentTagBody(markupStream, openTag);
        }
      }
    };
    label.setOutputMarkupId(true);
    label.add(new LabelAjaxBehavior(getLabelAjaxEvent()));
    return label;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.