ph.property(CssConstants.CSS_LIST_STYLE_IMAGE_PROPERTY, lu, imp); break; case LexicalUnit.SAC_IDENT: String s = lu.getStringValue().toLowerCase().intern(); if (ListStyleTypeManager.values.get(s) != null) { ph.property(CssConstants.CSS_LIST_STYLE_TYPE_PROPERTY, lu, imp); } else if (s == CssConstants.CSS_NONE_VALUE) { ph.property(CssConstants.CSS_LIST_STYLE_IMAGE_PROPERTY, lu, imp);
public void handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp) { LexicalUnit fontStyle = NORMAL_LU; LexicalUnit fontVariant = NORMAL_LU; LexicalUnit fontWeight = NORMAL_LU; LexicalUnit lineHeight = NORMAL_LU; LexicalUnit fontFamily = FONT_FAMILY_LU; LexicalUnit fontSize; if (s.equals(CSSConstants.CSS_SMALL_CAPTION_VALUE)) { fontSize = SZ_8PT_LU; } else { fontSize = SZ_10PT_LU; } ph.property(CSSConstants.CSS_FONT_FAMILY_PROPERTY, fontFamily, imp); ph.property(CSSConstants.CSS_FONT_STYLE_PROPERTY, fontStyle, imp); ph.property(CSSConstants.CSS_FONT_VARIANT_PROPERTY, fontVariant, imp); ph.property(CSSConstants.CSS_FONT_WEIGHT_PROPERTY, fontWeight, imp); ph.property(CSSConstants.CSS_FONT_SIZE_PROPERTY, fontSize, imp); ph.property(CSSConstants.CSS_LINE_HEIGHT_PROPERTY, lineHeight, imp); }
public void handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp) { LexicalUnit fontStyle = NORMAL_LU; LexicalUnit fontVariant = NORMAL_LU; LexicalUnit fontWeight = NORMAL_LU; LexicalUnit lineHeight = NORMAL_LU; LexicalUnit fontFamily = FONT_FAMILY_LU; LexicalUnit fontSize; if (s.equals(CSSConstants.CSS_SMALL_CAPTION_VALUE)) { fontSize = SZ_8PT_LU; } else { fontSize = SZ_10PT_LU; } ph.property(CSSConstants.CSS_FONT_FAMILY_PROPERTY, fontFamily, imp); ph.property(CSSConstants.CSS_FONT_STYLE_PROPERTY, fontStyle, imp); ph.property(CSSConstants.CSS_FONT_VARIANT_PROPERTY, fontVariant, imp); ph.property(CSSConstants.CSS_FONT_WEIGHT_PROPERTY, fontWeight, imp); ph.property(CSSConstants.CSS_FONT_SIZE_PROPERTY, fontSize, imp); ph.property(CSSConstants.CSS_LINE_HEIGHT_PROPERTY, lineHeight, imp); }
ph.property(CssConstants.CSS_PADDING_LEFT_PROPERTY, first, imp); ph.property(CssConstants.CSS_PADDING_RIGHT_PROPERTY, first, imp); ph.property(CssConstants.CSS_PADDING_TOP_PROPERTY, first, imp); ph.property(CssConstants.CSS_PADDING_BOTTOM_PROPERTY, first, imp); } else { ph.property(CssConstants.CSS_PADDING_TOP_PROPERTY, first, imp); ph.property(CssConstants.CSS_PADDING_BOTTOM_PROPERTY, first, imp); ph.property(CssConstants.CSS_PADDING_LEFT_PROPERTY, second, imp); ph.property(CssConstants.CSS_PADDING_RIGHT_PROPERTY, second, imp); } else { ph.property(CssConstants.CSS_PADDING_TOP_PROPERTY, first, imp); ph.property(CssConstants.CSS_PADDING_LEFT_PROPERTY, second, imp); ph.property(CssConstants.CSS_PADDING_RIGHT_PROPERTY, second, imp); ph.property(CssConstants.CSS_PADDING_BOTTOM_PROPERTY, third, imp); } else {
ph.property(CssConstants.CSS_BORDER_LEFT_WIDTH_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_WIDTH_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_TOP_WIDTH_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_WIDTH_PROPERTY, first, imp); } else { ph.property(CssConstants.CSS_BORDER_TOP_WIDTH_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_WIDTH_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_LEFT_WIDTH_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_WIDTH_PROPERTY, second, imp); } else { ph.property(CssConstants.CSS_BORDER_TOP_WIDTH_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_LEFT_WIDTH_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_WIDTH_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_WIDTH_PROPERTY, third, imp); } else {
ph.property(CssConstants.CSS_BORDER_LEFT_STYLE_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_STYLE_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_TOP_STYLE_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_STYLE_PROPERTY, first, imp); } else { ph.property(CssConstants.CSS_BORDER_TOP_STYLE_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_STYLE_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_LEFT_STYLE_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_STYLE_PROPERTY, second, imp); } else { ph.property(CssConstants.CSS_BORDER_TOP_STYLE_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_LEFT_STYLE_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_STYLE_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_STYLE_PROPERTY, third, imp); } else {
ph.property(CssConstants.CSS_BORDER_LEFT_COLOR_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_COLOR_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_TOP_COLOR_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_COLOR_PROPERTY, first, imp); } else { ph.property(CssConstants.CSS_BORDER_TOP_COLOR_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_COLOR_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_LEFT_COLOR_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_COLOR_PROPERTY, second, imp); } else { ph.property(CssConstants.CSS_BORDER_TOP_COLOR_PROPERTY, first, imp); ph.property(CssConstants.CSS_BORDER_LEFT_COLOR_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_RIGHT_COLOR_PROPERTY, second, imp); ph.property(CssConstants.CSS_BORDER_BOTTOM_COLOR_PROPERTY, third, imp); } else {
ph.property(CssConstants.CSS_MARGIN_LEFT_PROPERTY, first, imp); ph.property(CssConstants.CSS_MARGIN_RIGHT_PROPERTY, first, imp); ph.property(CssConstants.CSS_MARGIN_TOP_PROPERTY, first, imp); ph.property(CssConstants.CSS_MARGIN_BOTTOM_PROPERTY, first, imp); } else { ph.property(CssConstants.CSS_MARGIN_TOP_PROPERTY, first, imp); ph.property(CssConstants.CSS_MARGIN_BOTTOM_PROPERTY, first, imp); ph.property(CssConstants.CSS_MARGIN_LEFT_PROPERTY, second, imp); ph.property(CssConstants.CSS_MARGIN_RIGHT_PROPERTY, second, imp); } else { ph.property(CssConstants.CSS_MARGIN_TOP_PROPERTY, first, imp); ph.property(CssConstants.CSS_MARGIN_LEFT_PROPERTY, second, imp); ph.property(CssConstants.CSS_MARGIN_RIGHT_PROPERTY, second, imp); ph.property(CssConstants.CSS_MARGIN_BOTTOM_PROPERTY, third, imp); } else {
ph.property(pname, lu, important); } catch (Exception e) { String m = e.getMessage();
ph.property(pname, lu, important); } catch (Exception e) { String m = e.getMessage();
ph.property(color, lu, imp); break; case LexicalUnit.SAC_EM: ph.property(width, lu, imp); break; case LexicalUnit.SAC_IDENT: String s = lu.getStringValue().toLowerCase().intern(); if (BorderWidthManager.values.get(s) != null) { ph.property(width, lu, imp); } else if (BorderStyleManager.values.get(s) != null) { ph.property(style, lu, imp); } else if (ColorManager.values.get(s) != null) { ph.property(color, lu, imp);
ph.property(pname, lu, important); } catch (Exception e) { String m = e.getMessage();
public void handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp) { LexicalUnit fontStyle = NORMAL_LU; LexicalUnit fontVariant = NORMAL_LU; LexicalUnit fontWeight = NORMAL_LU; LexicalUnit lineHeight = NORMAL_LU; LexicalUnit fontFamily = FONT_FAMILY_LU; LexicalUnit fontSize; if (s.equals(CSSConstants.CSS_SMALL_CAPTION_VALUE)) { fontSize = SZ_8PT_LU; } else { fontSize = SZ_10PT_LU; } ph.property(CSSConstants.CSS_FONT_FAMILY_PROPERTY, fontFamily, imp); ph.property(CSSConstants.CSS_FONT_STYLE_PROPERTY, fontStyle, imp); ph.property(CSSConstants.CSS_FONT_VARIANT_PROPERTY, fontVariant, imp); ph.property(CSSConstants.CSS_FONT_WEIGHT_PROPERTY, fontWeight, imp); ph.property(CSSConstants.CSS_FONT_SIZE_PROPERTY, fontSize, imp); ph.property(CSSConstants.CSS_LINE_HEIGHT_PROPERTY, lineHeight, imp); }
/** * Implements {@link ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)}. */ public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp) throws DOMException { ph.property(CSSConstants.CSS_MARKER_END_PROPERTY, lu, imp); ph.property(CSSConstants.CSS_MARKER_MID_PROPERTY, lu, imp); ph.property(CSSConstants.CSS_MARKER_START_PROPERTY, lu, imp); } }
/** * Implements {@link ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)}. */ public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp) throws DOMException { ph.property(CSSConstants.CSS_MARKER_END_PROPERTY, lu, imp); ph.property(CSSConstants.CSS_MARKER_MID_PROPERTY, lu, imp); ph.property(CSSConstants.CSS_MARKER_START_PROPERTY, lu, imp); } }
/** * Implements {@link ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)}. */ public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp) throws DOMException { ph.property(CSSConstants.CSS_MARKER_END_PROPERTY, lu, imp); ph.property(CSSConstants.CSS_MARKER_MID_PROPERTY, lu, imp); ph.property(CSSConstants.CSS_MARKER_START_PROPERTY, lu, imp); } }