com.ait.lienzo.client.core.shape.Text.setText()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(177)

本文整理了Java中com.ait.lienzo.client.core.shape.Text.setText()方法的一些代码示例,展示了Text.setText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setText()方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Text
类名称:Text
方法名:setText

Text.setText介绍

[英]Sets the Text String
[中]设置文本字符串

代码示例

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent( final Text t,
                    final String value,
                    final GridBodyCellRenderContext context ) {
    t.setText( value );
  }
},

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent( final Text t,
                    final String value,
                    final GridBodyCellRenderContext context ) {
    t.setText( value );
  }
},

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent( final Text t,
                    final String value,
                    final GridBodyCellRenderContext context ) {
    t.setText( value );
  }
},

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

@SuppressWarnings("unchecked")
public void setTitle(final String title) {
  if (null == title) {
    text.setText(null);
  } else {
    text.setText(title.trim());
  }
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
  protected void doRenderCellContent( final Text t,
                    final Byte value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxByteSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
protected void doRenderCellContent(final Text t,
                  final String value,
                  final GridBodyCellRenderContext context) {
  t.setText(getLabel(value.toString()));
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
protected void doRenderCellContent( final Text text,
                  final String value,
                  final GridBodyCellRenderContext context ) {
  text.setText( getText( value ) );
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
  protected void doRenderCellContent( final Text t,
                    final Number value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxNumericSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
  protected void doRenderCellContent( final Text t,
                    final Float value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxFloatSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
  protected void doRenderCellContent( final Text t,
                    final Integer value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxIntegerSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent( final Text t,
                    final Double value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxDoubleSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent( final Text t,
                    final BigInteger value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxBigIntegerSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: kiegroup/drools-wb

@Override
protected void doRenderCellContent( final Text text,
                  final String value,
                  final GridBodyCellRenderContext context ) {
  text.setText( getText( value ) );
}

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent(final Text text,
                    final Date value,
                    final GridBodyCellRenderContext context) {
    text.setText(formatWithServerTimeZone(value));
  }
};

代码示例来源:origin: kiegroup/drools-wb

@Override
  protected void doRenderCellContent( final Text t,
                    final Number value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxNumericSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
  protected void doRenderCellContent( final Text t,
                    final BigInteger value,
                    final GridBodyCellRenderContext context ) {
    t.setText( ( (TextBoxBigIntegerSingletonDOMElementFactory) factory ).convert( value ) );
  }
},

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo-extensions

PrimitiveTextTooltip(final String text,
           final Tooltip tooltip,
           final BoundingLocationExecutor locationExecutor) {
  this.tooltip = tooltip
      .withText(textPrim -> textPrim.setText(text));
  this.locationExecutor = locationExecutor
      .at(DEFAULT_AT);
  this.towards(DEFAULT_TOWARDS);
}

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

@Override
  public void onBlur(final BlurEvent event) {
    text.setText(editTextBox.getText());
    bounding.setText(editTextBox.getText());
    text.getLayer().batch();
    RootPanel.get().remove(editTextBox);
  }
});

代码示例来源:origin: kiegroup/appformer

@Override
  public void onBlur(final BlurEvent event) {
    text.setText(editTextBox.getText());
    bounding.setText(editTextBox.getText());
    text.getLayer().batch();
    RootPanel.get().remove(editTextBox);
  }
});

代码示例来源:origin: kiegroup/drools-wb

@Test
public void testDateUiColumnTextFormat() {
  final Text text = mock(Text.class);
  final GridBodyCellRenderContext context = mock(GridBodyCellRenderContext.class);
  final String clientDate = "05-01-2018 00:00:00 -0300";
  final String clientFormattedWithServerTimeZoneDate = "05-01-2018 06:00:00 +0300";
  renderer().doRenderCellContent(text, date(clientDate), context);
  verify(text).setText(clientFormattedWithServerTimeZoneDate);
}

相关文章