?? compositeprimitive.java
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -