setStyleName(CLASSNAME);
}
+ /**
+ * Constuct base DOM-scrtucture and clean any already attached
+ * widgetwrappers from DOM.
+ */
private void createAndEmptyWrappedChildContainer() {
if (orientationMode == ORIENTATION_HORIZONTAL) {
final String structure = "<table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr></tr></tbody></table>";
updateFixedSizes();
}
+ /**
+ * While setting width, ensure that margin div is also resized properly.
+ * Furthermore, enable/disable fixed mode
+ */
public void setWidth(String width) {
super.setWidth(width);
}
}
+ /**
+ * While setting height, ensure that margin div is also resized properly.
+ * Furthermore, enable/disable fixed mode
+ */
public void setHeight(String height) {
super.setHeight(height);
// Remove unneeded attributes from each wrapper
String wh = (orientationMode == ORIENTATION_HORIZONTAL) ? "width"
: "height";
- String overflow = (orientationMode == ORIENTATION_HORIZONTAL) ? (BrowserInfo
- .get().isFF2() ? "overflow" : "overflowX")
- : "overflowY";
for (Iterator i = childWidgetWrappers.iterator(); i.hasNext();) {
Element we = ((WidgetWrapper) i.next()).getElement();
DOM.setStyleAttribute(we, wh, "");
// Set the sizes for each child
String wh = (orientationMode == ORIENTATION_HORIZONTAL) ? "width"
: "height";
- String overflow = (orientationMode == ORIENTATION_HORIZONTAL) ? (BrowserInfo
- .get().isFF2() ? "overflow" : "overflowX")
- : "overflowY";
for (Iterator i = childWidgetWrappers.iterator(); i.hasNext();) {
Element we = ((WidgetWrapper) i.next()).getElement();
final int ws = Math.round(((float) size) / (numChild--));
Util.runDescendentsLayout(this);
}
+ /** Enable/disable margic classes for the margin div when needed */
protected void handleMargins(UIDL uidl) {
margins = new MarginInfo(uidl.getIntAttribute("margins"));
setStyleName(margin, CLASSNAME + "-" + StyleConstants.MARGIN_TOP,
margins.hasLeft());
}
+ /** Parse alignments from UIDL and pass whem to correct widgetwrappers */
private void handleAlignments(UIDL uidl) {
// Component alignments as a comma separated list.
// See com.itmill.toolkit.terminal.gwt.client.ui.AlignmentInfo.java for