org.xnap.util
Interface TablePreferencesProvider

All Superinterfaces:
PreferencesProvider
All Known Implementing Classes:
AbstractPluginPreferences, AzureusPreferences, GiFTPreferences, JOscarPreferences, JTellaPreferences, LimeWirePreferences, OAVPreferences, OpenNapPreferences, OvernetPreferences, PircBotPreferences, Preferences, VorbisViewerPreferences, ZipViewerPreferences

public interface TablePreferencesProvider
extends PreferencesProvider

Defines the requirements for classes that provide preferences support for tables. The preferences are used to manage column ordering, column sizes and the maintain sortorder setting.


Method Summary
 void addTableListener(java.lang.String table, java.beans.PropertyChangeListener l)
           
 java.lang.String[] getTableColumns(java.lang.String table)
          Returns an array of visible columns as an array of column keys.
 int[] getTableColumnWidths(java.lang.String table)
           
 boolean getTableMaintainSortOrder(java.lang.String table)
           
 int getTableSortedColumn(java.lang.String table)
          Returns 0, if no column is sorted, otherwise the model index of the column + 1.
 void setTableColumns(java.lang.String table, java.lang.String[] columns)
          Sets an array of visible columns as an array of column keys.
 void setTableColumnWidths(java.lang.String table, int[] widths)
           
 void setTableMaintainSortOrder(java.lang.String table, boolean enable)
           
 void setTableSortedColumn(java.lang.String table, int column)
           
 
Methods inherited from interface org.xnap.util.PreferencesProvider
addPropertyChangeListener, addPropertyChangeListener, get, getBoolean, getKeyStroke, removePropertyChangeListener, removePropertyChangeListener, set, set, set
 

Method Detail

addTableListener

void addTableListener(java.lang.String table,
                      java.beans.PropertyChangeListener l)

getTableMaintainSortOrder

boolean getTableMaintainSortOrder(java.lang.String table)

getTableColumns

java.lang.String[] getTableColumns(java.lang.String table)
Returns an array of visible columns as an array of column keys.


setTableColumns

void setTableColumns(java.lang.String table,
                     java.lang.String[] columns)
Sets an array of visible columns as an array of column keys.


getTableColumnWidths

int[] getTableColumnWidths(java.lang.String table)

setTableColumnWidths

void setTableColumnWidths(java.lang.String table,
                          int[] widths)

setTableMaintainSortOrder

void setTableMaintainSortOrder(java.lang.String table,
                               boolean enable)

getTableSortedColumn

int getTableSortedColumn(java.lang.String table)
Returns 0, if no column is sorted, otherwise the model index of the column + 1. If the return value is < 0 the column is sorted descending .


setTableSortedColumn

void setTableSortedColumn(java.lang.String table,
                          int column)


Copyright © 2001-2005 XNap Team. All Rights Reserved.