org.gwtbootstrap3.client.ui.Heading.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.gwtbootstrap3.client.ui.Heading.<init>()方法的一些代码示例,展示了Heading.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Heading.<init>()方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Heading
类名称:Heading
方法名:<init>

Heading.<init>介绍

[英]Creates a Heading with the passed in size.
[中]创建具有传入大小的标题。

代码示例

代码示例来源:origin: kiegroup/appformer

private void createTitle(String titleString) {
  title = new Heading(HeadingSize.H3,
            titleString);
}

代码示例来源:origin: org.uberfire/uberfire-simple-docks-client

private void createTitle(String titleString) {
  title = new Heading(HeadingSize.H3,
            titleString);
}

代码示例来源:origin: stackoverflow.com

public static void main( String[] args ) {
  List<Heading> myList = new ArrayList<Heading>();
  myList.add( new Heading( "desc1" ) );
  myList.add( new Heading( "desc2" ) );
  myList.add( new Heading( "desc1" ) );

  Map<String, List<Heading>> result = sameDescs( myList );

  for( Map.Entry<String, List<Heading>> e : result.entrySet() ) {
    System.out.println( e.getKey() + ":" + e.getValue().size() );
  }
}

代码示例来源:origin: stackoverflow.com

treeLevels[] = new Heading();

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

public void show() {
  mainPanel.add(new Heading(HeadingSize.H6,
               "No diagram in use"));
}

代码示例来源:origin: stackoverflow.com

Document myDoc = new Document();
myDoc.getBody().addEle(new Heading("Heading"));
myDoc.getBody().addEle(new Paragraph("paragraph 1")

代码示例来源:origin: org.jbpm/jbpm-console-ng-generic-client

public CalendarPicker() {
  currentDate = new Date();
  viewType = ViewType.DAY;
  calendarPanel.addStyleName( ColumnSize.MD_2.getCssName() );
  calendarPanel.addStyleName( ColumnOffset.MD_1.getCssName() );
  calendarLabel = new Heading( HeadingSize.H4 );
  iconLabel = new Heading( HeadingSize.H4 );
  iconLabel.addStyleName( ColumnSize.MD_2.getCssName() );
  iconPanel.add( iconLabel );
  controlsLabel = new Heading( HeadingSize.H4 );
  controlsPanel.add( controlsLabel );
  calendarIcon = new Anchor();
  previousButton = new Button();
  nextButton = new Button();
  todayButton = new Button();
  initWidget( mainPanel );
}

代码示例来源:origin: kiegroup/appformer

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;
}

代码示例来源:origin: org.drools/drools-wb-workitems-editor-client

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 );
}

代码示例来源:origin: kiegroup/drools-wb

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 );
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras

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);
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras

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);
}

代码示例来源:origin: kiegroup/appformer

final Heading heading = new Heading(titleSize);
heading.setText(title);
heading.addStyleName(style.entityListTitle());

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

final Heading heading = new Heading(titleSize);
heading.setText(title);
heading.addStyleName(style.entityListTitle());

相关文章