compositeprimitive.java

来自「考勤管理系统源码」· Java 代码 · 共 29 行

JAVA
29
字号
package com.wiley.compBooks.EJwithUML.Base.HtmlPrimitives.Layout;import com.wiley.compBooks.EJwithUML.Base.HtmlPrimitives.Core.*;import java.util.*;/** * The CompositePrimitive class concatenates multiple primitives together. */public class CompositePrimitive implements IHtmlPrimitive{  private List primitives = new ArrayList();  /** Add a primitive to this composite. */  public void addPrimitive(IHtmlPrimitive primitive)  {    this.primitives.add(primitive);  }  /** Build the content for this primitive and append it to the specified buffer.*/  public void buildContent(StringBuffer buffer)  {    Iterator iterator = primitives.iterator();    while (iterator.hasNext())    {      IHtmlPrimitive primitive = (IHtmlPrimitive) iterator.next();      primitive.buildContent(buffer);    }  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?