public int getIntrinsicHeight() { return getHeight(); }
public int getIntrinsicWidth() { return getWidth(); }
protected void initDimensions(LayoutContext c, BlockBox box, int cssWidth, int cssHeight) { if (cssWidth != -1) { setWidth(cssWidth); } else { if (cssHeight != -1) { setWidth(cssHeight); } else { setWidth((int) (box.getStyle().getFont(c).size * FONT_SIZE_ADJUSTMENT)); } } if (cssHeight != -1) { setHeight(cssHeight); } else { if (cssWidth != -1) { setHeight(cssWidth); } else { setHeight((int) (box.getStyle().getFont(c).size * FONT_SIZE_ADJUSTMENT)); } } }
protected String getFieldName(ITextOutputDevice outputDevice, Element e) { if (_fieldName == null) { String result = e.getAttribute("name"); if (result.equals("")) { _fieldName = getFieldType() + outputDevice.getNextFormFieldIndex(); } else { _fieldName = result; } } return _fieldName; }
public void detach(LayoutContext c) { super.detach(c); _factory.remove(_box.getElement()); }
protected void initDimensions(LayoutContext c, BlockBox box, int cssWidth, int cssHeight) { if (cssWidth != -1) { setWidth(cssWidth); } else { if (cssHeight != -1) { setWidth(cssHeight); } else { setWidth((int) (box.getStyle().getFont(c).size * FONT_SIZE_ADJUSTMENT)); } } if (cssHeight != -1) { setHeight(cssHeight); } else { if (cssWidth != -1) { setHeight(cssWidth); } else { setHeight((int) (box.getStyle().getFont(c).size * FONT_SIZE_ADJUSTMENT)); } } }
protected String getFieldName(ITextOutputDevice outputDevice, Element e) { if (_fieldName == null) { String result = e.getAttribute("name"); if (Util.isNullOrEmpty(result)) { _fieldName = getFieldType() + outputDevice.getNextFormFieldIndex(); } else { _fieldName = result; } } return _fieldName; }
public void detach(LayoutContext c) { super.detach(c); _factory.remove(_box.getElement()); }
protected void initDimensions(LayoutContext c, BlockBox box, int cssWidth, int cssHeight) { if (cssWidth != -1) { setWidth(cssWidth); } else { if (cssHeight != -1) { setWidth(cssHeight); } else { setWidth((int) (box.getStyle().getFont(c).size * FONT_SIZE_ADJUSTMENT)); } } if (cssHeight != -1) { setHeight(cssHeight); } else { if (cssWidth != -1) { setHeight(cssWidth); } else { setHeight((int) (box.getStyle().getFont(c).size * FONT_SIZE_ADJUSTMENT)); } } }
protected String getFieldName(ITextOutputDevice outputDevice, Element e) { if (_fieldName == null) { String result = e.getAttribute("name"); if (Util.isNullOrEmpty(result)) { _fieldName = getFieldType() + outputDevice.getNextFormFieldIndex(); } else { _fieldName = result; } } return _fieldName; }
public void detach(LayoutContext c) { super.detach(c); _factory.remove(_box.getElement()); }
public int getIntrinsicHeight() { return getHeight(); }
public int getIntrinsicWidth() { return getWidth(); }