Package xgenerator.ui.swing

Examples of xgenerator.ui.swing.MetadataTable


   */
  public void actionPerformed(ActionEvent e) {
    JGeneratorFrame generatorGui = (JGeneratorFrame) ui;
   
    try {
      MetadataTable metadataTable = generatorGui.getMetadataTable();
      TableModel metadataTableModel = metadataTable.getModel();
     
      final ModelMetadata modelMetadata = new ModelMetadata();
      final List<FieldMetadata> fieldMetadatas = new ArrayList<FieldMetadata>();
      modelMetadata.setFieldMetadatas(fieldMetadatas);
     
View Full Code Here


   * @author <a href="mailto:shushanlee@msn.com">liss</a>
   * @param e
   * @see javax.swing.event.PopupMenuListener#popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent)
   */
  public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
    MetadataTable metadataTable = (MetadataTable) ui;
    JGeneratorFrame jGeneratorFrame = (JGeneratorFrame) metadataTable.getParentComponent();
    JComboBox datasourceComboBox = jGeneratorFrame.getDataSourceComboBox();
    Object selectedItem = datasourceComboBox.getSelectedItem();
    String datasourceName = StringUtils.toString(selectedItem);
    System.out.println("datasourceName=" + datasourceName);
   
    int selectedRowIndex = metadataTable.getSelectedRow();
    System.out.println("selectedRowIndex=" + selectedRowIndex);
    Object selectedTableCellValue = metadataTable.getValueAt(selectedRowIndex, MetadataTableModel.REFERENCING_TABLE_INDEX);
    String referencingTableName = StringUtils.toString(selectedTableCellValue);
    System.out.println("referencingTableName=" + referencingTableName);

    Vector dataVector = metadataService.getTableColumns(datasourceName, referencingTableName);
    JComboBox comboBox = (JComboBox) e.getSource();
View Full Code Here

TOP

Related Classes of xgenerator.ui.swing.MetadataTable

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.