Package jmt.framework.gui.table.editors

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


      //BEGIN Federico Dall'Orso 8/3/2005
      //NEW
      classTypeComboBoxCell = new ComboBoxCell(CLASS_TYPENAMES);
     
      deleteButton = new JButton(deleteOneClass);
      deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);
      enableDeletes();
      rowHeader.setRowHeight(18);
      setRowHeight(18);
      //END Federico Dall'Orso 8/3/2005
View Full Code Here


      //NEW
      LD_disabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES);
      LD_enabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES_LD_ENABLED);
      //14/3/2005
      deleteButton = new JButton(deleteOneStation);
      deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);
      enableDeletes();
      rowHeader.setRowHeight(18);
      setRowHeight(18);
      //END Federico Dall'Orso
View Full Code Here

    public TableCellRenderer getCellRenderer(int row, int column) {
      if (column == 1) {
        return comboEditor.getRenderer();
      } else if (column == getColumnCount() - 1) {
        if (isCellEditable(row, column)) {
          return new ButtonCellEditor(deleteButton);
        } else {
          return new DisabledCellRenderer();
        }
      } else {
        return getDefaultRenderer(getModel().getColumnClass(column));
View Full Code Here

    @Override
    public TableCellEditor getCellEditor(int row, int column) {
      if (column == 1) {
        return comboEditor.getEditor(stationTypes);
      } else if (column == getColumnCount() - 1) {
        return new ButtonCellEditor(deleteButton);
      } else {
        return super.getCellEditor(row, column);
      }
    }
View Full Code Here

      classTypeComboBoxCell = new ComboBoxCell(CLASS_TYPENAMES);
      //todo sostituire quando saranno inserite le classi aperte
      classTypeComboBoxCell.getComboBox().setEnabled(false);

      deleteButton = new JButton(deleteOneClass);
      deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);
      enableDeletes();
      rowHeader.setRowHeight(18);
      setRowHeight(18);
      //END Federico Dall'Orso 8/3/2005
View Full Code Here

      LD_enabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES_LD_ENABLED);

      LD_enabled_StationTypeCell.getComboBox().setEnabled(false);
      //14/3/2005
      deleteButton = new JButton(deleteOneStation);
      deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);
      enableDeletes();
      rowHeader.setRowHeight(18);
      setRowHeight(18);
      //END Federico Dall'Orso
View Full Code Here

TOP

Related Classes of jmt.framework.gui.table.editors.ButtonCellEditor

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.