本文整理了Java中com.google.gwt.user.client.Element.setPropertyInt()
方法的一些代码示例,展示了Element.setPropertyInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setPropertyInt()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:setPropertyInt
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates an empty dock panel.
*/
public DockPanel() {
getTable().setPropertyInt("cellSpacing", 0);
getTable().setPropertyInt("cellPadding", 0);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Set the colspan of a {@link MenuItem} or {@link MenuItemSeparator}.
*
* @param item the {@link MenuItem} or {@link MenuItemSeparator}
* @param colspan the colspan
*/
private void setItemColSpan(UIObject item, int colspan) {
item.getElement().setPropertyInt("colSpan", colspan);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets the column span for the given cell. This is the number of logical
* columns covered by the cell.
*
* @param row the cell's row
* @param column the cell's column
* @param colSpan the cell's column span
* @throws IndexOutOfBoundsException
*/
public void setColSpan(int row, int column, int colSpan) {
ensureElement(row, column).setPropertyInt("colSpan", colSpan);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Sets the row span for the given cell. This is the number of logical rows
* covered by the cell.
*
* @param row the cell's row
* @param column the cell's column
* @param rowSpan the cell's row span
* @throws IndexOutOfBoundsException
*/
public void setRowSpan(int row, int column, int rowSpan) {
ensureElement(row, column).setPropertyInt("rowSpan", rowSpan);
}
}
代码示例来源:origin: com.extjs/gxt
/**
* Sets the button's tab index.
*
* @param index the tab index
*/
@Override
public void setTabIndex(int index) {
this.tabIndex = index;
if (rendered && buttonEl != null) {
buttonEl.dom.setPropertyInt("tabIndex", index);
}
}
代码示例来源:origin: com.extjs/gxt
public void doFunction(Element elem, CompositeElement ce, int index) {
index += 1;
if (index % 2 == 0) {
elem.setPropertyInt("xmonth", (int) (5 + (Math.round(index * .5))));
} else {
elem.setPropertyInt("xmonth", (int) (Math.round((index - 1) * .5)));
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets the column span for the given cell. This is the number of logical
* columns covered by the cell.
*
* @param row the cell's row
* @param column the cell's column
* @param colSpan the cell's column span
* @throws IndexOutOfBoundsException
*/
public void setColSpan(int row, int column, int colSpan) {
ensureElement(row, column).setPropertyInt("colSpan", colSpan);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets the column span for the given cell. This is the number of logical
* columns covered by the cell.
*
* @param row the cell's row
* @param column the cell's column
* @param colSpan the cell's column span
* @throws IndexOutOfBoundsException
*/
public void setColSpan(int row, int column, int colSpan) {
ensureElement(row, column).setPropertyInt("colSpan", colSpan);
}
代码示例来源:origin: com.extjs/gxt
private void updateIndexes(int startIndex, int endIndex) {
List<Element> elems = all.getElements();
endIndex = endIndex == -1 ? elems.size() - 1 : endIndex;
for (int i = startIndex; i <= endIndex; i++) {
elems.get(i).setPropertyInt("viewIndex", i);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates an empty dock panel.
*/
public DockPanel() {
getTable().setPropertyInt("cellSpacing", 0);
getTable().setPropertyInt("cellPadding", 0);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Set the colspan of a {@link MenuItem} or {@link MenuItemSeparator}.
*
* @param item the {@link MenuItem} or {@link MenuItemSeparator}
* @param colspan the colspan
*/
private void setItemColSpan(UIObject item, int colspan) {
item.getElement().setPropertyInt("colSpan", colspan);
}
}
代码示例来源:origin: com.extjs/gxt
/**
* Sets the tab index.
*
* @param index the tab index value
*/
public void setTabIndex(int index) {
this.tabIndex = index;
if (rendered) {
getInputEl().dom.setPropertyInt("tabIndex", index);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Set the colspan of a {@link MenuItem} or {@link MenuItemSeparator}.
*
* @param item the {@link MenuItem} or {@link MenuItemSeparator}
* @param colspan the colspan
*/
private void setItemColSpan(UIObject item, int colspan) {
item.getElement().setPropertyInt("colSpan", colspan);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates an empty dock panel.
*/
public DockPanel() {
getTable().setPropertyInt("cellSpacing", 0);
getTable().setPropertyInt("cellPadding", 0);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Sets the row span for the given cell. This is the number of logical rows
* covered by the cell.
*
* @param row the cell's row
* @param column the cell's column
* @param rowSpan the cell's row span
* @throws IndexOutOfBoundsException
*/
public void setRowSpan(int row, int column, int rowSpan) {
ensureElement(row, column).setPropertyInt("rowSpan", rowSpan);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Sets the row span for the given cell. This is the number of logical rows
* covered by the cell.
*
* @param row the cell's row
* @param column the cell's column
* @param rowSpan the cell's row span
* @throws IndexOutOfBoundsException
*/
public void setRowSpan(int row, int column, int rowSpan) {
ensureElement(row, column).setPropertyInt("rowSpan", rowSpan);
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
public void clearItems() {
selectItem(null);
container.removeAllChildren();
for (UIObject item : items) {
item.getElement().setPropertyInt("colSpan", 1);
((SuggestionItem) item).setSuggestionsContainer(null);
}
items.clear();
}
代码示例来源:origin: org.geomajas/geomajas-gwt-client-impl
@Override
public void setLeft(int left) {
int r = left % MAX_COORD;
if (r != left) {
super.setLeft(r);
asWidget().getElement().setPropertyInt(LEFT_SHIFT, left - r);
} else {
super.setLeft(left);
asWidget().getElement().setPropertyInt(LEFT_SHIFT, 0);
}
updateChildPositions();
}
代码示例来源:origin: org.geomajas/geomajas-gwt-client-impl
@Override
public void setTop(int top) {
int r = top % MAX_COORD;
if (r != top) {
super.setTop(r);
asWidget().getElement().setPropertyInt(TOP_SHIFT, top - r);
} else {
super.setTop(top);
asWidget().getElement().setPropertyInt(TOP_SHIFT, 0);
}
updateChildPositions();
}
代码示例来源:origin: com.extjs/gxt
protected void onRender(Element target, int index) {
Element e = impl.getElement();
e.setPropertyInt("frameBorder", 0);
setElement(e, target, index);
addDomHandler(handler, ClickEvent.getType());
addDomHandler(handler, FocusEvent.getType());
addDomHandler(handler, BlurEvent.getType());
addDomHandler(handler, KeyUpEvent.getType());
addDomHandler(handler, KeyDownEvent.getType());
}
}
内容来源于网络,如有侵权,请联系作者删除!