Package Messages

Examples of Messages.YesNoCancelMessage


        jtpCards=cards;
    }
    public void actionPerformed(ActionEvent e)
    {
        String strCardName=((CardPaneController)jtpCards.getSelectedComponent()).getCard().getName();
        YesNoCancelMessage ynmcQuestion=new YesNoCancelMessage(mwcMain, "Virtual cache", "Are you sure that you want to delete card "+strCardName+"?", false);
        ynmcQuestion.setVisible(true);
        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
            mwcMain.DeleteCard(strCardName);
        ynmcQuestion=null;
        strCardName=null;
    }
View Full Code Here


    {
        mwcHost=host;
    }
    public void actionPerformed(ActionEvent e)
    {
        YesNoCancelMessage ynmcQuestion=new YesNoCancelMessage(mwcHost, "Virtual cache", "<html>Are you sure that you want to delete database "+mwcHost.getProfile().getName()+"?<br>The data will be securely deleted without restoration possibility!</html>", false);
        ynmcQuestion.setVisible(true);
        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
        {
            Eraser er=new Eraser(mwcHost.getOpenedFile());
            if(!er.Erase())
            {
                OKMessage okm=new OKMessage(mwcHost, "Unavble to delete file!");
View Full Code Here

                fleOutput=new File(jfcExport.getSelectedFile().getAbsolutePath()+".csv");
        }
        else
        {
           
            YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
            ynmDelete.setVisible(true);
            if(ynmDelete.getResult()==YesNoCancelMessage.NO)
            {
                ynmDelete=null;
                jfcExport=null;
                return;
            }
View Full Code Here

    {
        if((prfMain==null)||(!prfMain.isModifyed()))
            return true;
        else
        {
            YesNoCancelMessage ynmcMessage=new YesNoCancelMessage(this, virtualcache.Main.ApplicationName, "<html>The file was modifyed. Would you like to save changes before exit?</html>", true);
            ynmcMessage.setVisible(true);
            if(ynmcMessage.getResult()==YesNoCancelMessage.CANCEL)
                return false;
            else if(ynmcMessage.getResult()==YesNoCancelMessage.YES)
            {
                slSave.actionPerformed(new ActionEvent(miSave, 1, "", 1));
            }
            return true;
        }
View Full Code Here

                    else
                        fwDBWriter=new FileWriter(fdCreate.getSelectedFile(), prfMain);
                }
                else
                {
                    YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
                    ynmDelete.setVisible(true);
                    if(ynmDelete.getResult()==YesNoCancelMessage.NO)
                    {
                        ynmDelete=null;
                        fdCreate=null;
                        return;
                    }
View Full Code Here

                fleOutput=new File(jfcExport.getSelectedFile().getAbsolutePath()+".csv");
        }
        else
        {
           
            YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
            ynmDelete.setVisible(true);
            if(ynmDelete.getResult()==YesNoCancelMessage.NO)
            {
                ynmDelete=null;
                jfcExport=null;
                return;
            }
View Full Code Here

    {
        if((prfMain==null)||(!prfMain.isModifyed()))
            return true;
        else
        {
            YesNoCancelMessage ynmcMessage=new YesNoCancelMessage(this, virtualcache.Main.ApplicationName, "<html>The file was modifyed. Would you like to save changes before exit?</html>", true);
            ynmcMessage.setVisible(true);
            if(ynmcMessage.getResult()==YesNoCancelMessage.CANCEL)
                return false;
            else if(ynmcMessage.getResult()==YesNoCancelMessage.YES)
            {
                slSave.actionPerformed(new ActionEvent(miSave, 1, "", 1));
            }
            return true;
        }
View Full Code Here

                    else
                        fwDBWriter=new FileWriter(fdCreate.getSelectedFile(), prfMain);
                }
                else
                {
                    YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
                    ynmDelete.setVisible(true);
                    if(ynmDelete.getResult()==YesNoCancelMessage.NO)
                    {
                        ynmDelete=null;
                        fdCreate=null;
                        return;
                    }
View Full Code Here

        jtpCards=cards;
    }
    public void actionPerformed(ActionEvent e)
    {
        String strCardName=((CardPaneController)jtpCards.getSelectedComponent()).getCard().getName();
        YesNoCancelMessage ynmcQuestion=new YesNoCancelMessage(mwcMain, "Virtual cache", "Are you sure that you want to delete card "+strCardName+"?", false);
        ynmcQuestion.setVisible(true);
        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
            mwcMain.DeleteCard(strCardName);
        ynmcQuestion=null;
        strCardName=null;
    }
View Full Code Here

                fleImage=new File(strName+".png");
                strName=null;
            }
            if(fleImage.exists())
            {
                YesNoCancelMessage ynMessage=new YesNoCancelMessage(rvcHost, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
                ynMessage.setVisible(true);
                if(ynMessage.getResult()==YesNoCancelMessage.NO)
                {
                    ynMessage=null;
                    return;
                }
                fleImage.delete();
View Full Code Here

TOP

Related Classes of Messages.YesNoCancelMessage

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.