当前位置: 首页>>代码示例>>Java>>正文


Java CaptionPanel类代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.CaptionPanel的典型用法代码示例。如果您正苦于以下问题:Java CaptionPanel类的具体用法?Java CaptionPanel怎么用?Java CaptionPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CaptionPanel类属于com.google.gwt.user.client.ui包,在下文中一共展示了CaptionPanel类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeSettingPanel

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
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);
}
 
开发者ID:spupyrev,项目名称:swcv,代码行数:10,代码来源:WordCloudDetailApp.java

示例2: MainViewImpl

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
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();
}
 
开发者ID:kaaproject,项目名称:avro-ui,代码行数:30,代码来源:MainViewImpl.java

示例3: getDeleteCaptionPanel

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
public CaptionPanel getDeleteCaptionPanel() {
	return deleteCaptionPanel;
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:4,代码来源:UploadBatchView.java

示例4: handleTitle

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
private void handleTitle(UIObject uiObject, String value) {
    if(uiObject instanceof CaptionPanel){
        CaptionPanel p = (CaptionPanel) uiObject;
        p.setCaptionText(value);
    }
}
 
开发者ID:qafedev,项目名称:qafe-platform,代码行数:7,代码来源:SetPropertyHandler.java

示例5: create

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
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;
}
 
开发者ID:spupyrev,项目名称:swcv,代码行数:48,代码来源:SettingsPanel.java

示例6: createAdvancedArea

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
private void createAdvancedArea()
{
    final CaptionPanel settingArea = new SettingsPanel().create(setting);
    settingArea.removeStyleName("gwt-DecoratorPanel");
    RootPanel.get("settingContainer").add(settingArea);
}
 
开发者ID:spupyrev,项目名称:swcv,代码行数:7,代码来源:WordCloudApp.java

示例7: addSection

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void addSection(String title) {
	currentSection = new CaptionPanel(" " + title + " ", true);
	panel.add(currentSection);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:9,代码来源:MockUpView.java

示例8: RecordPanel

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
/**
 * 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();
}
 
开发者ID:kaaproject,项目名称:kaa,代码行数:57,代码来源:RecordPanel.java

示例9: getKvPPConfigurationCaptionPanel

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
/**
 * To get Kv PP Configuration Caption Panel.
 * 
 * @return CaptionPanel
 */
public CaptionPanel getKvPPConfigurationCaptionPanel() {
	return kvPPConfigurationCaptionPanel;
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:9,代码来源:KV_PP_AddEditListView.java

示例10: getTcInfoConfigurationCaptionPanel

import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
/**
 * To get Table Column Info Configuration Caption Panel.
 * 
 * @return CaptionPanel
 */
public CaptionPanel getTcInfoConfigurationCaptionPanel() {
	return tcInfoConfigurationCaptionPanel;
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:9,代码来源:TableColumnInfoView.java


注:本文中的com.google.gwt.user.client.ui.CaptionPanel类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。