Package org.gwt.mosaic.ui.client

Examples of org.gwt.mosaic.ui.client.Label


   * @param textWithMnemonic the label's text - may contain an ampersand (
   *          <tt>&amp;</tt>) to mark a mnemonic
   * @return an label with optional mnemonic
   */
  public Label createLabel(String textWithMnemonic) {
    Label label = new Label(textWithMnemonic);
    // setTextAndMnemonic(label, textWithMnemonic);
    return label;
  }
View Full Code Here


        new BoxLayout(BoxLayout.Orientation.VERTICAL)
      );
      layoutPanel.setPadding(5);

      // console info
      Label console = new Label("Console Info");
      console.setStyleName("bpm-label-header");
      layoutPanel.add(console, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      Grid g1 = new Grid(1,2);
      g1.setWidget(0,0, new Label("Version:"));
      g1.setWidget(0,1, new Label(Version.VERSION));
      g1.getColumnFormatter().setWidth(0, "20%");

      layoutPanel.add(g1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      // server info
      Label server = new Label("Server Info");
      server.setStyleName("bpm-label-header");
      layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      ServerStatusView serverStatus = new ServerStatusView(appContext);
      serverStatus.initialize();
     
      Grid g2 = new Grid(1,2);
      g2.setWidget(0,0, new Label("Host:"));
      g2.setWidget(0,1, new Label(appContext.getConfig().getConsoleServerUrl()));

      g2.getColumnFormatter().setWidth(0, "20%");

      layoutPanel.add(g2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));      

      LayoutPanel pluginPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
      Label label = new Label("Plugins:");
      label.setStyleName("bpm-label-header");

      pluginPanel.add(label);
      pluginPanel.add(serverStatus);

      layoutPanel.add(pluginPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
View Full Code Here

  public void initialize()
  {
    if(!initialized)
    {
      LayoutPanel layout = new LayoutPanel();
      layout.add(new Label("Hello form SAM"));

      this.add(layout);
     
      initialized = true;
    }
View Full Code Here

   
    this.appContext = appContext;
    this.delegate = delegate;
    this.setPadding(5);

    this.add(new Label("Loading, please wait..."));
  }
View Full Code Here

  public void update(List<ProcessDefinitionRef> definitions)
  {
    this.clear();
    this.selection = null;

    Label desc = new Label("Please enter a process definition ID");
    //desc.setStyleName("bpm-label-header");
    this.add(desc, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    suggestBox = new SuggestBox(
        createOracle(definitions)
    );

    suggestBox.addEventHandler(
        new SuggestionHandler()
        {
          public void onSuggestionSelected(SuggestionEvent suggestionEvent)
          {
            selection = suggestionEvent.getSelectedSuggestion().getReplacementString();
          }
        }
    );

    this.add(suggestBox);

    Grid g = new Grid(2,2);
    g.setWidget(0,0, new Label("ID: "));
    g.setWidget(0,1, suggestBox);

    Button button = new Button(delegate.getActionName(),
        new ClickListener()
        {
View Full Code Here

      toolBar.add(createMenuBtn());
      toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      // loading panel
      loadingPanel = new LayoutPanel();
      loadingPanel.add(new Label("Loading, please wait..."));
      loadingPanel.setVisible(false);

      // assembly
      layout.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
      layout.add(loadingPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
View Full Code Here

  private void initReset()
  {
    for(int i=0; i< fieldNames.length; i++)
    {
      Label label = new Label(fieldNames[i]);
      label.setStyleName("bpm-prop-grid-label");
      grid.setWidget(i,0, label);
      grid.setWidget(i,1, new HTML(""));

      if (i % 2 == 0)
      {
View Full Code Here

    if(fieldValues.length!= fieldNames.length)
      throw new IllegalArgumentException("fieldValues.length doesn't match fieldName.length: "+ fieldNames);

    for(int i=0; i< fieldNames.length; i++)
    {
      Label label = new Label(fieldNames[i]);
      label.setStyleName("bpm-prop-grid-label");
      grid.setWidget(i,0, label);
      grid.setWidget(i,1, new HTML(fieldValues[i]));
    }
  }
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.Label

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.