Package osx.factory

Source Code of osx.factory.OSXFactory2

package osx.factory;

import osx.components.OSXButton;
import osx.components.OSXMenu;
import abstraction.components.Button;
import abstraction.components.Menu;
import abstraction.factory.GUIFactory2;

public class OSXFactory2 extends GUIFactory2 {
  private static OSXFactory2 factory = new OSXFactory2();

  public static OSXFactory2 getInstance() {
    return factory;
  };

  public Button createButton() {
    return (new OSXButton());
  }

  public Menu createMenu() {
    return (new OSXMenu());
  }

}
TOP

Related Classes of osx.factory.OSXFactory2

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.