Package de.ailis.xadrian.dialogs

Examples of de.ailis.xadrian.dialogs.SelectSectorDialog


     * @return The select sector dialog.
     */
    public synchronized SelectSectorDialog getSelectSectorDialog()
    {
        if (this.selectSectorDialog == null)
            this.selectSectorDialog = new SelectSectorDialog(this);
        return this.selectSectorDialog;
    }
View Full Code Here


     */
    @Override
    public void actionPerformed(final ActionEvent e)
    {
        final Sector sector = this.sectorProvider.getSector();
        final SelectSectorDialog dialog =
            this.gameProvider.getGame().getSelectSectorDialog();
        dialog.setSelected(sector);
        if (dialog.open() == Result.OK)
            this.sectorProvider.setSector(dialog.getSelected());
    }
View Full Code Here

     * Sets the sector.
     */
    @Override
    public void changeSector()
    {
        final SelectSectorDialog dialog =
            this.complex.getGame().getSelectSectorDialog();
        dialog.setSelected(this.complex.getSector());
        if (dialog.open() == Result.OK)
        {
            this.complex.setSector(dialog.getSelected());
            doChange();
            redraw();
        }
    }
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.dialogs.SelectSectorDialog

Copyright © 2018 www.massapicom. 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.