001/***************************************************************************** 002 * Copyright by The HDF Group. * 003 * Copyright by the Board of Trustees of the University of Illinois. * 004 * All rights reserved. * 005 * * 006 * This file is part of the HDF Java Products distribution. * 007 * The full copyright notice, including terms governing use, modification, * 008 * and redistribution, is contained in the COPYING file, which can be found * 009 * at the root of the source code distribution tree, * 010 * or in https://www.hdfgroup.org/licenses. * 011 * If you do not have access to either file, you may request a copy from * 012 * help@hdfgroup.org. * 013 ****************************************************************************/ 014 015package hdf.view.TableView; 016 017import hdf.view.DataView.DataView; 018 019/** 020 * 021 * The table view interface for displaying data in table form 022 * 023 * @author Peter X. Cao 024 * @version 2.4 9/6/2007 025 */ 026public abstract interface TableView extends DataView { 027 /** 028 * Get the table 029 * 030 * @return the table 031 */ 032 public abstract Object getTable(); 033 034 /** 035 * Get the array of selected data 036 * 037 * @return array of selected data 038 */ 039 public abstract Object getSelectedData(); 040 041 /** 042 * Get the array of selected column count 043 * 044 * @return array of selected column count 045 */ 046 public abstract int getSelectedColumnCount(); 047 048 /** 049 * Get the array of selected row count 050 * 051 * @return array of selected row count 052 */ 053 public abstract int getSelectedRowCount(); 054 055 /** 056 * Write the change of a dataset into file. 057 */ 058 public abstract void updateValueInFile(); 059 060 /** 061 * refresh the data table. 062 */ 063 public abstract void refreshDataTable(); 064}