@Test public void testGetColumnNameInt() { RepositoryTableModel repoTableModel = new RepositoryTableModel(); assertNotNull( repoTableModel ); assertEquals( Messages.getInstance().getString( "SolutionRepositoryTableView.Title" ), repoTableModel .getColumnName( 0 ) ); assertEquals( Messages.getInstance().getString( "SolutionRepositoryTableView.Name" ), repoTableModel .getColumnName( 1 ) ); assertEquals( Messages.getInstance().getString( "SolutionRepositoryTableView.DateModified" ), repoTableModel .getColumnName( 2 ) ); assertEquals( Messages.getInstance().getString( "SolutionRepositoryTableView.Description" ), repoTableModel .getColumnName( 3 ) ); }
public String getColumnName( final int col ) { switch ( col ) { case 0: return Messages.getInstance().getString( "SolutionRepositoryTableView.Title" ); case 1: return Messages.getInstance().getString( "SolutionRepositoryTableView.Name" ); case 2: return Messages.getInstance().getString( "SolutionRepositoryTableView.DateModified" ); case 3: return Messages.getInstance().getString( "SolutionRepositoryTableView.Description" ); } throw new IndexOutOfBoundsException(); }
RepositoryTableModel extends AbstractTableModel { public String getColumnName( final int col ) { switch ( col ) { case 0: return Messages.getInstance().getString( "SolutionRepositoryTableView.Title" ); case 1: return Messages.getInstance().getString( "SolutionRepositoryTableView.Name" ); case 2: return Messages.getInstance().getString( "SolutionRepositoryTableView.DateModified" ); case 3: return Messages.getInstance().getString( "SolutionRepositoryTableView.Description" ); } throw new IndexOutOfBoundsException(); } }
RepositoryTableModel extends AbstractTableModel { public String getColumnName( final int col ) { switch ( col ) { case 0: return Messages.getInstance().getString( "SolutionRepositoryTableView.Title" ); case 1: return Messages.getInstance().getString( "SolutionRepositoryTableView.Name" ); case 2: return Messages.getInstance().getString( "SolutionRepositoryTableView.DateModified" ); case 3: return Messages.getInstance().getString( "SolutionRepositoryTableView.Description" ); } throw new IndexOutOfBoundsException(); } RepositoryTableModel(); }
RepositoryTableModel extends AbstractTableModel { public String getColumnName( final int col ) { switch ( col ) { case 0: return Messages.getInstance().getString( "SolutionRepositoryTableView.Title" ); case 1: return Messages.getInstance().getString( "SolutionRepositoryTableView.Name" ); case 2: return Messages.getInstance().getString( "SolutionRepositoryTableView.DateModified" ); case 3: return Messages.getInstance().getString( "SolutionRepositoryTableView.Description" ); } throw new IndexOutOfBoundsException(); } RepositoryTableModel(); boolean isShowHiddenFiles(); void setShowHiddenFiles( final boolean showHiddenFiles ); String[] getFilters(); void setFilters( final String[] filters ); FileObject getSelectedPath(); void setSelectedPath( final FileObject selectedPath ); int getColumnCount(); int getRowCount(); String getColumnName( final int col ); FileObject getElementForRow( final int row ); Object getValueAt( final int row, final int column ); Class getColumnClass( final int column ); }
RepositoryTableModel extends AbstractTableModel { public String getColumnName( final int col ) { switch ( col ) { case 0: return Messages.getInstance().getString( "SolutionRepositoryTableView.Title" ); case 1: return Messages.getInstance().getString( "SolutionRepositoryTableView.Name" ); case 2: return Messages.getInstance().getString( "SolutionRepositoryTableView.DateModified" ); case 3: return Messages.getInstance().getString( "SolutionRepositoryTableView.Description" ); } throw new IndexOutOfBoundsException(); } RepositoryTableModel(); boolean isShowHiddenFiles(); void setShowHiddenFiles( final boolean showHiddenFiles ); String[] getFilters(); void setFilters( final String[] filters ); FileObject getSelectedPath(); void setSelectedPath( final FileObject selectedPath ); int getColumnCount(); int getRowCount(); String getColumnName( final int col ); FileObject getElementForRow( final int row ); Object getValueAt( final int row, final int column ); Class getColumnClass( final int column );  }