/** * Creates an empty dock panel. */ public DockPanel() { getTable().setPropertyInt("cellSpacing", 0); getTable().setPropertyInt("cellPadding", 0); }
/** * 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); } }
/** * 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); }
/** * 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); } }
/** * 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); } }
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))); } }
/** * 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); }
/** * 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); }
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); } }
/** * Creates an empty dock panel. */ public DockPanel() { getTable().setPropertyInt("cellSpacing", 0); getTable().setPropertyInt("cellPadding", 0); }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * Creates an empty dock panel. */ public DockPanel() { getTable().setPropertyInt("cellSpacing", 0); getTable().setPropertyInt("cellPadding", 0); }
/** * 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); } }
/** * 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); } }
public void clearItems() { selectItem(null); container.removeAllChildren(); for (UIObject item : items) { item.getElement().setPropertyInt("colSpan", 1); ((SuggestionItem) item).setSuggestionsContainer(null); } items.clear(); }
@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(); }
@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(); }
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()); } }