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

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

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

Heading.addStyleName介绍

暂无

代码示例

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

/**
   * {@inheritDoc}
   */
  @Override
  protected void onAttach() {
    super.onAttach();

    // Adding styles to the heading depending on the parent
    if (getParent() != null) {
      if (getParent() instanceof LinkedGroupItem) {
        addStyleName(Styles.LIST_GROUP_ITEM_HEADING);
      } else if (getParent() instanceof PanelHeader) {
        addStyleName(Styles.PANEL_TITLE);
      } else if (getParent() instanceof MediaBody) {
        addStyleName(Styles.MEDIA_HEADING);
      }
    }
  }
}

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

/**
   * {@inheritDoc}
   */
  @Override
  protected void onAttach() {
    super.onAttach();

    // Adding styles to the heading depending on the parent
    if (getParent() != null) {
      if (getParent() instanceof LinkedGroupItem) {
        addStyleName(Styles.LIST_GROUP_ITEM_HEADING);
      } else if (getParent() instanceof PanelHeader) {
        addStyleName(Styles.PANEL_TITLE);
      } else if (getParent() instanceof MediaBody) {
        addStyleName(Styles.MEDIA_HEADING);
      }
    }
  }
}

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

private void setupCSS() {
  if (position == UberfireDockPosition.SOUTH) {
    titlePanel.addStyleName(CSS.CSS().dockExpandedContentPanelSouth());
    title.addStyleName(CSS.CSS().dockExpandedLabelSouth());
    collapse.addStyleName(CSS.CSS().dockExpandedButtonSouth());
    collapse.setIcon(IconType.CHEVRON_DOWN);
  } else if (position == UberfireDockPosition.WEST) {
    title.addStyleName(CSS.CSS().dockExpandedLabelWest());
    collapse.addStyleName(CSS.CSS().dockExpandedButtonWest());
    collapse.setIcon(IconType.CHEVRON_LEFT);
  } else if (position == UberfireDockPosition.EAST) {
    title.addStyleName(CSS.CSS().dockExpandedLabelEast());
    collapse.addStyleName(CSS.CSS().dockExpandedButtonEast());
    collapse.setIcon(IconType.CHEVRON_RIGHT);
  }
  setupDockContentSize();
}

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

private void setupCSS() {
  if (position == UberfireDockPosition.SOUTH) {
    titlePanel.addStyleName(CSS.CSS().dockExpandedContentPanelSouth());
    title.addStyleName(CSS.CSS().dockExpandedLabelSouth());
    collapse.addStyleName(CSS.CSS().dockExpandedButtonSouth());
    collapse.setIcon(IconType.CHEVRON_DOWN);
  } else if (position == UberfireDockPosition.WEST) {
    title.addStyleName(CSS.CSS().dockExpandedLabelWest());
    collapse.addStyleName(CSS.CSS().dockExpandedButtonWest());
    collapse.setIcon(IconType.CHEVRON_LEFT);
  } else if (position == UberfireDockPosition.EAST) {
    title.addStyleName(CSS.CSS().dockExpandedLabelEast());
    collapse.addStyleName(CSS.CSS().dockExpandedButtonEast());
    collapse.setIcon(IconType.CHEVRON_RIGHT);
  }
  setupDockContentSize();
}

代码示例来源: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: 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: org.uberfire/uberfire-widgets-security-management

heading.addStyleName(style.entityListTitle());
groupPanel.add(heading);

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

heading.addStyleName(style.entityListTitle());
groupPanel.add(heading);

相关文章