Package xgenerator.ui.swing

Examples of xgenerator.ui.swing.MetadataTable.revalidate()


    int selectedRow = metadataTable.getSelectedRow();
   
    Object comments = metadataTableModel.getValueAt(selectedRow, MetadataTableModel.COMMENTS_INDEX);
   
    metadataTableModel.setValueAt(comments, selectedRow, MetadataTableModel.DISPLAY_NAME_INDEX);
    metadataTable.revalidate();
    metadataTable.updateUI();
  }
 
  /**
   * <p>
 
View Full Code Here


    for (int i = 0; i < metadataTableModel.getRowCount(); i++) {
      Object comments = metadataTableModel.getValueAt(i, MetadataTableModel.COMMENTS_INDEX);
      metadataTableModel.setValueAt(comments, i, MetadataTableModel.DISPLAY_NAME_INDEX);
    }

    metadataTable.revalidate();
    metadataTable.updateUI();
  }
 
  /**
   * <p>
 
View Full Code Here

     
      int rowAbove = selectedRow;
      //metadataTableModel.insertRow(rowAbove, metadataTableModel.mapRowData(tableColumnMetadataBean));
      //metadataTableModel.insertRowEditable(rowAbove);
      metadataTableModel.insertNewRow(rowAbove);
      metadataTable.revalidate();
      metadataTable.updateUI();
    } catch (Exception ex) {
      ex.printStackTrace();
      JOptionPane.showMessageDialog(ui, "插入行失败!");
    }
View Full Code Here

     
      int rowBelow = selectedRow + 1;
      //metadataTableModel.insertRow(rowBelowIndex, metadataTableModel.mapRowData(tableColumnMetadataBean));
      //metadataTableModel.insertRowEditable(rowBelowIndex);
      metadataTableModel.insertNewRow(rowBelow);
      metadataTable.revalidate();
      metadataTable.updateUI();
    } catch (Exception ex) {
      ex.printStackTrace();
      JOptionPane.showMessageDialog(ui, "插入行失败!");
    }
View Full Code Here

      int lastRow = metadataTable.getRowCount();
      //metadataTableModel.insertRow(lastRowIndex, metadataTableModel.mapRow(tableColumnMetadataBean));
      //metadataTableModel.addRow(metadataTableModel.mapRowData(tableColumnMetadataBean));
      //metadataTableModel.insertRowEditable(lastRowIndex);
      metadataTableModel.insertNewRow(lastRow);
      metadataTable.revalidate();
      metadataTable.updateUI();
    } catch (Exception ex) {
      ex.printStackTrace();
      JOptionPane.showMessageDialog(ui, "插入行失败!");
    }
View Full Code Here

     
      //metadataTableModel.removeRow(selectedRow);
      //metadataTableModel.removeRowEditable(selectedRow);
      //metadataTableModel.removeOneRow(selectedRow);
      metadataTableModel.removeRow(selectedRow);
      metadataTable.revalidate();
      metadataTable.updateUI();
      JOptionPane.showMessageDialog(ui, "删除行成功!");
    } catch (Exception ex) {
      ex.printStackTrace();
      JOptionPane.showMessageDialog(ui, "删除行失败!");
View Full Code Here

//      metadataTable.setModel(metadataTableModel); //在这里metadataTableModel没有变
//      metadataTable.setColumnModel(metadataTable.setPreferredTableColumnStyle());
     
      ModelMetadata modelMetadata = metadataTableModel.updateDataVector(dataSourceName, tableName);
      metadataTable.setPreferredTableColumnStyle();
      metadataTable.revalidate();
      metadataTable.updateUI();

      String filterTableNamePrefix = generatorGui.getFilterTableNamePrefixField().getText();
      String filterTableNameSuffix = generatorGui.getFilterTableNameSufferField().getText();
//      String filterColumnNamePrefix = generatorGui.getFilterColumnNamePrefixField().getText();
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.