📄 slidefactory.java
字号:
// EDITOR NOTE: Please set number of columns to 100 in ur editor.package com.openwave.mms.content;/** * This class creates concrete implementation objects for the * <code>Slide</code> interface. */public class SlideFactory { /** * Private constructor to make sure that no one else can create instances * of this class. This class must be a singleton and clients should get * instances by calling the static getInstance method. */ private SlideFactory() { } /** * Returns an instance of this class. * * @return An instance of this class. */ public static SlideFactory getInstance() { return factory; } /** * Obtains a reference to a concrete implementation of the * <code>Slide</code> interface. */ public Slide newSlide() { return new SlideImpl(); } private static SlideFactory factory = new SlideFactory();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -