Пример #1
0
  private void updateUIValues() {
    if (fURLValue.getLabel() == null) {
      org.eclipse.birt.chart.model.component.Label l = ComponentFactoryImpl.eINSTANCE.createLabel();
      fURLValue.setLabel(l);
      l.eAdapters().addAll(fURLValue.eAdapters());
      org.eclipse.birt.chart.model.attribute.Text t = AttributeFactoryImpl.eINSTANCE.createText();
      l.setCaption(t);
      t.eAdapters().addAll(l.eAdapters());
    }
    String v = fURLValue.getLabel().getCaption().getValue();
    fTxtHyperlinkLabel.setText(v == null ? "" : v); // $NON-NLS-1$

    fsBaseURL = fURLValue.getBaseUrl();

    fTxtBaseParm.setText(
        fURLValue.getBaseParameterName() == null
            ? "" //$NON-NLS-1$
            : fURLValue.getBaseParameterName());
    fTxtSeriesParm.setText(
        fURLValue.getSeriesParameterName() == null
            ? "" //$NON-NLS-1$
            : fURLValue.getSeriesParameterName());
    fTxtValueParm.setText(
        fURLValue.getValueParameterName() == null
            ? "" //$NON-NLS-1$
            : fURLValue.getValueParameterName());
  }
Пример #2
0
 public IText getCaption() {
   Text caption = label.getCaption();
   if (caption == null) {
     caption = ChartComponentUtil.createEMFText();
     label.setCaption(caption);
   }
   return ChartComponentUtil.convertText(caption);
 }
Пример #3
0
 public void setCaption(IText text) {
   label.setCaption(ChartComponentUtil.convertIText(text));
 }