client.updateVariable(paintableId, "columnorder", columnOrder, false);
}
+ @Override
protected void onAttach() {
super.onAttach();
if (initialContentReceived) {
}
}
+ @Override
protected void onDetach() {
rowRequestHandler.cancel();
super.onDetach();
this.reqRows = reqRows;
}
+ @Override
public void run() {
if (client.hasActiveRequest()) {
// if client connection is busy, don't bother loading it more
/**
* Handle column reordering.
*/
+ @Override
public void onBrowserEvent(Event event) {
if (enabled && event != null) {
if (isResizing || event.getTarget() == colResizeWidget) {
super("0", "");
}
+ @Override
protected void handleCaptionEvent(Event event) {
// NOP: RowHeaders cannot be reordered
// TODO It'd be nice to reset sorting here
availableCells.put("0", new RowHeadersHeaderCell());
}
+ @Override
public void clear() {
for (Iterator iterator = availableCells.keySet().iterator(); iterator
.hasNext();) {
return visibleCells.iterator();
}
+ @Override
public boolean remove(Widget w) {
if (visibleCells.contains(w)) {
visibleCells.remove(w);
focusedSlot = -1;
}
+ @Override
public void onBrowserEvent(Event event) {
if (enabled) {
if (event.getTarget() == columnSelector) {
caption = tHead.getHeaderCell(colKey).getCaption();
}
+ @Override
public void execute() {
client.getContextMenu().hide();
// toggle selected column
/**
* Override default method to distinguish on/off columns
*/
+ @Override
public String getHTML() {
final StringBuffer buf = new StringBuffer();
if (collapsed) {
return true;
}
+ @Override
public boolean remove(Widget w) {
throw new UnsupportedOperationException();
}
+ @Override
protected void onAttach() {
super.onAttach();
setContainerHeight();
return rowHeight;
} else {
if (DOM.getChildCount(tBody) > 0) {
- rowHeight = DOM
- .getElementPropertyInt(tBody, "offsetHeight")
+ rowHeight = tBody.getParentElement().getOffsetHeight()
/ DOM.getChildCount(tBody);
} else {
return DEFAULT_ROW_HEIGHT;
return childWidgets.iterator();
}
+ @Override
public boolean remove(Widget w) {
if (childWidgets.contains(w)) {
orphan(w);
/*
* React on click that occur on content cells only
*/
+ @Override
public void onBrowserEvent(Event event) {
final Element tdOrTr = DOM.getParent(DOM.eventGetTarget(event));
if (getElement() == tdOrTr
}
+ @Override
public void setWidth(String width) {
if (this.width.equals(width)) {
return;
return contentAreaBorderHeight;
}
+ @Override
public void setHeight(String height) {
this.height = height;
super.setHeight(height);
* lost). Example ITabPanel just set contained components invisible and back
* when changing tabs.
*/
+ @Override
public void setVisible(boolean visible) {
if (isVisible() != visible) {
super.setVisible(visible);