Package de.ailis.xadrian.dialogs

Examples of de.ailis.xadrian.dialogs.SetYieldsDialog.open()


        if (factory.isMine())
        {
            final SetYieldsDialog dialog = new SetYieldsDialog(factory);
            dialog.setYields(null);
            dialog.setSector(getSector());
            if (dialog.open() == Result.OK)
            {
                setSector(dialog.getSector());
                addFactory(new ComplexFactory(this.game, factory,
                    dialog.getYields()));
                calculateBaseComplex();
View Full Code Here


    {
        final Factory mineType = this.complex.getFactory(index);
        final SetYieldsDialog dialog = new SetYieldsDialog(mineType);
        dialog.setYields(this.complex.getYields(index));
        dialog.setSector(this.complex.getSector());
        if (dialog.open() == Result.OK)
        {
            this.complex.setYields(index, dialog.getYields());
            this.complex.setSector(dialog.getSector());
            doChange();
            redraw();
View Full Code Here

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.