Examples of MyDefaultCellEditor


Examples of open.dolphin.ui.MyDefaultCellEditor

       
        // CellEditor を設定する
        // NAME_COL clickCountToStart=1, IME=ON
        TableColumn column = careTable.getColumnModel().getColumn(MEMO_COLUMN);
//pns^  column.setCellEditor(new IMECellEditor(new JTextField(), 1, true));
        DefaultCellEditor ce = new MyDefaultCellEditor(new JTextField());
        ce.setClickCountToStart(Project.getPreferences().getInt("diagnosis.table.clickCountToStart", 1));
//pns$
        // Set the column width
        if (COLUMN_WIDTH != null) {
            int len = COLUMN_WIDTH.length;
            for (int i = 0; i < len; i++) {
View Full Code Here

Examples of open.dolphin.ui.MyDefaultCellEditor

       
        // タイトルカラムに IME ON を設定する
        JTextField tf = new JTextField();
        IMEControl.setImeOnIfFocused(tf);
        TableColumn column = view.getTable().getColumnModel().getColumn(1);
        column.setCellEditor(new MyDefaultCellEditor(tf));
       
        // isReadOnly対応
        tf.setEnabled(!context.isReadOnly());

        // 奇数偶数レンダラを設定する
View Full Code Here

Examples of open.dolphin.ui.MyDefaultCellEditor

        //
        pModel = new PatientInfoTableModel(patient, PATIENT_ATTRS, COLUMN_NAMES);
        pTable = new JTable(pModel);
//pns   pTable.setDefaultRenderer(Object.class, new OddEvenRowRenderer());
        TableColumn column = pTable.getColumnModel().getColumn(1);
        DefaultCellEditor de = new MyDefaultCellEditor(new JTextField());
        de.setClickCountToStart(2);
        column.setCellEditor(de);
       
        //
        // 配置する
        //
View Full Code Here

Examples of open.dolphin.ui.MyDefaultCellEditor

        for (int i = 0; i < columnWidth.length; i++) {
            TableColumn column = table.getColumnModel().getColumn(i);
           
            JTextField tf = new JTextField();
            IMEControl.setImeOffIfFocused(tf);
            DefaultCellEditor de = new MyDefaultCellEditor(tf);
            int ccts = Project.getPreferences().getInt("order.table.clickCountToStart", 1);
            de.setClickCountToStart(ccts);
            column.setCellEditor(de);
           
            // カラム幅を設定する
            column.setPreferredWidth(columnWidth[i]);
            if (i != 1) {
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.