本文整理汇总了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);
}
示例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();
}
示例3: getDeleteCaptionPanel
import com.google.gwt.user.client.ui.CaptionPanel; //导入依赖的package包/类
public CaptionPanel getDeleteCaptionPanel() {
return deleteCaptionPanel;
}
示例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);
}
}
示例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;
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}
示例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;
}