Examples of CmdArgs


Examples of jp.go.aist.sot.client.common.CmdArgs

    public void importChanges() {
        Log.debug(CLASS_NAME, "push import");
        if (importCmd != null) {
            try {
                importCmd.exec(new CmdArgs(new Object[] {
                    super.certSelectType
                }));
            } catch (SignOnException e) {
                Log.error(CLASS_NAME, "", e);
            }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

    public void removeChanges(String alias, int index) {
        Log.debug(CLASS_NAME, "push remove");       
        if (removeCmd != null) {
            try {
                removeCmd.exec(new CmdArgs(new Object[] {
                    super.certSelectType, alias, new Integer(index)
                }));
            } catch (SignOnException e) {
                Log.error(CLASS_NAME, "", e);
            }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

    public void detailsChanges(String alias, int index) {
        Log.debug(CLASS_NAME, "push details");
        if (detailCmd != null) {
            try {
                detailCmd.exec(new CmdArgs(new Object[] {
                    super.certSelectType, alias, new Integer(index)                   
                }));
            } catch (SignOnException e) {
                Log.error(CLASS_NAME, "", e);
            }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

        try {
            int type = chooser.showOpenDialog(getParent());

            if (type == JFileChooser.APPROVE_OPTION) {
                if (openCmd != null) {
                    openCmd.exec(new CmdArgs(new Object[] {
                        chooser.getSelectedFile().toString()
                    }));
                }
            } else {
                if (cancelCmd != null) {
                    cancelCmd.exec(new CmdArgs(new Object[] {}));
                }
            }
            chooser.setSelectedFile(null);
        } catch (Exception e) {
            Log.error(CLASS_NAME, "", e);
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

        try {
            if (ret == 0) {
                if (okCmd != null) {
                    char[] pw = passwdField.getPassword();

                    okCmd.exec(new CmdArgs(new Object[] { pw }));
                    for (int i = 0; i < pw.length; i++) {
                        pw[i] = ' ';
                    }
                    pw = null;
                }
            } else {
                if (cancelCmd != null) {
                    cancelCmd.exec(new CmdArgs(new Object[] {}));
                }
            }
        } catch (Exception e) {
            Log.error(getClass().getName(), "", e);
        }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

                JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null,
                options, mh.getMessage("no"));
        try {
            if (result == JOptionPane.OK_OPTION) {
                if (okCmd != null) {
                    okCmd.exec(new CmdArgs(new Object[] {}));
                }
            } else {
                if (cancelCmd != null) {
                    cancelCmd.exec(new CmdArgs(new Object[] {}));
                }
            }
        } catch (Exception e) {
            Log.error(getClass().getName(), "", e);
        }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

        if (ret == JOptionPane.OK_OPTION) {
            if (okCmd != null) {
                try {
                    char[] pw = passwdField.getPassword();

                    okCmd.exec(new CmdArgs(new Object[] { pw }));
                    for (int i = 0; i < pw.length; i++) {
                        pw[i] = '\0';
                    }
                } catch (Exception e) {
                    Log.error(getClass().getName(), "", e);
                }
            }
        } else {
            if (cancelCmd != null) {
                try {
                    cancelCmd.exec(new CmdArgs(new Object[] {}));
                } catch (Exception e) {
                    Log.error(getClass().getName(), "", e);
                }
            }
        }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

            if (okCmd != null) {
                try {
                    char[] pw1 = passwdField1.getPassword();
                    char[] pw2 = passwdField2.getPassword();

                    okCmd.exec(new CmdArgs(new Object[] { pw1, pw2 }));
                } catch (Exception e) {
                    Log.error(CLASS_NAME, "", e);
                }
            }
        } else {
            if (cancelCmd != null) {
                try {
                    cancelCmd.exec(new CmdArgs(new Object[] {}));
                } catch (Exception e) {
                    Log.error(CLASS_NAME, "", e);
                }
            }
        }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

        this.cmd = cmd;
    }

    public void actionPerformed(ActionEvent ev) {
        try {
            cmd.exec(new CmdArgs(new Object[] { ev}));
        } catch (SignOnException e) {
            Log.error(getClass().getName(), "", e);
        }
    }
View Full Code Here

Examples of jp.go.aist.sot.client.common.CmdArgs

   
    /* display button for LoginWindow */
    public void openURLChanges(String host) {
        try {
            if (openURLCmd != null) {
                openURLCmd.exec(new CmdArgs(new Object[] { host}));
            }
        } catch (SignOnException e) {
            Log.error(getClass().getName(), "", e);
        }
    }
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.