private void initWidths() { _widths = new ArrayList(_table.numEffCols()); for (int i = 0; i < _table.numEffCols(); i++) { _widths.add(new Length()); } }
private void initWidths() { _widths = new ArrayList(_table.numEffCols()); for (int i = 0; i < _table.numEffCols(); i++) { _widths.add(new Length()); } }
public Length asLength(CssContext c, CSSName cssName) { Length result = new Length(); FSDerivedValue value = valueByName(cssName); if (value instanceof LengthValue || value instanceof NumberValue) { if (value.hasAbsoluteUnit()) { result.setValue((int) value.getFloatProportionalTo(cssName, 0, c)); result.setType(Length.FIXED); } else { result.setValue((int) value.asFloat()); result.setType(Length.PERCENT); } } return result; }
public Length asLength(CssContext c, CSSName cssName) { Length result = new Length(); FSDerivedValue value = valueByName(cssName); if (value instanceof LengthValue || value instanceof NumberValue) { if (value.hasAbsoluteUnit()) { result.setValue((int) value.getFloatProportionalTo(cssName, 0, c)); result.setType(Length.FIXED); } else { result.setValue((int) value.asFloat()); result.setType(Length.PERCENT); } } return result; }
Length w = cell.getOuterStyleOrColWidth(c); if (w.value() == 0) { w = new Length(); // make it Variable layoutStruct[lastCol].setEffWidth(new Length()); allColsArePercent = false; } else { if (totalPercent > w.value() || allColsArePercent) { w = new Length(); } else { int spanMax = Math.max(maxWidth, cMaxWidth); percentMissing -= percent; if (percent > 0) { layoutStruct[pos].setEffWidth(new Length(percent, Length.PERCENT)); } else { layoutStruct[pos].setEffWidth(new Length());
Length w = cell.getOuterStyleOrColWidth(c); if (w.value() == 0) { w = new Length(); // make it Variable layoutStruct[lastCol].setEffWidth(new Length()); allColsArePercent = false; } else { if (totalPercent > w.value() || allColsArePercent) { w = new Length(); } else { int spanMax = Math.max(maxWidth, cMaxWidth); percentMissing -= percent; if (percent > 0) { layoutStruct[pos].setEffWidth(new Length(percent, Length.PERCENT)); } else { layoutStruct[pos].setEffWidth(new Length());