Examples of XLabel


Examples of net.xoetrope.html.XLabel

        }
    }
   
     public void font22Other() {
        XRadioButton radio3 = (XRadioButton)findComponent( obj, "radio3" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio3.isSelected() ) {
            lab1.setFontSize( 22 );
            lab2.setFontSize( 22 );
            table.setFontSize( 22 );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XLabel

        XTextArea text2 = (XTextArea)findComponent( "text2" );
        text2.setText( text1.getText() );
    }
   
    public void transmitLabel() {
        XLabel lab1 = (XLabel)findComponent( obj, "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        lab2.setText( lab1.getText() );
    }
View Full Code Here

Examples of net.xoetrope.html.XLabel

    }
       
    public void addRadio() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XRadioButton radio = new XRadioButton( "radio" );
        XLabel radio_txt = new XLabel( "New Radio Button", "radio_txt" );
        panel.add( radio.getHTMLElement() );
        panel.add( radio_txt.getHTMLElement() );
        radio.addEvent( radio.getHTMLElement().getId(), "alert", "ClICk");
    }
View Full Code Here

Examples of net.xoetrope.html.XLabel

    }
       
    public void addCheck() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XCheckbox check = new XCheckbox( "check" );
        XLabel check_txt = new XLabel( "New Check Box", "check_txt" );
        panel.add( check.getHTMLElement() );
        panel.add( check_txt.getHTMLElement() );
    }
View Full Code Here

Examples of net.xoetrope.swing.XLabel

    if ( obj != null )
      rowSpan = Integer.parseInt( obj.toString()) - 1;

    // Rows and columns are 1 based
    if (( content != null ) && ( content.length() > 0 ) && !content.equals( " " )) {
      XLabel label = new XLabel();
      if ( !content.startsWith( "<html>" ))
        content = "<html>" + getTextStyleAttributes( label, true ) + content + getTextStyleAttributes( label, false ) + "</html>";

      label.setText( content );
      if ( XHtmlBuilder.isDebugLayout())
        label.setBorder( new LineBorder( Color.green, 2 ));
      comp.add( label, 0 );
    }
    if ( XHtmlBuilder.isDebugLayout())
      comp.setBorder( new LineBorder( Color.red, 2 ));
   
View Full Code Here

Examples of net.xoetrope.swing.XLabel

   */
  public void startProcessing( XHtmlBuilder builder, XComponentFactory cf, MutableAttributeSet as )
  {
    super.startProcessing( builder, cf, as );

    comp = new XLabel();
    parentComponent.add( comp );
    //comp.setLayout( new FlowLayout());
    cf.setParentComponent( comp );
  }
View Full Code Here

Examples of net.xoetrope.swing.XLabel

   */
  public void startProcessing( XHtmlBuilder builder, XComponentFactory cf, MutableAttributeSet as )
  {
    super.startProcessing( builder, cf, as );

    comp = new XLabel();
    parentComponent.add( comp );
    comp.setLayout( new XHtmlFormLayout( builder ));
    cf.setParentComponent( comp );
  }
View Full Code Here

Examples of next.i.view.widgets.XLabel

  @Override
  public IsWidget getViewContent() {
    XFlexTable panel = new XFlexTable("100%", null);
    panel.setCellSpacing(10);

    XLabel headline = new XLabel("Headline Title", XLabelType.Header);
    XLabel text = new XLabel("Label text: Neque porro quisquam est qui dolorem ipsum "
        + "quia dolor sit amet, consectetur, adipisci velit...");

    XAnchor link = new XAnchor("Picture Original Link", "images/icons/earth.jpg", "_blank");
    XImage img1 = new XImage("images/icons/earth.jpg");
View Full Code Here

Examples of next.i.view.widgets.XLabel

    XCheckbox checkB = new XCheckbox("Green", "Green");
    XCheckbox checkC = new XCheckbox("Blue", "Blue");
    final XCheckboxGroup groupHorizontal = new XCheckboxGroup(false);
    groupHorizontal.add(checkA, checkB, checkC);

    final XLabel label1 = new XLabel("Favorite color", XLabelType.Header);
    final XLabel label2 = new XLabel("Favorite color", XLabelType.Header);

    panel.addWidgets(label2, groupHorizontal, label1, groupVertical, new HTML("&nbsp;"));

    check0.setValue(true);
    check1.setValue(true);
    checkA.setValue(true);
    checkC.setValue(true);
   
    groupVertical.addSelectionChangedHandler(new SelectionChangedHandler() {
      public void onSelectionChanged(SelectionChangedEvent e) {
        String s = "Favorite color: ";
        for (XCheckbox c : groupVertical.getCheckedWidgets()) {
          s += c.getName() + ", ";
        }
        label1.setText(s);
      }
    });

    groupHorizontal.addSelectionChangedHandler(new SelectionChangedHandler() {
      public void onSelectionChanged(SelectionChangedEvent e) {
        String s = "Favorite color: ";
        for (XCheckbox c : groupHorizontal.getCheckedWidgets()) {
          s += c.getName() + ", ";
        }
        label2.setText(s);
      }
    });

    return panel;
  }
View Full Code Here

Examples of next.i.view.widgets.XLabel

    XRadioButton radioC = new XRadioButton("Blue", "Blue");

    final XRadioButtonGroup group2 = new XRadioButtonGroup(false);
    group2.add(radioA, radioB, radioC);

    final XLabel label1 = new XLabel("Favorite color", XLabelType.Header);
    final XLabel label2 = new XLabel("Favorite color", XLabelType.Header);

    radio0.setValue(true);
    radioA.setValue(true);
   
    group1.addSelectionChangedHandler(new SelectionChangedHandler() {
      public void onSelectionChanged(SelectionChangedEvent e) {
        label1.setText("Favorite color: " + group1.getCheckedWidget().getName());
      }
    });

    group2.addSelectionChangedHandler(new SelectionChangedHandler() {
      public void onSelectionChanged(SelectionChangedEvent e) {
        label2.setText("Favorite color: " + group2.getCheckedWidget().getName());
      }
    });

    panel.addWidgets(label2, group2, label1, group1, new HTML("&nbsp;"));
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.