本文整理汇总了Java中com.google.gwt.dom.client.DivElement.TAG属性的典型用法代码示例。如果您正苦于以下问题:Java DivElement.TAG属性的具体用法?Java DivElement.TAG怎么用?Java DivElement.TAG使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.google.gwt.dom.client.DivElement
的用法示例。
在下文中一共展示了DivElement.TAG属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: appendEmbeddedImage
public final ItemHandle appendEmbeddedImage(
HAlignment imageAlignment,
String embeddedImageText,
String embeddedImageStyle,
String description
) {
FlowPanel outer = new FlowPanel(DivElement.TAG);
String imageAlignment1 = "text-align:center;";
if (imageAlignment == HAlignment.LEFT) {
imageAlignment1 = "text-align:left;";
} else if (imageAlignment == HAlignment.RIGHT) {
imageAlignment1 = "text-align:right;";
}
outer.getElement().setAttribute("style", "display:block;" + imageAlignment1);
FlowPanel inner = new FlowPanel(ImageElement.TAG);
inner.getElement().setAttribute("alt", description);
inner.getElement().setAttribute("src", embeddedImageText);
inner.getElement().setAttribute("style", embeddedImageStyle);
outer.add(inner);
appendAndScrollOrFocusAsAppropriate(outer);
return new ItemHandle(this, outer);
}
示例2: Carousel
public Carousel() {
super(DivElement.TAG);
this.append(this.carouselIndicators);
this.append(this.carouselInner);
this.append(this.leftButton);
this.append(this.rightButton);
StyleUtils.addStyle(this, Carousel.STYLE_CAROUSEL);
StyleUtils.addStyle(this.carouselInner, Carousel.STYLE_CAROUSEL_INNER);
StyleUtils.addStyle(this.carouselIndicators, Carousel.STYLE_CAROUSEL_INDICATORS);
StyleUtils.addStyle(this.leftButton, Carousel.STYLE_CAROUSEL_CONTROL);
StyleUtils.addStyle(this.leftButton, LeftRightType.LEFT);
StyleUtils.addStyle(this.rightButton, Carousel.STYLE_CAROUSEL_CONTROL);
StyleUtils.addStyle(this.rightButton, LeftRightType.RIGHT);
this.leftButton.addClickHandler(this);
this.rightButton.addClickHandler(this);
this.leftButton.getElement().setInnerHTML("<i class=\"icon-prev\"/>");
this.rightButton.getElement().setInnerHTML("<i class=\"icon-next\"/>");
}
示例3: appendTiledLineImage
public final void appendTiledLineImage(String srcImageText, String additionalCssStyle) {
FlowPanel outer = new FlowPanel(DivElement.TAG);
outer.getElement().setAttribute("style", additionalCssStyle + "line-height:100%;font-size:1px;width:100%;align:'center';background-image:url('"+srcImageText+"');"); //margin-bottom:6px;
FlowPanel inner = new FlowPanel(ImageElement.TAG);
inner.getElement().setAttribute("src", srcImageText);
inner.getElement().setAttribute("style", "visibility: hidden;");
outer.add(inner);
appendAndScrollOrFocusAsAppropriate(outer);
}
示例4: Alert
public Alert(String html) {
super(DivElement.TAG, html);
StyleUtils.addStyle(this, Alert.STYLE_ALERT);
StyleUtils.addStyle(this, Alert.STYLE_FADE);
StyleUtils.addStyle(this, Alert.STYLE_VISIBLE);
this.setType(Type.INFO);
}
示例5: Table
public Table() {
super(DivElement.TAG);
this.endConstruct();
this.setStriped(this.striped);
this.setHover(this.hover);
this.setCondensed(this.condensed);
}
示例6: Form
public Form(String html) {
super(DivElement.TAG, html);
StyleUtils.addStyle(this, Form.STYLE_FORM);
this.getElement().setAttribute("role", "form");
}
示例7: TabPanel
public TabPanel() {
super(DivElement.TAG);
this.endConstruct();
this.setStyle(Style.TABS);
}
示例8: InputGroup
public InputGroup() {
super(DivElement.TAG);
this.setStyle(this.style);
this.setSize(this.size);
}
示例9: Header
public Header(String html) {
super(DivElement.TAG, html);
}
示例10: TabPanelContent
public TabPanelContent() {
super(DivElement.TAG);
StyleUtils.addStyle(this, TabPanelContent.STYLE_TAB_PANE);
StyleUtils.addStyle(this, TabPanelContent.STYLE_FADE);
}
示例11: ScrollPanel
public ScrollPanel() {
super(DivElement.TAG);
}
示例12: Panel
public Panel() {
super(DivElement.TAG);
this.endConstruct();
}
示例13: CarouselItem
public CarouselItem(String html) {
super(DivElement.TAG, html);
StyleUtils.addStyle(this, CarouselItem.STYLE_CAROUSEL_ITEM);
}
示例14: OutputGroup
public OutputGroup(String html) {
super(DivElement.TAG, html);
StyleUtils.addStyle(this, EditorOutput.STYLE_CONTROL_STATIC);
}
示例15: PanelAccordion
public PanelAccordion() {
super(DivElement.TAG);
StyleUtils.addStyle(this, PanelAccordion.STYLE_PANEL_GROUP);
}