本文整理了Java中com.google.gwt.dom.client.Style.setPaddingTop()
方法的一些代码示例,展示了Style.setPaddingTop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Style.setPaddingTop()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Style
类名称:Style
方法名:setPaddingTop
[英]Set the padding-top css property.
[中]设置padding top css属性。
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new CtlSchemaReferenceBox.
*/
public CtlSchemaReferenceBox() {
fqnReferenceBox = new FqnReferenceBox(Utils.constants.schemaReferencePrompt());
fqnReferenceBox.setWidth("100%");
add(fqnReferenceBox);
this.setCellWidth(fqnReferenceBox, "100%");
versionsBox = new IntegerListBox();
versionsBox.setWidth("60px");
versionsBox.setHeight("100%");
versionsBox.getElement().getStyle().setPaddingTop(2, Unit.PX);
versionsBox.getElement().getStyle().setPaddingBottom(1, Unit.PX);
versionsBox.getElement().getStyle().setMarginLeft(6, Unit.PX);
add(versionsBox);
fqnReferenceBox.addValueChangeHandler(new ValueChangeHandler<FqnKey>() {
@Override
public void onValueChange(ValueChangeEvent<FqnKey> event) {
updateValueByFqnKeyAndVersion(event.getValue(), null);
}
});
versionsBox.addValueChangeHandler(new ValueChangeHandler<Integer>() {
@Override
public void onValueChange(ValueChangeEvent<Integer> event) {
updateValueByFqnKeyAndVersion(fqnReferenceBox.getValue(), event.getValue());
}
});
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public StylesBuilder paddingTop(double value, Unit unit) {
delegate.assertCanAddStyleProperty().setPaddingTop(value, unit);
return this;
}
代码示例来源:origin: kaaproject/kaa
backButton.getElement().getStyle().setPaddingTop(25, Unit.PX);
backButton.getElement().getStyle().setPaddingBottom(25, Unit.PX);
firstRowPanel.setHeight("45px");
secondRowPanel.setHeight("45px");
topPanel.setHeight("105px");
topPanel.getElement().getStyle().setPaddingTop(10, Unit.PX);
updateNorthSize(185);
} else {
代码示例来源:origin: kaaproject/kaa
detailsTable.setWidget(6, 0, ctlSwitchPanel);
detailsTable.getFlexCellFormatter().setColSpan(6, 0, 2);
ctlSwitchPanel.getElement().getStyle().setPaddingTop(10, Unit.PX);
ctlSwitchPanel.getElement().getStyle().setPaddingBottom(10, Unit.PX);
existingCtlButton = new ToggleButton(Utils.constants.selectExistingType());
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
/**
* {@inheritDoc}
*/
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
/**
* {@inheritDoc}
*/
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public StylesBuilder paddingTop(double value, Unit unit) {
delegate.assertCanAddStyleProperty().setPaddingTop(value, unit);
return this;
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public StylesBuilder paddingTop(double value, Unit unit) {
delegate.assertCanAddStyleProperty().setPaddingTop(value, unit);
return this;
}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
@Override
public void setPaddingTop(final double padding) {
getElement().getStyle().setPaddingTop(padding, Style.Unit.PX);
}
代码示例来源:origin: gwtbootstrap/gwt-bootstrap
private void setStyle() {
Style style = getElement().getStyle();
style.setPaddingTop(8, Unit.PX);
style.setPaddingBottom(8, Unit.PX);
style.setPaddingLeft(0, Unit.PX);
style.setPaddingRight(0, Unit.PX);
}
代码示例来源:origin: kiegroup/appformer
protected void adjustChartSize(Chart chart) {
int chartWidth = width-marginLeft;
int chartHeight = height-marginTop;
chart.getElement().getStyle().setPaddingTop(marginTop, Style.Unit.PX);
chart.getElement().getStyle().setPaddingLeft(marginLeft, Style.Unit.PX);
chart.setPixelWidth(chartWidth);
chart.setPixelHeight(chartHeight);
}
代码示例来源:origin: org.geomajas/geomajas-client-gwt2-example-base
public void setTitle(String title) {
Element h2 = DOM.createElement("h2");
h2.setInnerHTML(title);
h2.getStyle().setMarginBottom(5, Style.Unit.PX);
h2.getStyle().setMarginLeft(15, Style.Unit.PX);
h2.getStyle().setPaddingTop(5, Style.Unit.PX);
descriptionElement.getStyle().setPaddingTop(0, Style.Unit.PX);
descriptionElement.getParentElement().insertFirst(h2);
}
代码示例来源:origin: fr.lteconsulting/hexa.core
public void addSection( String text )
{
int row = table.getRowCount();
table.setText( row, 0, text );
table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP );
table.getCellFormatter().getElement( row, 0 ).setAttribute( "colSpan", "2" );
table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingTop( 25, Unit.PX );
table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingBottom( 10, Unit.PX );
}
代码示例来源:origin: fr.lteconsulting/hexa.core
public void addHTMLSection( String html )
{
int row = table.getRowCount();
table.setHTML( row, 0, html );
table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP );
table.getCellFormatter().getElement( row, 0 ).setAttribute( "colSpan", "2" );
table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingTop( 25, Unit.PX );
table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingBottom( 10, Unit.PX );
}
代码示例来源:origin: ltearno/hexa.tools
public void addSection( String text )
{
int row = table.getRowCount();
table.setText( row, 0, text );
table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP );
table.getCellFormatter().getElement( row, 0 ).setAttribute( "colSpan", "2" );
table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingTop( 25, Unit.PX );
table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingBottom( 10, Unit.PX );
}
内容来源于网络,如有侵权,请联系作者删除!