/** * Creates a single property declaration. * @param property Property name. * @param term Property value. * @return The resulting declaration. */ protected Declaration createDeclaration(String property, Term<?> term) { Declaration d = CSSFactory.getRuleFactory().createDeclaration(); d.unlock(); d.setProperty(property); d.add(term); return d; }
Declaration decl; declaration_stack.push(new declaration_scope()); declaration_stack.peek().d = decl = rf.createDeclaration(); declaration_stack.peek().invalid = false;
Declaration decl; declaration_stack.push(new declaration_scope()); declaration_stack.peek().d = decl = rf.createDeclaration(); declaration_stack.peek().invalid = false;
((declaration_scope)declaration_stack.peek()).d = decl = rf.createDeclaration(); ((declaration_scope)declaration_stack.peek()).invalid = false;
Declaration decl; declaration_stack.push(new declaration_scope()); declaration_stack.peek().d = decl = rf.createDeclaration(); declaration_stack.peek().invalid = false;
Declaration decl; declaration_stack.push(new declaration_scope()); declaration_stack.peek().d = decl = rf.createDeclaration(); declaration_stack.peek().invalid = false;
declaration_stack.peek().d = decl = rf.createDeclaration(); declaration_stack.peek().invalid = false;
Declaration rowsDecl = (Declaration) rf.createDeclaration().unlock(); rowsDecl.setProperty("grid-template-rows"); Declaration columnsDecl = (Declaration) rf.createDeclaration().unlock(); columnsDecl.setProperty("grid-template-columns"); boolean beforeSlash = true;
Declaration templateDecl = rf.createDeclaration(d); templateDecl.setProperty("grid-template"); if (processGridTemplate(templateDecl, properties, values)) { Declaration autoFlowDecl = (Declaration) rf.createDeclaration().unlock(); autoFlowDecl.setProperty("grid-auto-flow"); Declaration templateRowsDecl = (Declaration) rf.createDeclaration().unlock(); templateRowsDecl.setProperty("grid-template-rows"); Declaration autoRowsDecl = (Declaration) rf.createDeclaration().unlock(); autoRowsDecl.setProperty("grid-auto-rows"); Declaration templateColumnsDecl = (Declaration) rf.createDeclaration().unlock(); templateColumnsDecl.setProperty("grid-template-columns"); Declaration autoColumnsDecl = (Declaration) rf.createDeclaration().unlock(); autoColumnsDecl.setProperty("grid-auto-columns");