本文整理汇总了Java中org.gwtbootstrap3.client.ui.html.Span类的典型用法代码示例。如果您正苦于以下问题:Java Span类的具体用法?Java Span怎么用?Java Span使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Span类属于org.gwtbootstrap3.client.ui.html包,在下文中一共展示了Span类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FileInputButton
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
public FileInputButton() {
wrapper = new Span();
wrapper.addStyleName(Styles.BTN);
upload = new FileUpload();
upload.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
fireChanged();
}
});
wrapper.add(upload);
wrapper.addStyleName("btn-file");
initWidget(wrapper);
}
示例2: init
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
protected void init() {
buttonContent = new Span();
buttonImage = new Span();
buttonText = new Span();
solveButton.getElement().setAttribute("class", "btn btn-success");
buttonImage.getElement().setAttribute("class", "glyphicon glyphicon-play");
buttonImage.getElement().setAttribute("aria-hidden", "true");
buttonText.setHTML(new SafeHtmlBuilder()
.appendEscaped(CONSTANTS.format("AbstractRosterViewPanel.solve"))
.toSafeHtml().asString());
buttonContent.add(buttonImage);
buttonContent.add(buttonText);
solveButton.add(buttonContent);
solverObservable.addObserver(this);
}
示例3: setup
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
@PostConstruct
public void setup() {
anchor.addStyleName(Styles.DROPDOWN_TOGGLE);
anchor.addStyleName(PatternFlyStyles.NAV_ITEM_ICONIC);
anchor.setDataToggle(Toggle.DROPDOWN);
final Span userIcon = new Span();
userIcon.addStyleName("pficon");
userIcon.addStyleName("pficon-user");
anchor.add(userIcon);
anchor.add(userNameWidget);
final Span caret = new Span();
caret.addStyleName(Styles.CARET);
anchor.add(caret);
addStyleName(Styles.DROPDOWN);
add(anchor);
add(menu);
}
示例4: CarouselControl
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
public CarouselControl() {
// Anchor
this.anchorElem = Document.get().createAnchorElement();
setElement(anchorElem);
setStyleName(Styles.CAROUSEL_CONTROL);
anchorElem.setAttribute(Attributes.ROLE, BUTTON);
// Icon
icon = new Icon();
add(icon);
// Span (SR_ONLY)
span = new Span();
span.setStyleName(Styles.SR_ONLY);
add(span);
}
示例5: render
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
@Override
public void render(Context context,
Level level,
SafeHtmlBuilder sb) {
final Span icon = GWT.create(Span.class);
icon.addStyleName("glyphicon");
icon.addStyleName(getIconClass(level));
sb.appendHtmlConstant(icon.getElement().getString());
}
示例6: configureText
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
void configureText(final Button itemButton,
final String text) {
Span itemButtonText = GWT.create(Span.class);
itemButtonText.setText(text);
itemButton.insert(itemButtonText,
0);
}
示例7: initPanels
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
private void initPanels() {
pagination = new Pagination();
pager = new SimplePager();
VerticalPanel bottomWidgets = new VerticalPanel();
startDateControlScrollbar = new NativeHorizontalScrollbar();
startDateControlScrollbar.setWidth("100%");
startDateControlScrollbar.addScrollHandler((e) -> {
double pos = (startDateControlScrollbar.getHorizontalScrollPosition()
+ 0.0) /
(startDateControlScrollbar.getScrollWidth());
long secondsBetween = presenter.getHardEndDateBound().toEpochSecond(ZoneOffset.UTC) - presenter
.getHardStartDateBound()
.toEpochSecond(ZoneOffset.UTC);
presenter.setToolBox(null);
presenter.getCalendar().setDate(presenter.getHardStartDateBound().plusSeconds(Math.round(secondsBetween
* pos)));
});
daysShownRangeSlider = RangeSlider.create();
daysShownRangeSlider.setMin("1");
daysShownRangeSlider.setMax("7");
daysShownRangeSlider.setStep("1");
daysShownRangeSlider.setAttribute("orient", "vertical");
CssResources.INSTANCE.calendar().ensureInjected();
daysShownRangeSlider.setClassName(CssResources.INSTANCE.calendar().verticalSlider());
daysShownRangeSlider.setValue(Integer.toString(presenter.getDaysShown()));
Event.setEventListener(daysShownRangeSlider, (e) -> {
presenter.getCalendar().setDaysShown(Integer
.parseInt(daysShownRangeSlider.getValue()));
});
//Work around for there not being a Event.ONINPUT
Event.sinkEvents(daysShownRangeSlider, ~0);
daysShownRangeSliderContainer = new Span();
daysShownRangeSliderContainer.getElement().appendChild(daysShownRangeSlider);
sidePanel.add(daysShownRangeSliderContainer);
bottomWidgets.add(startDateControlScrollbar);
bottomWidgets.add(pagination);
bottomPanel.add(bottomWidgets);
pager.setDisplay(presenter.getPager());
pager.setPageSize(presenter.getTotalDisplayedSpotSlots());
pagination.clear();
}
示例8: FileInputGroupButton
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
public FileInputGroupButton(FileInputButton input) {
wrapper = new Span();
wrapper.setStyleName(Styles.INPUT_GROUP_BTN);
wrapper.add(input);
initWidget(wrapper);
}
示例9: createToggleBar
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
private Span createToggleBar() {
final Span span = GWT.create(Span.class);
span.addStyleName("icon-bar");
return span;
}
示例10: newBarIcon
import org.gwtbootstrap3.client.ui.html.Span; //导入依赖的package包/类
private Span newBarIcon() {
final Span span = new Span();
span.setStyleName(Styles.ICON_BAR);
return span;
}