Java 类com.google.gwt.user.client.ui.CaptionPanel 实例源码

项目:swcv    文件:WordCloudDetailApp.java   
private void initializeSettingPanel(WordCloud cloud)
{
    CaptionPanel settingArea = new SettingsPanel().create(setting);
    settingArea.setCaptionText("options");

    RootPanel rPanel = RootPanel.get("cloud-setting");
    rPanel.clear();
    rPanel.add(settingArea);
}
项目:avro-ui    文件:MainViewImpl.java   
public MainViewImpl() {
    errorPanel = new AlertPanel(Type.ERROR);
    infoPanel =  new AlertPanel(Type.INFO);
    avroUiSandboxStyle = Utils.avroUiSandboxStyle;

    initWidget(uiBinder.createAndBindUi(this));

    detailsTable.setWidth("95%");
    detailsTable.getElement().getStyle().setPaddingTop(0, Unit.PX);
    detailsTable.setCellPadding(0);

    detailsTable.getColumnFormatter().setWidth(0, "50%");
    detailsTable.getColumnFormatter().setWidth(1, "50%");

    detailsTable.getFlexCellFormatter().setColSpan(0, 0, 2);

    schemaConstructorView = new FormConstructorViewImpl();
    CaptionPanel schemaConstructorPanel = new CaptionPanel(Utils.constants.schemaConstructor());
    schemaConstructorPanel.add(schemaConstructorView);

    detailsTable.setWidget(1, 0, schemaConstructorPanel);

    recordConstructorView = new FormConstructorViewImpl();
    CaptionPanel recordConstructorPanel = new CaptionPanel(Utils.constants.recordConstructor());
    recordConstructorPanel.add(recordConstructorView);

    detailsTable.setWidget(1, 1, recordConstructorPanel);
    clearMessages();
}
项目:ephesoft    文件:UploadBatchView.java   
public CaptionPanel getDeleteCaptionPanel() {
    return deleteCaptionPanel;
}
项目:qafe-platform    文件:SetPropertyHandler.java   
private void handleTitle(UIObject uiObject, String value) {
    if(uiObject instanceof CaptionPanel){
        CaptionPanel p = (CaptionPanel) uiObject;
        p.setCaptionText(value);
    }
}
项目:swcv    文件:SettingsPanel.java   
public CaptionPanel create(WCSettings setting)
{
    this.setting = setting;

    FlexTable layout = new FlexTable();

    CellFormatter cf = layout.getCellFormatter();
    // Add some standard form options
    layout.setWidget(0, 0, createLabel("Number of Words:"));
    layout.setWidget(0, 1, createNumberListBox());
    layout.setWidget(1, 0, createLabel("Layout:"));
    layout.setWidget(1, 1, createLayoutListBox());
    layout.setWidget(2, 0, createLabel("Similarity:"));
    layout.setWidget(2, 1, createSimilarityListBox());

    layout.setWidget(3, 0, createLabel("Ranking:"));
    rankingWidget = createRankingListBox();
    layout.setWidget(3, 1, rankingWidget);

    cf.setStyleName(0, 2, "adv-cell-label");
    layout.setWidget(0, 2, createLabel("Font:"));
    fontWidget = createFontListBox();
    layout.setWidget(0, 3, fontWidget);

    cf.setStyleName(1, 2, "adv-cell-label");
    layout.setWidget(1, 2, createLabel("Color:"));
    colorSchemeWidget = createColorListBox();
    layout.setWidget(1, 3, colorSchemeWidget);

    cf.setStyleName(2, 2, "adv-cell-label");
    layout.setWidget(2, 2, createLabel("Aspect Ratio:"));
    layout.setWidget(2, 3, createAspectRatioListBox());

    cf.setStyleName(3, 2, "adv-cell-label");
    layout.setWidget(3, 2, createLabel("Language:"));
    layout.setWidget(3, 3, createLanguageListBox());

    addParseOptions(layout, cf);

    addTooltips(layout);

    // Wrap the content in a DecoratorPanel
    CaptionPanel panel = new CaptionPanel();
    panel.setCaptionText("advanced options for word cloud generation");
    panel.add(layout);
    return panel;
}
项目:swcv    文件:WordCloudApp.java   
private void createAdvancedArea()
{
    final CaptionPanel settingArea = new SettingsPanel().create(setting);
    settingArea.removeStyleName("gwt-DecoratorPanel");
    RootPanel.get("settingContainer").add(settingArea);
}
项目:sigmah    文件:MockUpView.java   
/**
 * {@inheritDoc}
 */
@Override
public void addSection(String title) {
    currentSection = new CaptionPanel(" " + title + " ", true);
    panel.add(currentSection);
}
项目:kaa    文件:RecordPanel.java   
/**
 * Instantiates a new RecordPanel.
 */
public RecordPanel(AvroWidgetsConfig config, boolean showCaption, String title,
                   HasErrorMessage hasErrorMessage, boolean optional, boolean readOnly) {
  this.showCaption = showCaption;
  this.optional = optional;
  this.readOnly = readOnly;
  this.hasErrorMessage = hasErrorMessage;
  FlexTable table = new FlexTable();
  table.setWidth("100%");
  if (config == null) {
    config = new AvroWidgetsConfig.Builder().createConfig();
  }

  recordFieldWidget = new RecordFieldWidget(config, readOnly);
  if (showCaption) {
    recordCaption = new CaptionPanel();
    setTitle(title);
    recordCaption.setContentWidget(recordFieldWidget);
    table.setWidget(0, 0, recordCaption);
  } else {
    table.setWidget(0, 0, recordFieldWidget);
  }

  recordFileUpload = new FileUploadForm();
  recordFileUpload.addSubmitCompleteHandler(new SubmitCompleteHandler() {
    @Override
    public void onSubmitComplete(SubmitCompleteEvent event) {
      loadRecordFromFile();
    }
  });
  recordFileUpload.addChangeHandler(this);
  recordFileItemName = recordFileUpload.getFileItemName();
  uploadButton = new Button(Utils.constants.upload(), new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      recordFileUpload.submit();
    }
  });
  uploadButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
  uploadButton.setEnabled(false);
  uploadTable = new FlexTable();
  Label uploadLabel = new Label(Utils.constants.uploadFromFile());
  uploadTable.setWidget(0, 0, uploadLabel);
  uploadTable.setWidget(0, 1, recordFileUpload);
  uploadTable.setWidget(0, 2, uploadButton);
  uploadTable.getFlexCellFormatter()
      .setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_MIDDLE);
  uploadTable.getFlexCellFormatter()
      .setVerticalAlignment(0, 2, HasVerticalAlignment.ALIGN_MIDDLE);
  table.setWidget(1, 0, uploadTable);
  setWidget(table);
  setUploadVisible(!readOnly);
  formDataLoader = new DefaultFormDataLoader();
}
项目:ephesoft    文件:KV_PP_AddEditListView.java   
/**
 * To get Kv PP Configuration Caption Panel.
 * 
 * @return CaptionPanel
 */
public CaptionPanel getKvPPConfigurationCaptionPanel() {
    return kvPPConfigurationCaptionPanel;
}
项目:ephesoft    文件:TableColumnInfoView.java   
/**
 * To get Table Column Info Configuration Caption Panel.
 * 
 * @return CaptionPanel
 */
public CaptionPanel getTcInfoConfigurationCaptionPanel() {
    return tcInfoConfigurationCaptionPanel;
}