Package open.dolphin.table

Examples of open.dolphin.table.IndentTableCellRenderer


        Class[] classes = ClientContext.getClassArray("labotestImport.classNames");
        int[] columnWidth = {100,50,100,100,100,80,100};
        int rowHeight = ClientContext.getInt("labotestImport.rowHeight");
        laboListTable = new ObjectListTable(columnNames, startNumRows, methodNames, classes);
        laboListTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        laboListTable.getTable().setDefaultRenderer(Object.class, new IndentTableCellRenderer());
        // カラム幅を変更する
        for (int i = 0; i < columnWidth.length; i++) {
            TableColumn column = laboListTable.getColumnModel().getColumn(i);
            column.setPreferredWidth(columnWidth[i]);
            if (i == 1) { // 性別の幅は不変にする
View Full Code Here


                column.setMinWidth(COLUMN_WIDTH[i]);
            }
        }

        // レンダラを設定する
        view.getTable().setDefaultRenderer(Object.class, new IndentTableCellRenderer(7));
       
        // 日付を設定する
        String formatStr = "yyyy-M-d (EEE)";
        SimpleDateFormat sdf = new SimpleDateFormat(formatStr);
        view.getDateLbl().setText(sdf.format(new Date()));
View Full Code Here

       
        // isReadOnly対応
        tf.setEnabled(!context.isReadOnly());

        // 奇数偶数レンダラを設定する
        view.getTable().setDefaultRenderer(Object.class, new IndentTableCellRenderer(IndentTableCellRenderer.NARROW));

        // 文書種別(コンテントタイプ) ComboBox を生成する
        contentObject = new NameValuePair[2];
        contentObject[0] = new NameValuePair("カルテ", "karte");
        // contentObject[1] = new NameValuePair("紹介状", "letter");
View Full Code Here

        table.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      
        // レンダラを設定する
//pns   view.getTable().setDefaultRenderer(Object.class, new OddEvenRowRenderer());
        table.setDefaultRenderer(Object.class,
                new IndentTableCellRenderer(IndentTableCellRenderer.NARROW, IndentTableCellRenderer.SMALL_FONT));
        // 表の高さ
        table.setRowHeight(GUIConst.DEFAULT_TABLE_ROW_HEIGHT);
        // コラム幅
        table.getColumnModel().getColumn(0).setMinWidth(120);
        table.getColumnModel().getColumn(1).setMaxWidth(3);
View Full Code Here

        // 身長体重テーブルを生成する
        tableModel = new ObjectReflectTableModel(columnNames, startNumRows, methodNames, null);
        view.getTable().setModel(tableModel);
//pns   view.getTable().setDefaultRenderer(Object.class, new OddEvenRowRenderer());
        view.getTable().setRowHeight(GUIConst.DEFAULT_TABLE_ROW_HEIGHT);
        view.getTable().setDefaultRenderer(Object.class, new IndentTableCellRenderer(IndentTableCellRenderer.NARROW));
        view.getTable().getColumnModel().getColumn(2).setCellRenderer(new BMIRenderer());
        view.getTable().getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
       
        // 列幅を調整する カット&トライ
        int[] cellWidth = new int[]{50,50,50,110};
View Full Code Here

TOP

Related Classes of open.dolphin.table.IndentTableCellRenderer

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.