Examples of StyledText


Examples of com.google.wave.api.StyledText

  public void create(Wavelet resultsWavelet, String recipient) {
    metadata.setRecipients(recipient);
    metadata.setResultsWaveletId(resultsWavelet.getWaveId() + " " +
        resultsWavelet.getWaveletId());

    wavelet.setTitle(new StyledText(metadata.getTitle() + " -- Poll", StyleType.HEADING2));
    pollPane.create(false);
    wavelet.getRootBlip().getDocument().setAnnotation("poll-wavelet", "");
   
    metadata.saveMetadata(wavelet);
  }
View Full Code Here

Examples of com.ibm.richtext.styledtext.StyledText

    public void test() {

        AttributeMap bold = new AttributeMap(TextAttribute.WEIGHT,
                                             TextAttribute.WEIGHT_BOLD);
        MText text = new StyledText("Hello there!", AttributeMap.EMPTY_ATTRIBUTE_MAP);
        text.replace(2, 2, 'V', bold);

        MTextIterator iter = new MTextIterator(text, FONT_MAPPER, 0, text.length());
        compareIterToText(iter, text);

        text.replace(6, 8, new StyledText("ALL_BOLD", bold), 0, 8);
        iter = new MTextIterator(text, FONT_MAPPER, 1, text.length()-3);
        compareIterToText(iter, text);

        iter = new MTextIterator(text, FONT_MAPPER, 0, text.length());
        compareIterToText(iter, text);
    }
View Full Code Here

Examples of limelight.ui.text.StyledText

    panel.setText("<my_style>some </my_style><my_other_style>text</my_other_style>", parent);
    panel.buildLines();

    List<StyledText> chunks = panel.getTextChunks();

    StyledText layout = chunks.get(0);
    assertEquals(5, layout.getText().length());
    assertSubString("name=Helvetica", layout.toString());
    assertSubString("style=bold", layout.toString());
    assertSubString("size=20", layout.toString());

    StyledText layout2 = chunks.get(1);
    assertEquals(5, layout.getText().length());
    assertSubString("family=Dialog", layout2.toString());
    assertSubString("name=Cuneiform", layout2.toString());
    assertSubString("style=italic", layout2.toString());
    assertSubString("size=19", layout2.toString());
  }
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

  private Point computeMenuLocation(Control focus, Menu menu) {
    Point cursorLocation= focus.getDisplay().getCursorLocation();
    Rectangle clientArea= null;
    Point result= null;
    if (focus instanceof StyledText) {
      StyledText styledText= (StyledText)focus;
      clientArea= styledText.getClientArea();
      result= computeMenuLocation(styledText);
    } else if (focus instanceof Tree) {
      Tree tree= (Tree)focus;
      clientArea= tree.getClientArea();
      result= computeMenuLocation(tree);
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

    sectionLayout.marginHeight = 0;
    sectionLayout.marginWidth = 0;
    sectionContent.setLayout(sectionLayout);
    detailSection.setEnabled(false);

    detailListWidget = new StyledText(sectionContent, SWT.BORDER | SWT.V_SCROLL
        | SWT.WRAP);
    detailListWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    /*
     * Add a default message instead of an empty box if there is no history;
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

 
  public
  LinkArea(
    Composite  comp )
  {
    styled_text = new StyledText(comp,SWT.BORDER | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL);   
    styled_text.setWordWrap(true);

    styled_text.addListener(SWT.MouseUp, new Listener() {
      public void handleEvent(Event event) {
        if (links.size() == 0) {
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

    gridData.widthHint = 70;
    bTestUDP.setLayoutData(gridData);
   
      // results
   
    textResults = new StyledText(panel, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP );
    gridData = new GridData();
    gridData.widthHint = 400;
    gridData.heightHint = 100;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = SWT.FILL;
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

      window.setLayout(layout);
      FormData formData;
     
        // text area
     
      text_area = new StyledText(window,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        
      text_area.setEditable(false);
     
      Button btnOk = new Button(window,SWT.PUSH);
      Button btnAbort = new Button(window,SWT.PUSH);
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

    window.setLayout(layout);
    FormData formData;
   
      // text blocked area
   
    final StyledText textBlocked = new StyledText(window,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    Button btnClear = new Button(window,SWT.PUSH);
    textBlocked.setEditable(false);
   
    final StyledText textBanned = new StyledText(window,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    Button btnOk = new Button(window,SWT.PUSH);
    Button btnReset = new Button(window,SWT.PUSH);
    textBanned.setEditable(false);
   
           
    formData = new FormData();
    formData.left = new FormAttachment(0,0);
    formData.right = new FormAttachment(100,0);
    formData.top = new FormAttachment(0,0);  
    formData.bottom = new FormAttachment(40,0);  
    textBlocked.setLayoutData(formData);
    textBlocked.setText(ipsBlocked);
   
   
    // label blocked area
   
    Label  blockedInfo = new Label(window, SWT.NULL);
    Messages.setLanguageText(blockedInfo,"ConfigView.section.ipfilter.blockedinfo");
    formData = new FormData();
    formData.top = new FormAttachment(textBlocked);   
    formData.right = new FormAttachment(btnClear);   
    formData.left = new FormAttachment(0,0);   
    blockedInfo.setLayoutData( formData );
      // clear button
   
   
    Messages.setLanguageText(btnClear,"Button.clear");
    formData = new FormData();
    formData.top = new FormAttachment(textBlocked);   
    formData.right = new FormAttachment(95,0 );   
    //formData.bottom = new FormAttachment(textBanned);
    formData.width = 70;
    btnClear.setLayoutData(formData);
    btnClear.addListener(SWT.Selection,new Listener() {

    public void handleEvent(Event e) {
    
      azureus_core.getIpFilterManager().getIPFilter().clearBlockedIPs();
     
      textBlocked.setText( "" );
    }
    });
   
   
      // text banned area
    formData = new FormData();
    formData.left = new FormAttachment(0,0);
    formData.right = new FormAttachment(100,0);
    formData.top = new FormAttachment(btnClear);  
    formData.bottom = new FormAttachment(btnOk);  
    textBanned.setLayoutData(formData);
    textBanned.setText(ipsBanned);
   
      // label banned area
   
    Label  bannedInfo = new Label(window, SWT.NULL);
    Messages.setLanguageText(bannedInfo,"ConfigView.section.ipfilter.bannedinfo");
    formData = new FormData();
    formData.right = new FormAttachment(btnReset);   
    formData.left = new FormAttachment(0,0);   
    formData.bottom = new FormAttachment(100,0)
    bannedInfo.setLayoutData( formData );
   
      // reset button
   
    Messages.setLanguageText(btnReset,"Button.reset");
    formData = new FormData();
    formData.right = new FormAttachment(btnOk);   
    formData.bottom = new FormAttachment(100,0);   
    formData.width = 70;
    btnReset.setLayoutData(formData);
    btnReset.addListener(SWT.Selection,new Listener() {

    public void handleEvent(Event e) {
      azureus_core.getIpFilterManager().getIPFilter().clearBannedIps();
      azureus_core.getIpFilterManager().getBadIps().clearBadIps();
   
      textBanned.setText( "" );   
      }
    });
      // ok button
   
    Messages.setLanguageText(btnOk,"Button.ok");
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText

    layout.numColumns = 2;
    panel.setLayout(layout);

    GridData gd;

    consoleText = new StyledText(panel, SWT.READ_ONLY | SWT.V_SCROLL
        | SWT.H_SCROLL);
    gd = new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan = 2;
    consoleText.setLayoutData(gd);
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.