Class JTablePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JTablePanel extends JPanel
See Also:
  • Constructor Details

    • JTablePanel

      public JTablePanel(DefaultTableModel defaultTableModel)
      how to use: 1) DefaultTableModel defaultTableModel; 2) defaultTableModel.addColumn(...); 3) JTablePanel pan = new JTablePanel(defaultTableModel).
      Parameters:
      defaultTableModel - the model to be used in the JTablePanel
  • Method Details

    • getTable

      public JTable getTable()
    • setTableModel

      public DefaultTableModel setTableModel(DefaultTableModel table)
      Set a FeatureCollection to add to the panel
      Parameters:
      table - table model
      Returns:
      TODO this method does nothing : remove ot set the table parameter
    • getAllComponetsExceptTable

      public JPanel getAllComponetsExceptTable()
      Gets all the lower components (save and query tools) of the panel. Useful to deactivate all
      Returns:
      JPanel
    • getTableModel

      public DefaultTableModel getTableModel()
      Gets the FeatureCollection added to this panel. Useful if user want to save it as a layer
      Returns:
      FeatureCollection
    • getCommandPanel

      public JPanel getCommandPanel()
      Gets the lower panel where locating table tools
      Returns:
      the JPanel containing table tools
    • getSavePanel

      public JPanel getSavePanel()
      Gets the lower panel where locating save button
      Returns:
      the JPanel containing the save command
    • saved

      protected void saved(File file)
    • notsaved

      protected void notsaved()