Package windows.factory

Source Code of windows.factory.WindowsFactory3

package windows.factory;

import windows.components.WindowsButton;
import windows.components.WindowsMenu;
import windows.components.WindowsSlider;
import abstraction.components.Button;
import abstraction.components.Menu;
import abstraction.components.Slider;
import abstraction.factory.GUIFactory3;



public class WindowsFactory3 extends GUIFactory3{
  private static WindowsFactory3 factory = new WindowsFactory3();
 
    public static WindowsFactory3 getInstance () {return factory;};
   
    public Button createButton(){
        return(new WindowsButton());
    }
   
    public Menu createMenu(){
        return(new WindowsMenu());
    }

  @Override
  public Slider createSlider() {
    return (new WindowsSlider());
  }
   
}
TOP

Related Classes of windows.factory.WindowsFactory3

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.