Package ch.randelshofer.quaqua

Examples of ch.randelshofer.quaqua.SheetListener


        im.put(key, "close-window");
        dialog.getRootPane().getActionMap().put("close-window", new AbstractAction() {
            private static final long serialVersionUID = 1L;
            @Override
            public void actionPerformed(ActionEvent e) {
                JSheet.showConfirmSheet(dialog, "カルテに展開しますか?", new SheetListener(){
                    @Override
                    public void optionSelected(SheetEvent se) {
                        // 0=はい, 1=いいえ, 2=キャンセル -1=エスケープキー
                        // System.out.println("se=" + se.getOption());
                        if (se.getOption() == 0) {
View Full Code Here


     * 検索結果をファイルに書き出す
     * 複数行選択対応
     */
    public void exportSearchResult() {
        final JFileChooser fileChooser = new JFileChooser();
        MyJSheet.showSaveSheet(fileChooser, getContext().getFrame(), new SheetListener() {
            @Override
            public void optionSelected(SheetEvent e) {
                if (e.getOption() == JFileChooser.APPROVE_OPTION) {
                    File file = fileChooser.getSelectedFile();

View Full Code Here

            cc = stack;
        }
        final JButton forceEditBtn = tmpForce;
       
        MyJSheet dialog = MyJSheet.createDialog(pane, getContext().getFrame());
        dialog.addSheetListener(new SheetListener(){
            @Override
            public void optionSelected(SheetEvent se) {
                int result = se.getOption();
                if (result == 0) { // 閲覧
                    pvtModel.setState(KarteState.READ_ONLY);
View Full Code Here

        clearButton.setEnabled(false);
        clearButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                JSheet.showConfirmSheet(SwingUtilities.getWindowAncestor(table),
                        "クリアしますか?", JOptionPane.OK_CANCEL_OPTION, new SheetListener(){
                    @Override
                    public void optionSelected(SheetEvent se) {
                        // 0=はい, 1=いいえ, 2=キャンセル -1=エスケープキー
                        // System.out.println("se=" + se.getOption());
                        if (se.getOption() == 0) {
View Full Code Here

            int optionType, int messageType, Icon icon, final Object[] options, Object initialValue) {
       
        JOptionPane pane = new JOptionPane(message, messageType, optionType, icon, options, initialValue);
        pane.setInitialValue(initialValue);
        pane.selectInitialValue();
        JSheet.showSheet(pane, parentComponent, new SheetListener(){
            public void optionSelected(SheetEvent e) {
                answer = e.getOption();
            }
        });
View Full Code Here

        this.parent = parent;
        initComponent();
    }

    public void start () {
        dialog.addSheetListener(new SheetListener(){
            @Override
            public void optionSelected(SheetEvent se) {
                // 戻り値のSaveparamsを生成する
                value = new SaveParams();
View Full Code Here

        final StampTreeXmlDirector director = new StampTreeXmlDirector(builder);

//masuda    エクスポートデータ作成より前にファイル選択させる
        final JFileChooser fileChooser = new JFileChooser();
        fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);
        MyJSheet.showSaveSheet(fileChooser, context.getFrame(), new SheetListener() {
            public void optionSelected(SheetEvent e) {
                if (e.getOption() == JFileChooser.APPROVE_OPTION) {
                    final File file = fileChooser.getSelectedFile();
                    if (!file.exists() || overwriteConfirmed(file)) {
View Full Code Here

    @Action
    public void importUserStampBox() {

        final JFileChooser fileChooser = new JFileChooser();
        fileChooser.setDialogType(JFileChooser.OPEN_DIALOG);
        MyJSheet.showOpenSheet(fileChooser, context.getFrame(), new SheetListener() {
            public void optionSelected(SheetEvent e) {
                if (e.getOption() == JFileChooser.APPROVE_OPTION) {
                    final File file = fileChooser.getSelectedFile();

                    SwingWorker worker = new SwingWorker(){
View Full Code Here

        String message = "<html>" +
            "<h3>"+ ptName + " 様のカルテは他の端末で編集中です</h3>" +
            "<p><nobr>閲覧のみで、編集はできません<nobr></p></html>";

        MyJSheet.showConfirmSheet(SwingUtilities.getWindowAncestor(getUI()), message,
                JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, new SheetListener() {
            @Override
            public void optionSelected(SheetEvent se) {
                int result = se.getOption();
                if (result == 0) { // OK
                    pvtModel.setState(KarteState.READ_ONLY);
View Full Code Here

TOP

Related Classes of ch.randelshofer.quaqua.SheetListener

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.