Examples of ButtonCellEditor


Examples of DisplayProject.table.ButtonCellEditor

            qq_ArrayTesterArray_Gender_Column.setHeaderValue("Column 6");
            qq_ArrayTesterArray_Gender_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_Gender_Column);

            // ValidateButton converted from qqds_PushButton
            ArrayColumn qq_ArrayTesterArray_ValidateButton_Column = new ArrayColumn("ValidateButton", 7, 48, new ButtonCellRenderer(getqq_ArrayTesterArray_ValidateButton()), new ButtonCellEditor(getqq_ArrayTesterArray_ValidateButton()), true);
            qq_ArrayTesterArray_ValidateButton_Column.setHeaderValue("Column 5");
            qq_ArrayTesterArray_ValidateButton_Column.setVisible(true);
            qq_ArrayTester.addColumn(qq_ArrayTesterArray_ValidateButton_Column);

            //  === End column model ===
View Full Code Here

Examples of DisplayProject.table.ButtonCellEditor

            qq_aList1Array_aCheckBox_Column.setHeaderValue("Column 8");
            qq_aList1Array_aCheckBox_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aCheckBox_Column);

            // aPushButton converted from qqds_PushButton
            ArrayColumn qq_aList1Array_aPushButton_Column = new ArrayColumn("aPushButton", 7, 47, new ButtonCellRenderer(getqq_aList1Array_aPushButton()), new ButtonCellEditor(getqq_aList1Array_aPushButton()), true);
            qq_aList1Array_aPushButton_Column.setHeaderValue("Column 9");
            qq_aList1Array_aPushButton_Column.setVisible(true);
            qq_aList1.addColumn(qq_aList1Array_aPushButton_Column);

            //  converted from qqds_PictureGraphic
View Full Code Here

Examples of DisplayProject.table.ButtonCellEditor

            qq_aListArray_aCheckBox_Column.setHeaderValue("Column 8");
            qq_aListArray_aCheckBox_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aCheckBox_Column);

            // aPushButton converted from qqds_PushButton
            ArrayColumn qq_aListArray_aPushButton_Column = new ArrayColumn("aPushButton", 7, 47, new ButtonCellRenderer(getqq_aListArray_aPushButton()), new ButtonCellEditor(getqq_aListArray_aPushButton()), true);
            qq_aListArray_aPushButton_Column.setHeaderValue("Column 9");
            qq_aListArray_aPushButton_Column.setVisible(true);
            qq_aList.addColumn(qq_aListArray_aPushButton_Column);

            //  converted from qqds_PictureGraphic
View Full Code Here

Examples of DisplayProject.table.ButtonCellEditor

            qq_things.setVisibleRows(3);

            //  === Column model setup ===

            // pb converted from qqds_PictureButton
            ArrayColumn qq_thingsArray_pb_Column = new ArrayColumn("pb", 0, 40, new ButtonCellRenderer(getqq_thingsArray_pb()), new ButtonCellEditor(getqq_thingsArray_pb()), true);
            qq_thingsArray_pb_Column.setHeaderValue("pb");
            qq_thingsArray_pb_Column.setVisible(true);
            qq_things.addColumn(qq_thingsArray_pb_Column);

            // name converted from qqds_DataField
View Full Code Here

Examples of DisplayProject.table.ButtonCellEditor

            qq_peopleArray_Department_Column.setHeaderValue("Department");
            qq_peopleArray_Department_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Department_Column);

            // but converted from qqds_PushButton
            ArrayColumn qq_peopleArray_but_Column = new ArrayColumn("but", 3, 30, new ButtonCellRenderer(getqq_peopleArray_but()), new ButtonCellEditor(getqq_peopleArray_but()), true);
            qq_peopleArray_but_Column.setHeaderValue(" ");
            qq_peopleArray_but_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_but_Column);

            // Skill converted from qqds_FillInField
View Full Code Here

Examples of jmt.framework.gui.table.editors.ButtonCellEditor

    //returns a component to be contained inside a table column(or cell)
    @Override
    public TableCellRenderer getCellRenderer(int row, int column) {
      // Delete buttons
      if (column == 5 && row > 0) {
        return new ButtonCellEditor(deleteButton);
      } else if (column == 5 && row == 0) {
        return getDefaultRenderer(String.class);
      } else if (column == 2) {
        return ComboBoxCellEditor.getRendererInstance();
      } else {
View Full Code Here

Examples of jmt.framework.gui.table.editors.ButtonCellEditor

    @Override
    public TableCellEditor getCellEditor(int row, int column) {
      if (column == 2) {
        return distributionEditor;
      } else if (column == 5) {
        return new ButtonCellEditor(new JButton(deleteRange));
      } else {
        return super.getCellEditor(row, column);
      }
    }
View Full Code Here

Examples of jmt.framework.gui.table.editors.ButtonCellEditor

        return comboEditor.getRenderer();
      } else if (column == 5) {
        /*if distribution column contains null value, no editor must be displayed,
        as this class is a closed one (e.g. described by population)*/
        if (getValueAt(row, column - 1) != null) {
          return new ButtonCellEditor(editDistributionButton);
        } else {
          return getDefaultRenderer(String.class);
        }
      }
      //Addition of column that contains delete buttons
      if (column == 6) {
        return new ButtonCellEditor(deleteButton);
      } else {
        return getDefaultRenderer(getModel().getColumnClass(column));
      }
    }
View Full Code Here

Examples of jmt.framework.gui.table.editors.ButtonCellEditor

    @Override
    public TableCellEditor getCellEditor(int row, int column) {
      if (column == 1) {
        return comboEditor.getEditor(classTypes);
      } else if (column == 5 && getValueAt(row, column - 1) != null) {
        return new ButtonCellEditor(new JButton(editDistribution));
      } else if (column == 6) {
        return new ButtonCellEditor(new JButton(deleteClass));
      } else {
        return super.getCellEditor(row, column);
      }
    }
View Full Code Here

Examples of jmt.framework.gui.table.editors.ButtonCellEditor

     */
    public StationTable() {
      super(new StationTableModel());
      setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      delete.setFocusable(false);
      deleteRenderer = new ButtonCellEditor(delete);
      getColumnModel().getColumn(1).setMaxWidth(ROW_HEIGHT);
      getColumnModel().setColumnSelectionAllowed(false);
      setRowHeight(ROW_HEIGHT);
    }
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.