private void jButtonNewPropertyActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButtonNewPropertyActionPerformed

    DefaultTableModel dtm = (DefaultTableModel) jTableProperties.getModel();

    Vector row = new Vector();
    row.addElement(0);
    row.addElement(TabStopAlignEnum.LEFT.getValue());
    dtm.addRow(row);
  } // GEN-LAST:event_jButtonNewPropertyActionPerformed
  public JRTabStopsPropertyCustomEditor(Object value, PropertyEditor editor, PropertyEnv env) {
    this.env = env;
    this.editor = editor;
    this.env.setState(PropertyEnv.STATE_NEEDS_VALIDATION);
    this.env.addPropertyChangeListener(this);

    initComponents();

    Tag[] tags =
        new Tag[] {
          new Tag(
              TabStopAlignEnum.LEFT.getValueByte(),
              I18n.getString("AbstractStyleNode.Property.Left")),
          new Tag(
              TabStopAlignEnum.CENTER.getValueByte(),
              I18n.getString("AbstractStyleNode.Property.Center")),
          new Tag(
              TabStopAlignEnum.RIGHT.getValueByte(),
              I18n.getString("AbstractStyleNode.Property.Right"))
        };

    jTableProperties.getColumnModel().getColumn(1).setCellEditor(new ComboBoxEditor(tags));

    jTableProperties.getColumnModel().getColumn(1).setCellRenderer(new ComboBoxRenderer(tags));

    DefaultListSelectionModel dlsm =
        (DefaultListSelectionModel) this.jTableProperties.getSelectionModel();
    dlsm.addListSelectionListener(
        new javax.swing.event.ListSelectionListener() {
          public void valueChanged(ListSelectionEvent e) {
            jTablePropertiesListSelectionValueChanged(e);
          }
        });

    if (value instanceof List && value != null) {
      setTabStops((List) value);
    }
  }