本文整理汇总了Java中org.gwtbootstrap3.client.ui.constants.HeadingSize类的典型用法代码示例。如果您正苦于以下问题:Java HeadingSize类的具体用法?Java HeadingSize怎么用?Java HeadingSize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HeadingSize类属于org.gwtbootstrap3.client.ui.constants包,在下文中一共展示了HeadingSize类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createPanelHeader
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
static PanelHeader createPanelHeader(final PropertyEditorCategory category,
final PanelGroup propertyMenu,
PanelCollapse panelCollapse) {
final Heading heading = new Heading(HeadingSize.H4);
final Anchor anchor = GWT.create(Anchor.class);
anchor.setText(category.getName());
anchor.setDataToggle(Toggle.COLLAPSE);
anchor.setDataParent(propertyMenu.getId());
anchor.setDataTargetWidget(panelCollapse);
anchor.addStyleName("collapsed");
heading.add(anchor);
final PanelHeader header = GWT.create(PanelHeader.class);
header.add(heading);
return header;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:PropertyEditorHelper.java
示例2: add
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
@Override
public EntitiesList.View add(final int index,
final String identifier,
final String title,
final HeadingSize titleSize,
final boolean canRead,
final boolean canRemove,
final boolean canSelect,
final boolean isSelected) {
addEntityInList(index,
identifier,
title,
titleSize,
canRead,
canRemove,
canSelect,
isSelected);
emptyEntitiesRow.setVisible(false);
return this;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:21,代码来源:EntitiesListView.java
示例3: makePanelGroup
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
private PanelGroup makePanelGroup(final String className,
final boolean isReadOnly) {
return new PanelGroup() {{
final PanelCollapse collapse = new PanelCollapse() {{
add(new PanelBody() {{
add(makeStencils(className,
isReadOnly));
}});
}};
add(new PanelHeader() {{
setDataToggle(Toggle.COLLAPSE);
setDataParent(getId());
setDataTargetWidget(collapse);
add(new Heading(HeadingSize.H4) {{
setText(className);
}});
}});
add(collapse);
}};
}
开发者ID:kiegroup,项目名称:drools-wb,代码行数:21,代码来源:GuidedDecisionTreePalette.java
示例4: createHeader
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
private ModalHeader createHeader(String title, DialogType type) {
ModalHeader header = new ModalHeader();
Heading heading = new Heading(HeadingSize.H3);
heading.setEmphasis(type.colorStyle());
heading.setText(title);
heading.setMarginBottom(0);
heading.setMarginTop(0);
header.add(heading);
return header;
}
开发者ID:wte4j,项目名称:wte4j,代码行数:13,代码来源:MessageDialog.java
示例5: addHeading
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
private void addHeading() {
int i=0;
FlexCellFormatter cellFormatter = table.getFlexCellFormatter();
for(Software sw : softwares) {
cellFormatter.addStyleName(0, i, "header-cell wrap-long-words");
cellFormatter.setWidth(0, i, 100/softwares.size()+"%");
table.setWidget(0, i++, new Heading(HeadingSize.H4, sw.getLabel()));
}
cellFormatter.addStyleName(0, i-1, "no-border-cell");
}
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:11,代码来源:CompareView.java
示例6: getView
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
@WorkbenchPartView
public IsWidget getView() {
final FlowPanel widgets = new FlowPanel();
widgets.getElement().getStyle().setPadding(15,
Style.Unit.PX);
for (final YouTubeVideo video : VIDEOS) {
final Heading h3 = new Heading(HeadingSize.H3,
video.getName());
final Paragraph p = new Paragraph(video.getDescription());
final Button play = new Button("Play",
new ClickHandler() {
@Override
public void onClick(final ClickEvent e) {
event.fire(video);
}
});
play.setIcon(IconType.YOUTUBE_PLAY);
play.setSize(ButtonSize.SMALL);
widgets.add(h3);
widgets.add(p);
widgets.add(play);
}
return widgets;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:30,代码来源:VideoListScreen.java
示例7: FormStylePopup
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
public FormStylePopup(final Image icon,
final String title) {
add(new ModalHeader() {{
add(new Heading(HeadingSize.H4) {{
add(icon);
getElement().setInnerText(title);
}});
}});
setBody(uiBinder.createAndBindUi(this));
}
开发者ID:kiegroup,项目名称:appformer,代码行数:11,代码来源:FormStylePopup.java
示例8: init
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
@PostConstruct
public void init() {
groupList.setPageSize(PAGE_SIZE);
groupList.setEmptyEntitiesText(UsersManagementWidgetsConstants.INSTANCE.userHasNoGroups());
groupList.setEntityTitleSize(HeadingSize.H5);
view.configure(groupList.view);
}
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:UserGroupsExplorer.java
示例9: add
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
View add(final int index,
final String identifier,
final String title,
final HeadingSize titleSize,
final boolean canRead,
final boolean canRemove,
final boolean canSelect,
final boolean isSelected);
开发者ID:kiegroup,项目名称:appformer,代码行数:9,代码来源:EntitiesList.java
示例10: testClear
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
@Test
public void testClear() throws Exception {
presenter.callback = mock(EntitiesList.Callback.class);
presenter.paginationConstraints = mock(EntitiesList.PaginationConstraints.class);
presenter.totalPages = 10;
presenter.emptyEntitiesText = "empty";
presenter.clear();
assertNull(presenter.callback);
assertNull(presenter.paginationConstraints);
assertEquals(presenter.totalPages,
-1);
assertNull(presenter.emptyEntitiesText);
verify(view,
times(0)).configure(anyString(),
any(EntitiesList.PaginationConstraints.class));
verify(view,
times(0)).add(anyInt(),
anyString(),
anyString(),
any(HeadingSize.class),
anyBoolean(),
anyBoolean(),
anyBoolean(),
anyBoolean());
verify(view,
times(1)).clear();
}
开发者ID:kiegroup,项目名称:appformer,代码行数:28,代码来源:EntitiesListTest.java
示例11: WorkItemDefinitionElementsBrowser
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
public WorkItemDefinitionElementsBrowser() {
final Heading label = new Heading( HeadingSize.H4, WorkItemsEditorConstants.INSTANCE.BrowserTitle() );
label.getElement().getStyle().setTextAlign( Style.TextAlign.CENTER );
label.addStyleName( ColumnSize.MD_12.getCssName() );
container.add( new Row() {{
add( label );
}} );
container.add( new Row() {{
add( elements );
}} );
//Images
container.add( new Row() {{
add( imagesList );
}} );
imagesList.setVisibleItemCount( 1 );
imagesList.setSelectedIndex( 0 );
imagesList.addChangeHandler( new ChangeHandler() {
public void onChange( ChangeEvent event ) {
elementSelected( imagesList.getItemText( imagesList.getSelectedIndex() ),
imagesList.getValue( imagesList.getSelectedIndex() ) );
}
} );
initWidget( container );
}
开发者ID:kiegroup,项目名称:drools-wb,代码行数:29,代码来源:WorkItemDefinitionElementsBrowser.java
示例12: init
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
@PostConstruct
public void init() {
mainPanel.add(emptyViewPanel);
mainPanel.add(screenViewPanel);
mainPanel.setHeight("100%");
this.emptyViewPanel.setHeight("100%");
this.emptyViewPanel.getElement().getStyle().setTextAlign(Style.TextAlign.CENTER);
this.screenViewPanel.setHeight("100%");
this.emptyViewPanel.add(new Heading(HeadingSize.H5,
EMPTY_TEXT));
showEmptySession();
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:13,代码来源:SessionScreenViewImpl.java
示例13: setupRootGallery
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
private void setupRootGallery() {
galleryRoot = new Div();
galleryRoot.getElement().setId("blueimp-gallery");
galleryRoot.getElement().setClassName("blueimp-gallery");
galleryRoot.getElement().setAttribute("data-use-bootstrap-modal", "false");
Div slides = new Div();
slides.getElement().setClassName("slides");
galleryRoot.add(slides);
title = new Heading(HeadingSize.H3);
title.getElement().setClassName("title");
galleryRoot.add(title);
prev = new Anchor("");
prev.getElement().setClassName("prev");
prev.setIcon(IconType.CARET_LEFT);
galleryRoot.add(prev);
next = new Anchor("");
next.getElement().setClassName("next");
next.setIcon(IconType.CARET_RIGHT);
galleryRoot.add(next);
close = new Anchor("");
close.getElement().setClassName("close");
close.setIcon(IconType.CLOSE);
galleryRoot.add(close);
indicator = new OrderedList();
indicator.getElement().setClassName("indicator");
galleryRoot.add(indicator);
}
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3-extras,代码行数:34,代码来源:Gallery.java
示例14: setEntityTitleSize
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
public void setEntityTitleSize(HeadingSize headingSize) {
this.headingSize = headingSize;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:4,代码来源:EntitiesList.java
示例15: createTitle
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
private void createTitle(String titleString) {
title = new Heading(HeadingSize.H3,
titleString);
}
开发者ID:kiegroup,项目名称:appformer,代码行数:5,代码来源:DocksExpandedBar.java
示例16: show
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
public void show() {
mainPanel.add(new Heading(HeadingSize.H6,
"No diagram in use"));
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:5,代码来源:NoCanvasView.java
示例17: init
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
private void init() {
add(new Heading(HeadingSize.H1,
"Welcome to Stunner!"));
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:5,代码来源:WelcomeScreen.java
示例18: Heading
import org.gwtbootstrap3.client.ui.constants.HeadingSize; //导入依赖的package包/类
/**
* Creates a Heading with the passed in size.
*
* @param size size of the heading
*/
@UiConstructor
public Heading(final HeadingSize size) {
setElement(Document.get().createHElement(size.getHeadingSize()));
}
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:10,代码来源:Heading.java
注:本文中的org.gwtbootstrap3.client.ui.constants.HeadingSize类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论