Ontimize 5.2072EN

com.ontimize.gui.table
Class Table

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ontimize.gui.table.Table
All Implemented Interfaces:
AccessForm, javax.accessibility.Accessible, ApplicationPreferencesListener, CreateForms, DataComponent, java.util.EventListener, FormComponent, Freeable, HasHelpIdComponent, HasPreferenceComponent, IdentifiedElement, IFilterElement, java.awt.image.ImageObserver, InsertTableInsertRowChange, Internationalization, ITemplateField, java.awt.MenuContainer, OpenDialog, ReferenceComponent, SecureElement, SelectCurrencyValues, java.io.Serializable
Direct Known Subclasses:
Table2Forms

public class Table
extends javax.swing.JPanel
implements DataComponent, CreateForms, OpenDialog, AccessForm, Freeable, SelectCurrencyValues, ApplicationPreferencesListener, HasPreferenceComponent, HasHelpIdComponent, ReferenceComponent, InsertTableInsertRowChange, ITemplateField, IFilterElement

The Table is used to display regular two-dimensional tables of cells.

The Table has many facilities that make it possible to customize its rendering and editing but provides defaults for these features so that simple tables can be set up easily. For example, there are default renderers for the most common data types such as Date, Timestamp, Integer, Double, Float, String, Boolean.

The Table can be added to a Form element by using the default XML label Table. The structure is as follows:

<Table {attribute=value} />

The attributes allowed can be found in methods:
-init(Hashtable params) where params contains the xml attributes.
-configureButtons(Hashtable params) where all table button icons are configured.
-SortTableCellRenderer.init(Hashtable params) where are additional configurations for table header.
-configureQuickFilter(Hashtable params) where are additional configurations for table quickfilter search box.
-When table is autoinsertable (inserttable='yes') there are additional parameters in configureInsertTable(Hashtable params)

See Also:
Serialized Form

Nested Class Summary
protected static class Table.ComponentsPermissionsStore
          Class that stores all the permissions for all the table components
static class Table.DefaultRendererManager
          The default implementation of the #RendererManager.
protected  class Table.DeleteItemListener
          Class that implement an action listener that deletes the selected report.
static interface Table.EditorManager
          An interface that provides access to #TableCellEditor.
protected static class Table.FilterDate
           
protected  class Table.HTMLFileFilter
          Class that determines a filter in order to retrieve only html/htm files.
protected  class Table.InfoFilterButtonsModelListener
          Listener that manager the control buttons visibility.
static class Table.KeyObject
           
protected  class Table.ListenerItem
          Class that implement an action listener that shows the custom report window with the selected report.
protected  class Table.ListenerItemDeletePrefPivotTable
          The listener that deletes a concrete pivot table configuration.
protected  class Table.ListenerItemPrefPivotTable
          The listener that loads a concrete pivot table configuration.
protected  class Table.PreferenceItem
          The class that has all the pivot table management GUI
static class Table.QuickFieldText
           
protected static class Table.QuickFilterActionListener
           
protected  class Table.RefreshThread
          The thread that refreshes the table.
static interface Table.RendererManager
          An interface that provides access to #TableCellRenderer.
protected static class Table.TxtFileFilter
          Class that determines a filter in order to retrieve only txt files.
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  Table.InfoFilterButtonsModelListener actButtonsModelListener
           
protected  boolean activatedFilter
           
protected  java.util.Vector addButtons
           
protected  java.util.Vector addComponents
           
protected  java.awt.event.ActionListener addRecordListener
          Defines a listener that opens the table detail form in inserting mode, in order to insert new records to the table.
protected  boolean allowDelete
           
protected  boolean allowOpenInNewWindow
           
protected  boolean allowSetupVisibleColumns
           
protected  java.util.Vector attributes
          Contains the columns and keys names
protected  java.util.Vector attributesToFix
           
protected  TableAttribute attributeTable
          Deprecated.  
static java.lang.String AUTO_ADJUST_HEADER
          Attribute name allowed in the XML.
protected  boolean autoFixHead
           
static java.lang.String AVERAGE_es_ES
          Operation column type
static java.lang.String BACKGROUND_FORM_BUILDER
          Attribute name allowed in the XML
 boolean backgroundDetailFormBuilder
           
static int BAR
          Field number for charting indicating the chart type.
static int BAR_3D
          Field number for charting indicating the chart type.
protected  boolean borderbuttons
           
static java.lang.String BUTTON_CALCULATED_COL
          Button key
static java.lang.String BUTTON_CHANGEVIEW
          Button key
static java.lang.String BUTTON_CHART
          Button key
static java.lang.String BUTTON_COPY
          Button key
static java.lang.String BUTTON_DEFAULT_CHART
          Button key
static java.lang.String BUTTON_DELETE
          Button key
static java.lang.String BUTTON_EXCEL_EXPORT
          Button key
static java.lang.String BUTTON_HTML_EXPORT
          Button key
static java.lang.String BUTTON_PIVOTTABLE
           
static java.lang.String BUTTON_PLUS
          Button key
static java.lang.String BUTTON_PRINTING
          Button key
static java.lang.String BUTTON_REFRESH
          Button key
static java.lang.String BUTTON_REPORT
          Button key
static java.lang.String BUTTON_SAVE_FILTER_ORDER_SETUP
          Button key
static java.lang.String BUTTON_SUM_ROW_SETUP
          Button key
static java.lang.String BUTTON_VISIBLE_COLS_SETUP
          Button key
protected  javax.swing.JButton buttonCalculatedColumns
           
protected  javax.swing.JButton buttonChangeView
          Table button.
protected  javax.swing.JButton buttonChart
          Table button.
protected  javax.swing.JButton buttonCopy
          Table button.
protected  TableButtonSelection buttonDefaultChart
          Table button.
protected  javax.swing.JButton buttonDelete
          Table button.
protected  javax.swing.JButton buttonExcelExport
          Table button.
protected  javax.swing.JButton buttonHTMLExport
          Table button.
protected  java.util.Hashtable buttonIcons
           
protected  TableButton buttonPivotTable
           
protected  javax.swing.JButton buttonPlus
          Table button.
protected  javax.swing.JButton buttonPlus2
          Table button.
protected  javax.swing.JButton buttonPrint
          Table button.
protected  javax.swing.JButton buttonRefresh
          Table button.
protected  TableButtonSelection buttonReports
           
protected  javax.swing.JButton buttonSaveFilterOrderSetup
           
protected  javax.swing.JButton buttonSumRowSetup
          Table button.
protected  javax.swing.JButton buttonVisibleColsSetup
          Table button.
static java.lang.String CALCULED_COLS
          Attribute name allowed in the XML.
static java.lang.String CALCULED_COLS_REQUIRED_FIELDS
          Attribute name allowed in the XML.
protected  java.util.Hashtable calculedColumns
           
protected  Table.EditorManager cellEditorManager
           
protected  CellRenderer.CellRendererColorManager cellRendererColorManager
           
protected  CellRenderer.CellRendererFontManager cellRendererFontManager
           
protected  Table.RendererManager cellRendererManager
           
static boolean CHART_ENABLED
          Allows the charting functionality
protected static boolean CHART_V1
           
protected  java.util.Vector chartGraphMenuItems
           
protected  ExtendedJPopupMenu chartMenu
           
protected  IChartUtilities chartUtilities
           
static java.lang.String CODS
          Attribute name allowed in the XML
protected  java.util.Hashtable codValues
           
protected  int colPress
           
static java.lang.String COLS
          Attribute name allowed in the XML.
protected  java.util.Vector columnsToOperate
           
protected  java.util.Vector columnsToSum
           
protected  java.beans.PropertyChangeListener columnWidthListener
          A property change listener that when the property in the event is named width will set the preferred row height.
protected  int[] columnWidthSet
           
static java.lang.String CONF_VISIBLE_COLS
          Attribute name allowed in the XML.
static java.lang.String CONTINUOUS
           
static java.lang.String CONTROLS
          Attribute name allowed in the XML.
static java.lang.String CONTROLS_VISIBLE
          Attribute name allowed in the XML.
protected  javax.swing.JPanel controlsPanel
           
 boolean controlsVisible
           
static java.lang.String COPY_CELL
          GUI text
static java.lang.String COPY_CELL_es_ES
          GUI text
static java.lang.String COPY_SELECTION
          GUI text
static java.lang.String COPY_SELECTION_es_ES
          GUI text
static java.lang.String COUNT_es_ES
          Operation column type
static boolean createCalculatedButton
           
static java.lang.String CURRENCY
          Attribute name allowed in the XML.
protected  java.util.Vector currencyColumns
           
protected  CurrencyCellRenderer currencyRenderer
           
static java.lang.String CUSTOM_CHARTS
          Attribute name allowed in the XML.
static java.lang.String DATABASE_INSERT
          Attribute name allowed in the XML.
static java.lang.String DATABASE_REMOVE
          Attribute name allowed in the XML.
protected  boolean dataBaseInsert
           
protected  boolean dataBaseRemove
           
static boolean DEBUG_MEMORY
          Configures the MEMORY trace, to see how much memory is being used by the table.
static java.lang.String DEFAULT_BUTTONS
           
static java.lang.String DEFAULT_NEW_WINDOW
          Attribute name allowed in the XML.
static boolean DEFAULT_QUICK_FILTER
          Allows the user to modify quickfilter functionality
static boolean DEFAULT_RENDER_REPORT_VALUES
           
static boolean DEFAULT_VALUE_SET_HEIGHT_HEAD
          Deprecated.  
static boolean DEFAULT_VALUE_SETUP_VISIBLE_COLS
          Allows the user to modify the visible cols
static java.lang.String DEFAULT_VISIBLE_COLS
          Attribute name allowed in the XML.
protected  boolean defaultButtons
           
protected  boolean defaultChartsEnabled
           
protected  java.lang.Object defaultFilter
           
static boolean defaultPivotTableVisibility
          Allows the user to modify pivot table visibility
static boolean defaultQuickFilterVisible
          Allows the user to modify quickfilter visibility
static boolean defaultShowGridValue
           
static java.awt.Color defaultTableBackgroundColor
           
static boolean defaultTableOpaque
           
protected  java.util.Vector defaultVisibleColumns
           
static java.lang.String DELETE_BUTTON
          Attribute name allowed in the XML.
static java.lang.String DELETE_FILTER_COLUMN
          GUI text
static java.lang.String DELETE_FILTER_es_ES
          GUI text
static java.lang.String DELETE_GROUP_es_ES
          GUI text
protected  Table.DeleteItemListener deleteListener
           
protected static java.awt.event.ActionListener deletePrefPivotTableItemListener
           
protected  DetailForm detailForm
           
protected  DetailFormBuilder detailFormBuilder
           
protected  java.lang.String detailFormTitleKey
           
protected static java.lang.String detailKey
          GUI text
protected  java.lang.String dinamicFormClass
           
static java.lang.String DISABLE_INSERT
          Attribute name allowed in the XML.
protected  boolean disableInsert
          Determines whether the insertion using the table is enabled or not.
static java.lang.String DOWN_10
          Deprecated.  
static java.lang.String DOWN_100
          Deprecated.  
static java.lang.String DOWN_50
          Deprecated.  
static java.lang.String DOWN_ALL
          Deprecated.  
protected  javax.swing.JDialog dPivot
           
static java.lang.String DYNAMIC
          Attribute name allowed in the XML.
static java.lang.String DYNAMIC_FORM
          Attribute name allowed in the XML.
protected  DynamicFormManager dynamicFormManager
           
protected  boolean dynamicTable
           
static java.lang.String EDITABLE_COLUMNS
          Attribute name allowed in the XML.
protected  java.util.Vector editableColumns
           
protected  java.util.Vector editableColumnsUpdateEntity
           
protected  java.util.Vector editionListeners
           
protected static java.lang.String editKey
          GUI text
protected  boolean enabled
           
protected  boolean enabledDetail
           
protected  FormPermission enabledPermission
           
protected  java.lang.String entity
          The table entity
static java.lang.String ENTITY
          Attribute name allowed in the XML.
static int EQUAL
          Filter operation key
protected  java.awt.event.MouseEvent eventPress
           
protected  javax.swing.JMenuItem filter
           
static java.lang.String FILTER_BY_VALUE_es_ES
          GUI text
static java.lang.String FILTER_COLUMN_es_ES
          GUI text
static java.lang.String FILTER_HEAD_TIP_COD
          GUI text
protected  FilterDialog filterWindow
           
static java.lang.String FIND_MESSAGE
           
static java.lang.String FIX_ATTR
          Attribute name allowed in the XML.
static java.lang.String FONT_SIZE
          Attribute name allowed in the XML.
protected  int fontSize
           
static java.lang.String FORM
          Attribute name allowed in the XML.
protected  FormBuilder formBuilder
           
protected  java.lang.String formName
          The detail form name
static int GREATER
          Filter operation key
static int GREATER_EQUAL
          Filter operation key
static java.lang.String GROUP_COLUMN_BY_DATE_es_ES
          GUI text
static java.lang.String GROUP_COLUMN_BY_MONTH
          GUI text
static java.lang.String GROUP_COLUMN_BY_QUARTER
          GUI text
static java.lang.String GROUP_COLUMN_BY_QUARTER_YEAR
          GUI text
static java.lang.String GROUP_COLUMN_BY_YEAR
          GUI text
static java.lang.String GROUP_COLUMN_BY_YEAR_MONTH
          GUI text
static java.lang.String GROUP_COLUMN_BY_YEAR_MONTH_DAY
          GUI text
static java.lang.String GROUP_COLUMN_es_ES
          GUI text
static java.lang.String GROUP_FUNCTION
          GUI text
static java.lang.String HEAD_TIP_COD
          GUI text
protected  java.util.Hashtable hOnSetValueSetEquivalences
          This object is used to store onsetvalueset attributes and equivalences (for these fields in entity) when structure of parameter onsetvalueset is: "fieldonset1:SUM(fieldentitypk1);fieldonset2:CONCAT(fieldentitypk2);...fieldonsetn:MAX(fieldentitypkn)"
protected  java.util.Hashtable hOnSetValueSetFunction
          This object is used to store onsetvalueset attributes and function when structure of parameter onsetvalueset is: "fieldonset1:SUM(fieldentitypk1);fieldonset2:CONCAT(fieldentitypk2);...fieldonsetn:MAX(fieldentitypkn)"
static java.lang.String HORIZONTAL_SCROLL
          Attribute name allowed in the XML.
protected  java.util.Vector hourRenderColumns
           
protected  DateCellRenderer hourRenderer
           
protected  java.util.Hashtable hParentkeyEquivalences
           
static java.lang.String INSERT_TABLE
          Attribute name allowed in the XML.
protected  boolean inserting
          boolean to know when the insertion is executing
protected static java.lang.String insertKey
          GUI text
protected  FormPermission insertPermission
           
protected  javax.swing.event.EventListenerList insertTableInsertRowListenerList
          List with all the listeners to the insert event
protected  boolean installQuickFilter
           
static java.lang.String IT_IS_SHOWED
          GUI text
static java.lang.String IT_IS_SHOWED_es_ES
          GUI text
static java.lang.String KEY
          Attribute name allowed in the XML.
protected  java.lang.String keyField
           
protected  java.util.Vector keyFields
           
static java.lang.String KEYS
          Attribute name allowed in the XML.
protected  java.awt.BorderLayout layout
           
static int LESS
          Filter operation key
static int LESS_EQUAL
          Filter operation key
static int LINE
          Field number for charting indicating the chart type.
protected  javax.swing.JLabel lInfoFilter
           
protected  Table.ListenerItem listener
           
protected  java.awt.event.MouseListener listenerHighlightButtons
           
protected  java.awt.event.MouseAdapter listMouseListener
           
protected static java.lang.String loadDefaultConfigurationKey
           
protected  java.util.Locale locale
           
protected  EntityReferenceLocator locator
          The reference locator set for this table.
static java.lang.String M_ERROR_PRINTING_TABLE
          GUI text
static java.lang.String M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES
          GUI text
static java.lang.String M_PRINTING_CANCELED
          GUI text
static java.lang.String M_PRINTING_FINISHED
          GUI text
static java.lang.String M_SELECTION_LESS_THAN_5_ROWS
          GUI text
static java.lang.String M_SELECTION_ONLY_ONE_ROW_TO_OPEN_DETAIL_FORM
          GUI text
static java.lang.String M_WOULD_YOU_LIKE_TO_DELETE_ROWS
          GUI text
static java.lang.String M_WOULD_YOU_LIKE_TO_DELETE_THIS_CONFIGURATION_OF_FILTER
          GUI text
static java.lang.String MAXIMUM_es_ES
          Operation column type
static java.lang.String MEMO_RENDER
          Attribute name allowed in the XML.
protected  java.util.Vector memoRenderColumns
          The table columns that will use memo render
static java.lang.String MEMORY_ENTITY
          Attribute name allowed in the XML.
protected  java.lang.String memoryEntity
           
protected  ExtendedJPopupMenu menu
           
protected  javax.swing.JMenuItem menuAvgFunction
           
protected  java.util.Vector menuChartItems
           
protected  javax.swing.JMenuItem menuCopyCell
           
protected  javax.swing.JMenuItem menuCopySelection
           
protected  javax.swing.JMenuItem menuCountFunction
           
protected  javax.swing.JMenuItem menuDefaultOrderSetup
           
protected  javax.swing.JMenuItem menuDeleteColumnFilter
           
protected  javax.swing.JMenuItem menuDeleteFilter
           
protected  javax.swing.JMenuItem menuDeleteGroup
           
protected  javax.swing.JMenuItem menuDetail
           
protected  javax.swing.JMenuItem menuFilter
           
protected  javax.swing.JMenuItem menuFilterByValue
           
protected  javax.swing.JMenuItem menuGroup
           
protected  javax.swing.JMenuItem menuGroupByMonth
           
protected  javax.swing.JMenuItem menuGroupByQuarter
           
protected  javax.swing.JMenuItem menuGroupByQuarterYear
           
protected  javax.swing.JMenuItem menuGroupByYear
           
protected  javax.swing.JMenuItem menuGroupByYearMonth
           
protected  javax.swing.JMenu menuGroupDate
           
protected  javax.swing.JMenu menuGroupFunction
           
protected  javax.swing.JMenuItem menuGroupYearMonthDay
           
protected  javax.swing.JMenuItem menuInsert
           
protected  javax.swing.JMenuItem menuMaxFunction
           
protected  javax.swing.JMenuItem menuMinFunction
           
protected  javax.swing.JMenuItem menuOpenInNewWindow
           
protected  ExtendedJPopupMenu menuOrderFilterSetup
           
protected  javax.swing.JMenuItem menuPageableEnabled
           
protected  ExtendedJPopupMenu menuPivotTableSetup
           
protected  javax.swing.JMenuItem menuPrintSelection
           
protected  javax.swing.JMenuItem menuRefresh
           
protected  javax.swing.JPopupMenu menuReportSetup
           
protected  javax.swing.JMenuItem menuResetOrder
           
protected  javax.swing.JMenuItem menuSave
           
protected  javax.swing.JMenuItem menuSaveDefaultOrderConfiguration
           
protected  javax.swing.JMenuItem menuSavePivot
           
protected  javax.swing.JCheckBoxMenuItem menuShowHideControls
           
protected  javax.swing.JMenuItem menuSumFunction
           
static int MIN_ROW_HEIGHT
          The minimum row height default value
static java.lang.String MINIMUM_es_ES
          Operation column type
protected  int minRowHeight
          Minimum row height, by default is MIN_ROW_HEIGHT
static java.lang.String MINROWHEIGHT
           
static java.lang.String MODIFIABLE_CALCULATED_COLUMNS
           
protected  boolean modifiableCalculatedColumns
           
protected  boolean modified
           
static int MONTH
          Field number for charting indicating the period type.
static java.lang.String NUM_ROWS_COLUMN
          Attribute name allowed in the XML.
static java.lang.String OF
          GUI text
static java.lang.String ONSETVALUESET
          Attribute name allowed in the XML.
protected  java.util.Vector onsetvaluesetAttributes
          The vector with attributes to update when data field value changed.
protected  boolean opaquebuttons
           
static java.lang.String OPEN_NEW_WINDOW
          Attribute name allowed in the XML.
protected  boolean openInNewWindowByDefault
           
protected static java.lang.String openInNewWindowKey
          GUI text
static java.lang.String OPERATION_PREFERENCE
          Key name to store preferences related to the Table
protected  boolean operationInMemory
           
static boolean ORDER_COLS_BY_VISIBLE_COLS
          Forces the column order to like the visible cols order.
protected  boolean orderEnabled
           
protected  java.awt.event.ActionListener orderFilterSetupDeleteItemsListener
           
protected  java.util.Vector originalCalculatedColumns
           
protected  java.util.Vector originalVisibleColumns
           
static java.lang.String OTHER_KEYS
          Attribute name allowed in the XML.
protected  java.util.Vector otherParentKeys
           
protected  boolean packTable
           
static java.lang.String PAGEABLE
          GUI text
protected  PageFetcher pageFetcher
           
protected  java.util.Hashtable parameters
          The parameters passed to the table when it is builded.
protected  Form parentForm
           
protected  java.awt.Frame parentFrame
           
protected  java.lang.String parentKey
           
static java.lang.String PARENTKEY
          Attribute name allowed in the XML.
protected  java.util.List parentkeys
          List with all the fields in the parent form used to filter the table values
static boolean PERMIT_SAVE_FILTER_ORDER_CONFIGURATION
          Allows the user to save the filter configuration
static int PIE
          Field number for charting indicating the chart type.
static int PIE_3D
          Field number for charting indicating the chart type.
static java.lang.String PIVOT_BUTTON
          Attribute name allowed in the XML.
protected  java.awt.event.MouseAdapter popupListener
          Opens the popup menu (context menu)
protected  int preferredSizeInRows
           
protected static java.awt.event.ActionListener prefPivotTableItemListener
           
protected  boolean prefWidthAndPosApply
           
protected  java.util.Vector primaryKey
           
static java.lang.String PRINT_START
          GUI text
static java.lang.String PRINTING_SELECTION
          GUI text
static java.lang.String PRINTING_SELECTION_es_ES
          GUI text
protected  PrintingWindow printingWindow
           
static int QUARTER
          Field number for charting indicating the period type.
static java.lang.String QUERY_ROWS
          Attribute name allowed in the XML.
protected  FormPermission queryPermission
           
static java.lang.String QUICK_FILTER
          Attribute name allowed in the XML.
static java.lang.String QUICK_FILTER_LABEL_KEY
           
static java.lang.String QUICK_FILTER_PAGEABLE_MESSAGE_KEY
           
static java.lang.String QUICK_FILTER_VISIBLE
          Attribute name allowed in the XML.
protected  Table.QuickFieldText quickFilterText
           
protected  boolean quickFilterVisible
           
static int RANGE
          Filter operation key
protected  BooleanCellRenderer rBoolean
          Default renderer for the table
protected  DateCellRenderer rDate
          Default renderer for the table
static java.lang.String RECORDS
          GUI text
static java.lang.String RECORDS_es_ES
          GUI text
protected  java.lang.String recordsText
          GUI text
static java.lang.String REFRESH
          GUI text
static java.lang.String REFRESH_BUTTON
          Attribute name allowed in the XML.
static java.lang.String REFRESH_es_ES
          GUI text
protected  Table.RefreshThread refreshThread
           
static java.lang.String rendererEditorConfigurationFile
          Complete path to renderer and editor configuration file.
static boolean renderReportValues
           
static java.lang.String REPORT_COLS
          Attribute name allowed in the XML.
protected  java.util.Vector reportCols
           
static java.lang.String REQUIRED_COLS
          Attribute name allowed in the XML.
protected  java.util.Vector requiredColumnsCalculedColumns
           
protected  java.awt.event.ActionListener reserOrderListener
          Defines a listener that in the event restored the sorting applied to the table.
protected static java.lang.String resetOrderKey
          GUI text
protected  java.util.ResourceBundle resourcesFile
           
protected  boolean restricted
           
protected  HeadCellRenderer rHead
          Default renderer for the table
protected  ImageCellRenderer rImagen
          Default renderer for the table
protected  MemoCellRenderer rMemo
          Default renderer for the table
protected  ObjectCellRenderer rObject
          Default renderer for the table
protected  int rowPress
           
static java.lang.String ROWS
          Attribute name allowed in the XML.
protected  int rowsNumberToQuery
           
protected  RealCellRenderer rReal
          Default renderer for the table
protected  RowHeadCellRenderer rRowHead
          Default renderer for the table
protected  ReportUtils ru
           
static java.lang.String SAVE_WIDTH_POSITION_COLUMNS
          The key for the preference to store the columns position
protected static java.lang.String saveAsDefaultConfigurationKey
           
protected static java.lang.String saveKey
          Class that contains a TableButton and a JButton into a JPanel..
protected  boolean scrollHorizontal
           
protected  javax.swing.JScrollPane scrollPane
           
protected  javax.swing.event.ListSelectionListener selectionListener
          The EJTable ListSelectionListener.
static java.lang.String SELECTIONMODE
           
protected  boolean setPivotTableButton
           
protected  boolean setRefreshButton
           
static java.lang.String SHOW_HIDE_CONTROLS
          GUI text
static java.lang.String SHOW_HIDE_CONTROLS_es_ES
          GUI text
static boolean SHOW_OPEN_IN_NEW_WINDOW_MENU
          The table opens the detail forms in new windows, instead using dialogs.
protected  boolean showControls
           
static java.lang.String SHOWGRID
           
protected  boolean showGridValue
           
protected  java.lang.String shownText
          GUI text
static java.lang.String SINGLE
           
static java.lang.String SORT_HEAD_TIP_COD
          GUI text
protected  java.awt.event.ActionListener sortFilterOrderItemListener
           
static int STACKED_3D
          Field number for charting indicating the chart type.
static java.lang.String SUM_es_ES
          Operation column type
static java.lang.String SUM_ROW
          Attribute name allowed in the XML.
protected  SumRowSetupDialog sumRowSetupDialog
           
protected  javax.swing.JTable table
          The JTable inside this table
protected  java.awt.Color tableBackgroundColor
           
static java.lang.String TABLEBGCOLOR
           
protected  Table.ComponentsPermissionsStore tableComponentPermission
           
protected  boolean tableOpaque
           
static java.lang.String TABLEOPAQUE
           
protected  Table tAux
           
static java.lang.String TIME_RENDER
          Attribute name allowed in the XML.
static java.lang.String TIP_CALCULATED_COLUMNS
           
static java.lang.String TIP_CHART_MENU
          GUI text
static java.lang.String TIP_CHART_MENU_es_ES
          GUI text
static java.lang.String TIP_CLIPBOARD_COPY
          GUI text
static java.lang.String TIP_CLIPBOARD_COPY_es_ES
          GUI text
static java.lang.String TIP_EXCEL_EXPORT
          GUI text
static java.lang.String TIP_EXCEL_EXPORT_es_ES
          GUI text
static java.lang.String TIP_FILTER_ORDEN_CONF
          GUI text
static java.lang.String TIP_HTML_EXPORT
          GUI text
static java.lang.String TIP_HTML_EXPORT_es_ES
          GUI text
static java.lang.String TIP_INSERT_BUTTON
          GUI text
static java.lang.String TIP_INSERT_BUTTON_es_ES
          GUI text
static java.lang.String TIP_PIVOT_TABLE
          GUI text
static java.lang.String TIP_PIVOT_TABLE_es_ES
          GUI text
static java.lang.String TIP_PRINTING
          GUI text
static java.lang.String TIP_PRINTING_es_ES
          GUI text
static java.lang.String TIP_REPORT_PRINTING
          GUI text
static java.lang.String TIP_REPORT_PRINTING_es_ES
          GUI text
static java.lang.String TIP_SAVE_FILTER_ORDER_CONFIGURATION_es_ES
          GUI text
static java.lang.String TIP_SUMROW_SETUP
          GUI text
static java.lang.String TIP_VISIBLES_COLS_SETUP
          GUI text
static java.lang.String TIP_VISIBLES_COLS_SETUP_es_ES
          GUI text
protected  TipScroll tipScroll
          The tip configured to the table scroll.
protected  boolean tipScrollEnabled
          Determines whether the tip scroll is enabled or not.
static java.lang.String TITLE
          Attribute name allowed in the XML.
static java.lang.String TOTAL
          Deprecated.  
static java.lang.String TOTAL_es_ES
          GUI text
protected  java.lang.String totalText
          GUI text
static java.lang.String TRANSLATE_HEADER
          Attribute name allowed in the XML.
protected  boolean translateHeader
           
static java.lang.String UNGROUP_COLUMN_es_ES
          GUI text
static java.lang.String UPDATE_ENTITY_EDITABLE_COLUMNS
          Attribute name allowed in the XML.
protected  java.lang.String userPrefs
           
static java.lang.String VISIBLE_COLS
          Attribute name allowed in the XML.
protected  com.ontimize.gui.table.VisibleColsSetupDialog visibleColsSetupDialog
           
protected  java.util.Vector visibleColumns
           
protected  boolean visibleFieldKeyColumn
           
protected  FormPermission visiblePermission
           
protected  boolean visibleRowNumberColumn
           
protected  java.util.Vector vrequiredCols
          List with the required columns to insert
protected  java.util.Vector vupdateEditableColumns
           
protected  TableFrame[] windowCache
           
static java.lang.String XLS_EXPORT_CLASS
          Default class to use in the xls export button
static int YEAR
          Field number for charting indicating the period type.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ontimize.gui.field.DataComponent
COMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2
 
Fields inherited from interface com.ontimize.gui.field.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface com.ontimize.gui.SecureElement
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP
 
Fields inherited from interface com.ontimize.gui.SelectCurrencyValues
EURO, PST
 
Fields inherited from interface com.ontimize.util.templates.ITemplateField
DATA_TYPE_FIELD, DATA_TYPE_FIELD_ATTR, DATA_TYPE_IMAGE, DATA_TYPE_IMAGE_ATTR, DATA_TYPE_TABLE, DATA_TYPE_TABLE_ATTR, TEMPLATE_DATA_TYPE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Table(java.util.Hashtable params)
          Constructs a Table with the default configuration.
 
Method Summary
 void addButtonToControls(javax.swing.AbstractButton button)
          Adds a button to the controls panel
 void addButtonToControls(javax.swing.AbstractButton button, boolean useDefaultConfiguration)
           
 void addCalculatedColumn(java.lang.String columnName, java.lang.String expression)
          Adds a calculated column to the table.
 void addColumn(java.lang.String column)
          Adds a column to the table.
 void addComponentToControls(javax.swing.JComponent component)
          Adds a #JComponent to the controls panel
 void addInsertTableInsertRowListener(InsertTableInsertRowListener l)
           
 void addRow(java.util.Hashtable rowData)
          Adds a new row with data
 void addRow(int row, java.util.Hashtable rowData)
          Adds a new row with data in a concrete position in the table
 void addRows(int[] rows, java.util.Vector rowsData)
          Deprecated.  
 void addRows(java.util.Vector rowsData)
          Adds several rows to the table.
 void addTableEditorListener(TableEditorListener listener)
          Adds a #TableEditorListener to the table.
 void addTableHeaderMouseListener(javax.swing.JTable table)
          Adds a default mouse listener to the table header.
protected  void addTableHeaderRenderer(javax.swing.JTable table)
          Calls the createTableHeaderRenderer(javax.swing.JTable) method and configures the table header rendering
 void addTableRowHeader(TableRowHeader tableRowHeader)
          Adds a #TableRowHeader to the table.
protected  void applyColumnPositonAndPreferences(java.lang.String preference)
          Applies the position and column preferences past as parameter.
 void applyFilter(java.util.Hashtable filters)
          Applies filters to the current table.
 void applyFilter(java.lang.String columnName, java.lang.Object filter)
          Applies a filter to the specified column.
 void applyFilter(java.lang.String columnName, java.lang.Object[] values, int condition)
          Applies a filter to the specified column.
 void applyOperations()
          Applies the operations stored in the preferences file to the table.
protected  int calculatePreferredRowHeights()
          Deprecated.  
protected  void changeButtonIcon(javax.swing.JButton button, java.lang.String iconpath, boolean borderButtons, boolean opaqueButtons, java.awt.event.MouseListener listenerHighlightButtons)
           
protected  void changeOpacity(javax.swing.JComponent c, boolean opaque)
           
protected  void changeToTableView()
          Changes the table representation to the table one.
 void changeView()
          Changes the table by the detail form.
protected  boolean checkBoundRow(int rowIndex)
          If the rowIndex is <0 the selection is removed and false is returned.
protected static void checkChartEnabled()
          Checks if the charting classes are set into the classpath
protected  boolean checkComponentTablePermission(java.lang.Object key, java.lang.String type)
          Checks whether the component with this key has been restricted by the permission type .
protected  boolean checkEnabledPermission()
          Checks if the table must be disabled.
 void checkInsertingRowValue()
           
protected  boolean checkInsertPermission()
          Checks if the table can perform insertions.
protected  void checkNumberColumnVisibility(java.lang.Object value)
           
protected  boolean checkQueryPermission()
          Checks if the table can perform queries.
protected  void checkRefreshThread()
          Checks the refresh thread to update the GUI while the table update is being performed.
protected  boolean checkVisiblePermission()
          Checks the component visibility.
protected  void configureButtons(java.util.Hashtable params)
          This method configure appearance of table buttons: border, opacity, ...
protected  void configureCalculatedCols(java.util.List calcColNames, java.util.List expressions, boolean savePreferences)
           
 void configureChart(java.lang.String xLabel, java.lang.String yLabel, java.lang.String xColumn, java.lang.String[] yColumns, java.lang.String[] series, java.lang.String descr, int type)
          Configures the chart.
 void configureChartXDate(java.lang.String xLabel, java.lang.String yLabel, java.lang.String xColumn, java.lang.String[] yColumns, java.lang.String[] series, java.lang.String descr, int interval)
          Configures a chart with dates.
 void configureChartXDate(java.lang.String xLabel, java.lang.String yLabel, java.lang.String xColumn, java.lang.String[] yColumns, java.lang.String[] series, java.lang.String descr, int interval, boolean fillZeros)
          Configures a chart with dates.
protected  void configureComponentsLocator(java.util.Hashtable components, EntityReferenceLocator locator)
           
protected  void configureComponentsParentForm(java.util.Hashtable components, Form parentForm)
           
protected  void configureControlButton(javax.swing.AbstractButton button)
           
protected  void configureFilterOrder(java.awt.event.ActionEvent e)
          Method call by the listener of the TableButton that manages the saving of the filter configuration.
protected  void configureInsertTable(java.util.Hashtable params)
          This method configure parameters for insertable table.
protected  void configurePageable(int pageSize)
          Configures the pageable table.
protected  void configureQuickFilter(java.util.Hashtable params)
          This method configure appearance of quickfilter box.
protected  void configureRenderEditor(java.util.Hashtable renderer, java.util.Hashtable editor)
          Configure the renderer and editor to the columns
 int convertRowIndexToModel(int viewRowIndex)
          Maps the index of the row in the view to the index of the row in the table model.
protected  void copyCell()
          Copies to the clipboard the information contained by the cell over which the mouse right click opened the popup menu.
protected  void copySelection()
          Copies the selected data in the table GUI to the system clipboard.
protected  void createChartUtilities()
           
protected  java.lang.String createColumnPositionAndWidthPreference()
          Creates the preference according to the current table configuration.
protected  void createDetailForm()
          Creates the detail form for this table.
protected  EJTable createEJTable(TableSorter sorter, java.util.Vector visibleColumns)
           
protected  ExtendedTableModel createExtendedTableModel()
           
protected  void createPopupMenu()
          Creates and configures the popup menu.
protected  Table.QuickFieldText createQuickFilter()
           
protected  void createReportSetupMenu()
          Creates the report setup menu, and sets it to the menuReportSetup variable.
protected  javax.swing.JTable createTable()
          Creates the JTable contained in the Table
protected  javax.swing.table.TableCellRenderer createTableHeaderRenderer(javax.swing.JTable table)
          Creates a new TableCellRenderer to use in the table header renderer, by default creates a SortTableCellRenderer
protected  TableSorter createTableSorter(ExtendedTableModel model)
          Creates a Sorter for TableModels
 void deleteCalculatedColumn(java.lang.String column)
          Deletes the specified calculated column from the table.
 void deleteColumn(java.lang.String column)
          Deletes the specified column from the table.
protected  void deleteColumnFilter()
          Popup menu method.
 void deleteData()
          Deletes all the data stored in the table.
protected  EntityResult deleteEntityRow(int rowIndex)
          Deletes from the entity the specified row.
protected  void deleteFilter()
          Deletes all the filters that are being applied to the table.
protected  void deleteGroup()
          Returns the grouping for the column over which was pressed the mouse to select the deletion.
protected  void deletePivotTableConfiguration(java.lang.String confName)
          Deletes the pivot table configuration passed as parameter.
 void deleteRow(java.util.Hashtable keysValues)
          Deletes the row specified as parameter
 void deleteRow(int rowIndex)
          Deletes the row specified as parameter
 void deleteRow(java.lang.Object key)
          Deprecated.  
 void deleteRows(int[] rowIndex)
          Deletes the rows specified as parameter.
protected  void detail(java.awt.event.InputEvent event)
          Opens the detail form for the rows selected in the view
protected  void deteleFilterOrderConfiguration(java.lang.String confName)
          Deletes the specified sorting and the filtering preference.
 void disableInsert()
          Disables the table insert button, '+', even though the table has a detail form.
 void enableFiltering(boolean enable)
          Enables or disables the filtering functionality.
 void enableInsert()
          Enables the insert button, '+'.
 void enableSort(boolean enable)
          Enables or disables the sorting functionality.
protected  void evaluateButtonsState()
          Enables or disables the table button depending on the table state.
protected  boolean evaluateColumnsWidthAndPosition()
          Ensures that the setWidthAndPositionColumns() method only is called once.
protected  void evaluatePreferredRowsHeight()
          Adjusts the height of all rows to the contents inside them.
protected  void executeInsertRow()
           
 boolean existsSumRow()
          Deprecated.  
protected  void finalize()
          Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
protected  void fireEditingCancelled(int rowIndex, int viewColumnIndex)
          Notifies the edition listeners that the edition has been cancel.
protected  void fireEditingStopped(java.lang.Object value, java.lang.Object previousValue, int rowIndex, int viewColumnIndex)
          Notifies the edition listeners that the edition has been stopped.
protected  void fireEditingWillStop(java.lang.Object value, java.lang.Object previousValue, int rowIndex, int viewColumnIndex)
          Notifies the edition listeners that the edition will stop.
 void fireInsertTableInsertRowChange(InsertTableInsertRowEvent insertTableInsertRowEvent)
           
 void fitColumnSize(int column)
          Sets the preferred size to the specified column.
 void free()
          Liberates the memory occupied by the table component.
protected  java.util.Hashtable getAllColumnEditors()
          Creates a Hashtable with all the columns that have an editor.
protected  java.util.Hashtable getAllColumnRenderer()
          Creates a Hashtable with all the columns that have a renderer.
 java.util.Hashtable getAllPrimaryKeys()
          Returns all the values for the columns configured as key and keys for the table.
 boolean[] getAscendents()
          Returns an array with the sorting type of all the sorting columns.
 boolean getAscending()
          Returns the sorting mode corresponding to the first sorted column
 java.lang.Object getAttribute()
          Returns the table attribute.
 java.util.Vector getAttributeList()
          Returns the name of all the table columns.
 java.util.Hashtable getAttributesAndKeysData()
          Returns all the information in the table for all the attributes, this is, for all the columns in the table.
protected  javax.swing.Icon getButtonVisibleColsSetupIcon(boolean renderer)
           
protected  java.lang.String getCalculatedColsPreferenceStringValue()
           
 java.util.Vector getCalculatedColumns()
           
protected  java.lang.String getCalculatedColumnsConfPreferenceKey()
          Returns the client preferences key to store the calculated columns configuration.
 java.util.Hashtable getCalculatedRowData(int rowIndex)
          Returns a Hashtable containing the data associated to the row calculated columns.
 java.lang.Object getCellRenderedValue(int row, int column)
          This method returns the value of rendered cell take into account when a cell contains a combo reference cell renderer.
 java.lang.String getCellValueAsString(int row, int column)
          Get the value of the specified cell as a String, using the renderer if exist
 int getColumnIndex(java.lang.String columnName)
          Returns the view index of the column specified.
 java.lang.String getColumnName(int viewColumnIndex)
          Returns the name of the column appearing in the view at column position viewColumnIndex.
protected  java.lang.String getColumnsPosAndOrderPreferenceKey()
          Returns the key that will be used to identify the preference that will save the columns position and order.
 java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
          Returns the table constrains.
 java.util.Vector getCurrentColumns()
          Returns the current visible columns managed by the table.
 int getCurrentRowCount()
          Returns the total amount of records shown in the table.
protected  java.lang.String getCustomReportPreferenceKey()
          Returns the key that will be used to identify the preference that will save the custom reports associated to this table.
 java.lang.String getDebugInfo()
           
 javax.swing.table.TableCellRenderer[] getDefaultRenderers()
          Returns the renderers that are being used by the table.
 DetailForm getDetailForm()
          Returns the DetailForm configured for this table.
 java.lang.String getDetailFormSizePreferenceKey()
          Returns the key of the preference that stores the size of the DetailForm
protected  java.util.Hashtable getDetailWindowParameters()
           
 javax.swing.table.TableCellEditor getEditorForColumn(java.lang.String column)
           
 Table.EditorManager getEditorManager()
          Returns the Table.EditorManager configured in the present table.
 boolean getEnabledDetail()
          Determines if the detail form of the table is enable.
 java.lang.String getEntityName()
          Provides the name of the configured entity for the table.
 java.lang.String getExcelString()
          Creates a text to be interpreted by the Excel.
 java.util.Vector getFilterColumn()
          Returns a vector with the names of the columns that have filters applied in the table view.
protected  java.lang.String getFilterInfo()
          Returns a String with the information of all the filters that are being applied to the table.
protected  java.lang.String getFilterOrderConfigurationPreferenceKey()
          Returns the client preferences key to store the configuration of the sorting columns
protected  java.lang.String getFilterOrderConfPreferenceKey(java.lang.String columnName)
          Returns the client preferences key to store the filters for a determined column.
 java.lang.String getFormName()
          Returns the detail form name.
 java.util.Hashtable getGroupedRowData(int rowIndex)
          Returns the information corresponding to the row which index is passed as parameter.
 java.lang.String getHelpIdString()
           
 java.lang.String getHTMLString()
          Creates a HTML representation of the information in the table.
protected  java.util.Hashtable getInsertingData()
           
 javax.swing.JScrollPane getJScrollPane()
          Provides a reference to the table ScrollPane
 javax.swing.JTable getJTable()
          Provides a reference to the JTable element contained in the table.
 java.lang.String getKeyFieldName()
          Provides the value of the 'key' parameter, configured in the xml that defines the table.
 java.util.Vector getKeys()
          Returns all the configured keys for the table, this is, the column names correponding to the attributes key and keys.
 java.lang.String getLabelComponentText()
          Returns the label text component.
 int getMinRowHeight()
           
protected  java.util.Vector getOperationColumns()
           
protected  java.lang.String getOperationPreferenceKey()
          Returns the key that will be used to identify the preference that will save the operations applied to the different columns.
 java.lang.String getOrderColumn()
          Deprecated.  
 java.util.Vector getOrderColumnName()
          Returns a #Vector with the column names of all the visible columns.
 java.lang.String[] getOrderColumns()
          Returns the sorting column names.
 java.util.Vector getOriginalCalculatedColumns()
           
 java.util.Vector getOriginallyVisibleColumns()
          Returns the visible columns specified in the XML table definition.
 java.util.Vector getOriginalSumRowCols()
          Returns the sum row columns specified in the XML table definition.
 PageFetcher getPageFetcher()
           
protected  java.util.Hashtable getParameters()
          Get the configuration parameters.
 Form getParentForm()
          Returns a reference to the Form in which the table is placed.
 java.lang.Object getParentkeyEquivalentValue(java.lang.Object parentkey)
          Get the name of the table column associated with the parent key field name
 java.lang.String getParentKeyFieldName()
          Deprecated.  
 java.util.Vector getParentKeyList()
           
 java.util.Vector getParentKeys()
          Returns a vector containing the parent key names, this is, the names set in the XML to the attribute 'parentkeys'.
 java.util.Vector getParentKeys(boolean applyEquivalences)
           
 java.lang.Object getParentKeyValue()
          Deprecated.  
 java.util.Hashtable getParentKeyValues()
          Returns a #Hashtable in which the keys are the field names configured as table parent keys (using the names in the table entity if they are different that the form fields), and the values are the values those fields have in the table's parent form.
 java.util.Hashtable getParentKeyValues(boolean applyEquivalences)
          Returns a #Hashtable in which the keys are the field names configured as table parent keys, and the values are the values those fields have in the table's parent form.
protected  java.lang.String getPivotTablePreferenceKey()
          Returns the key that will be used to identify the preference that will save the pivot table configurations.
protected  java.lang.String getPivotTablePreferenceKey(java.lang.String configurationName)
          Returns the key that will be used to identify the preference that will save the pivot table configuration.
protected  int getPreferredColumnWidth(int modelColumnIndex, int maxRowNumber)
          Returns the preferred width for the column passed as param.
 java.util.Vector getPrimaryKeys()
          Deprecated.  
 java.util.Hashtable getPrintingData()
          Returns a #Hashtable with all the data of the visible columns.
 java.util.Hashtable getPrintingData(java.util.Vector askedColumns)
          Returns the data contained by the asked columns.
 int getPrintingFontSize()
           
 Table.QuickFieldText getQuickFilter()
           
 java.util.Vector getRealColumns()
          Returns a #Vector with the column names that have been set as visible columns in the XML, and that are visible in the table as well.
 int getRealRecordsNumber()
          Returns the total amount of records in the table.
 javax.swing.table.TableCellRenderer getRendererForColumn(java.lang.String column)
          Returns the CellRenderer set to the column.
 Table.RendererManager getRendererManager()
          Returns the Table.RendererManager configured for this table.
 java.util.Vector getReportColumns()
          Returns the columns used to build reports.
 java.util.Vector getRequieredCols()
          Get the required columns to insert.
protected  javax.swing.table.TableColumn getResizingColumn(javax.swing.table.JTableHeader header, java.awt.Point point, int columnIndex)
          Compares the point with the header of the column specified by the columnIndex.
 java.util.ResourceBundle getResourceBundle()
          Retuns the resources file used by the table.
 java.util.Hashtable getRowData(int rowIndex)
          Returns the data contained in the specified row.
 java.util.Hashtable getRowDataForKeys(java.util.Hashtable keysValues)
           
 int getRowForKeys(java.util.Hashtable keysValues)
          Returns the row view index specified by the keys passed as parameter.
 java.lang.Object getRowKey(int rowIndex)
          Deprecated.  
 java.lang.Object getRowKey(int rowIndex, java.lang.String keyName)
          Returns the value of one single key, for the specified row.
 java.util.Hashtable getRowKeys(int rowIndex)
          Returns the values of the keys for the index specified.
 int[] getRowsForKeys(java.util.Hashtable[] keysValuesToQuery)
          For each Hashtable passed as parameter in the array, the method will search the row in which the keys have the same value that the ones stored in the Hashtable.
protected  java.lang.String getRowText(int rowIndex)
          Returns a String with all the information displayed in the corresponding row, for each table attributes on that row.
 java.lang.Object getRowValue(int rowIndex, java.lang.String modelColumnIndex)
          Returns the value stored in a concrete column and row in the column model.
protected  java.lang.String getScrollText(int viewRowIndex)
          Creates the text to be displayed in the scroll.
 int getSelectedRow()
          Returns the index of the first selected row in the view.
 java.util.Hashtable getSelectedRowData()
          Returns the information contained in the selected rows in a #Hashtable.
 int[] getSelectedRows()
          Returns the selected rows indexes, sorted from higher to lower index
 int getSelectedRowsNumber()
          Counts the number of rows selected in the table.
 java.lang.Object getShownValue()
          Returns the information contained in the table.
 java.lang.Object getShownValue(java.lang.String[] cols)
           
 int getSQLDataType()
          Returns the table SQL type.
protected  java.util.Vector getSQLOrderList()
           
 java.lang.Number getSumColumn(java.lang.Object col)
          Returns the sum of all the values for the specified column.
 TableComponent getTableComponentReference(java.lang.Object key)
          Returns a reference an object that implements the TableComponent interface, stored in the table {link #controlsPanel}, specified by the key.
 java.util.List getTableComponentReferences()
           
 TableSorter getTableSorter()
           
 int getTemplateDataType()
          Returns the data type.
 java.lang.Object getTemplateDataValue()
          Gets the value to show in the template
 java.util.Vector getTextsToTranslate()
          Returns all text keys the table stores, and that must be translated in order to internationalize the component.
 java.lang.String getToolTipText(java.awt.event.MouseEvent e)
           
protected  java.lang.String getUser()
          Returns the user name.
 java.lang.Object getValue()
          Returns the table model.
 EntityResult getValueToExport()
          Creates a EntityResult object with the visible values of the table.
 EntityResult getValueToExport(boolean calculatedRow, boolean translateHeader)
          This method get the values of the renderers of all the cells in the table
 EntityResult getValueToExport(boolean calculatedRow, boolean translateHeader, boolean useNoStringKeys)
          This method get the values of the renderers of all the cells in the table
 java.lang.Object getValueToReport()
          Values that will be used to create custom reports
 int getViewOrderColumnIndex()
          Returns the view index of the first column that is sorted.
 java.util.Vector getVisibleColumns()
          Returns the current visible columns.
protected  java.lang.String getVisibleColumnsPreferenceKey()
          Returns the client preferences key to store the visible columns.
protected  java.lang.String getVisibleControlsPreferenceKey()
          Returns the client preferences key to store the visibility of the controls.
 boolean hasForm()
          If the table has a detail form, the method returns true.
 boolean hasParentKeys()
           
 boolean hasSumRow()
          Method that returns true when the table has sum rows.
protected  void hideTipScroll()
          Hides the tip corresponding to the vertical scroll.
 void init(java.util.Hashtable parameters)
          Method that configures the component.
 int[] initColumnsWidth()
          Sets the initial column width.
 int[] initColumnsWidth(int columnsWidth)
          Sets the initial column width to the one passed as parameter.
 void initPermissions()
          Some table functionalities and behaviours can be controled using client security, so the same table can be different depending on the user profile.
 void initPreferences(ApplicationPreferences aPrefs, java.lang.String user)
          Sets the table preferences.
protected  void initRendererEditors()
           
 void initTableComponentPermissions()
          Applies client permissions to the components in the controlsPanel.
protected  void insertFilter()
          Shows the FilterDialog.
protected  void insertFilterByValue()
          Popup menu method that gets the value in the cell over which the menu was displayed, gets that value, and filters the table applying that value as filter value.
protected  void insertGroup()
          Groups the selected column in the table by year.
protected  void insertGroup(int type)
          Groups the selected column by the defined type.
protected  void installButtonsListener()
          Installs the control panel buttons, and the listeners associated to them, when necessary.
protected  void installCalculedColsButton()
          Installs the button that manages the calculated columns configuration in the table.
protected  void installChartButton()
          Installs the table button that open the Charting dialog.
protected  void installConfSumRowButton()
          Creates, adds to the control panel, and creates the action listener related to the button that manages the configuration of the sum rows.
protected  void installConfVisibleColsButtons()
          Creates, adds to the control panel, and creates the action listener related to the button that manages the configuration of the visible columns.
protected  void installDefaultChartsButton()
          Creates, adds to the control panel, and creates the action listener related to the button that open the charting window.
 void installHelpId()
          Sets the help id for this class in the HelpUtilities
protected  void installPivotTableButton()
          Installs the button that provides pivot functionallity in the control panel.
protected  void installReportButton()
          Installs the Report Button
protected  void installScrollListener()
          Installs a #MouseMotionListener and a #MouseListener to the vertical scroll, in order to control the tip.
protected  boolean isAscending()
          Determines whether the first sorting applied to this table is ascending or not.
static boolean isChartEnabled()
          Check whether or not the charting functionality is enabled for this table.
protected  boolean isColumnWidthFixed(java.lang.String column)
          Determines whether the column has its width fixed or not.
 boolean isDataBaseInsert()
           
 boolean isDetailFormCreated()
          Returns true if the table detail form is created.
 boolean isEmpty()
          A table is considered empty when it has no records.
 boolean isEnabled()
          Determines if the object is enabled.
 boolean isFiltered()
          Determines if the table has filters.
 boolean isFiltered(int viewColumnIndex)
          Determines if the table column passed as param is filtered.
 boolean isFilteringEnabled()
           
protected  boolean isFrame()
          Determines whether the window in which the table is placed is a Frame or not
 boolean isGroup()
          Determines if the table is grouped.
 boolean isGrouped()
          Determines if the table is grouped.
 boolean isHidden()
          Returns always false.
 boolean isInsertingEnabled()
           
 boolean isModifiable()
          Returns always true.
 boolean isModifiableCalculatedColumns()
           
 boolean isModified()
          Returns always false.
 boolean isRequired()
          Returns always false.
 boolean isRestricted()
          Determines if the table is restricted, this is, has client permission restrictions.
 boolean isRowNumberColumnVisible()
           
 boolean isSorted()
          Determines if the table is sorted.
 boolean isSumRow(int rowIndex)
          Determines if the file passed as parameter is a sum row.
 boolean isTranslateHeader()
           
 boolean isVisibleColumn(java.lang.String columnName)
          Returns true if the column with the specified name is visible.
 void loadFilterOrderConfiguration(java.lang.String filterName)
          Loads the configuration which name is passed as parameter.
protected  void loadPivotTableConfiguration(java.lang.String confName)
          Load the concrete pivot table configuration.
protected  void menuPivotTablePreferences(java.awt.event.ActionEvent e)
          Method called by the table pivot button listener that shows the pivot table dialog.
 void openDetailForm(int rowIndex)
          Opens the table DetailForm with the data related to the row passed as parameter.
 void openInNewWindow(int[] modelSelectedRows)
          Opens the detail form for the rows passed as parameter in the array, in a new window each.
 void openInsertDetailForm()
          Opens the table DetailForm from in Insert mode.
 void packTable()
          Packs the table, in order to reduce the unused space.
protected  java.util.Hashtable parseFunction(java.util.Hashtable equivalences)
           
 void preferenceChanged(PreferenceEvent prefEvent)
          Is call when a preference changes, because the table is registered as a preference change listener.
 void prepareEditor(javax.swing.table.TableCellEditor editor)
          Establishes the initial parameters for the TableCellEditor components The method must be called to prepare all editors implementing ReferenceComponent Internationalization AccessForm CachedComponent
 void prepareRenderer(javax.swing.table.TableCellRenderer renderer)
          Establishes the initial parameters for the TableCellRenderer components The method must be called to prepare all renderes implementing CellRenderer ReferenceComponent Internationalization AccessForm CachedComponent
 void print()
          Starts the print table dialog.
protected  void printSelection()
          Opens the printing dialog to print the information contained in the selected rows.
 void printSilent(java.lang.String title)
          Starts the table printing process.
 void refresh()
          Updates the table content querying the entity specified in the XML, and filtering the results by the values set in the form to the fields corresponding to the attributes parentkey and otherkeys.
 void refresh(boolean autoSizeColumns)
          Updates the table content querying the entity specified in the XML, and filtering the results by the values set in the form to the fields corresponding to the attributes parentkey and otherkeys.
 void refreshEDT()
           
 void refreshEDT(boolean autoSizeColumns)
          Updates the table content querying the entity specified in the XML, and filtering the results by the values set in the form to the fields corresponding to the attributes parentkey and otherkeys.
 void refreshInThread(int delay)
          Refreshes the data in the table periodically.
 void refreshRow(int viewRowIndex)
          Refreshes the row passed as parameter.
 void refreshRow(int viewRowIndex, java.util.Hashtable oldkv)
          Refreshes the row passed as parameter.
 void refreshRows(int[] viewRowIndexes)
          Refreshes the rows passed as parameter
protected  void registerKeyListeners()
           
 void removeAllCharts()
          Removes all the charts available for this table.
 void removeButtonFromControls(javax.swing.AbstractButton button)
          Removes a button from the controls panel
 void removeChart(java.lang.String description)
          Removes the specified chart for this table
 void removeComponentFromControls(javax.swing.JComponent component)
          Removes a #JComponent from the controls panel.
 void removeInsertTableInsertRowListener(InsertTableInsertRowListener l)
           
 void removeTableEditorListener(TableEditorListener listener)
          Removes a #TableEditorListener from the table.
 void resetFilter()
          Removes all the filters set to the table.
 void resetFilter(java.lang.String column)
          Removes the filter set to the specified column.
 void resetGroup()
          Removes the grouping applied to the table.
 void resetOrder()
          Removes the sorting applied to the table.
protected  java.util.Hashtable retrieveOnSetValueData()
           
 void saveColumnsPositionAndWith()
          Saves the columns color and width as table preference.
protected  void saveFilterOrderConfiguration(java.lang.String confName, boolean savePositionAndWidth)
          Saves the table filter configuration with a name, and optionally the column position and widths.
 void saveOperations(java.util.Hashtable operations)
          Saves the operations passed as parameter in the preferences.
protected  void saveOrderFilterConfiguration(java.lang.String confName)
          Saves the table filter configuration.
protected  void savePivotTableConfiguration(java.lang.String confName)
          Saves the current pivot table configuration.
 void saveVisibleControlsConfiguration()
          Saves the current visible controls configuration in the preferences.
protected  void setAttributesToFix()
          Sets the fixed attributes to the detail form.
 void setAutoFixHead(boolean autoFixHead)
          Sets whether the table header will adjusts its size automatically.
protected  void setButtonTips()
          Configures the buttons tip.
 void setCellRendererColorManager(CellRenderer.CellRendererColorManager colorManager)
          Sets the color manager for all the CellRenderer contained by the table.
 void setCellRendererFontManager(CellRenderer.CellRendererFontManager fontManager)
          Sets the font manager for all the CellRenderer contained by the table.
 void setColumnEditor(java.lang.String col, javax.swing.table.TableCellEditor editor)
          Sets a column editor to the specified column. configures the editor if necessary.
 void setComponentLocale(java.util.Locale locale)
          Sets the element locale
protected  void setControlButtonsEnabled(boolean enabled)
          Sets whether the control buttons pannel will be enabled or not.
 void setControlsVisible(boolean visible)
          Sets whether or not the table controls are visible.
 void setControlsVisible(boolean vis, boolean savePreferences)
          Sets whether or not the table controls are visible.
 void setDefaultChartsEnabled(boolean enabled)
          Sets whether the default charting functionality is enabled or not.
protected  void setDefaultFilter()
          Sets the default filter to the table.
protected  void setDynamicTableConfiguration(java.lang.Object value)
           
 void setEditable(boolean editable)
          Sets whether the table is editable.
 void setEditableColumn(java.lang.String col)
          Allows the specified column to be editable from the Table.
 void setEditableColumn(java.lang.String col, boolean updateEntity)
          Allows the specified column to be editable from the Table.
 void setEditableColumn(java.lang.String col, boolean updateEntity, boolean editable)
          Activates or deactivates the editable mode for the specified column, in order to be the column editable or not from the Table.
 void setEditorManager(Table.EditorManager manager)
          Sets an Table.EditorManager to the present Table.
protected  void setEditors()
          Configure the editors for currency columns and time columns
 void setEnabled(boolean enabled)
          Sets whether or not this component is enabled.
 void setEnabledDetail(boolean enabled)
          Sets whether or not the DetailForm of this component is enabled.
 void setFont(java.awt.Font newFont)
          Sets the font for this component, for all the elements that must have a configured fort, for example renderers.
 void setFormBuilder(FormBuilder builder)
          Sets the FormBuilder that the table will use to build the detail form
protected  void setHorizontalScroll(boolean scrollH)
          Sets an horizontal scroll to the Table.
 void setImageRendererHeight(int pixels)
          Sets the height that will have the rendered images into the table.
protected  void setInnerValue(java.lang.Object value)
          Sets the data that the table will handle, this is, the columns information.
protected  void setInnerValue(java.lang.Object value, boolean autoSizeColumns)
          Sets the information the table will manage.
 void setInsertInDatabase(boolean insert)
           
 void setInsertInDataBase(boolean insert)
          Deprecated. Use setInsertInDatabase
 void setLineRemark(boolean lineRemark)
          Sets if the table must have even rows of one color and odd rows of other
 void setMemoryOperations(boolean inMemory)
          Configures the table to perform the operations in memory.
 void setMinRowHeight(int height)
           
 void setModifiable(boolean modif)
          Empty method.
 void setModified(boolean modif)
          Empty method.
 void setParentForm(Form form)
          Sets the Form in which the table is placed.
 void setParentFrame(java.awt.Frame frame)
          Sets the frame that will be used as parent of the dialogs.
protected  void setPivotTablePreferences(javax.swing.JDialog pivotDialog)
          Adds the fuctionallity of manage preferences to the pivot table dialog.
protected  int[] setPreferredTableColumnWidths()
          Sets the preferred width for all columns.
protected  int[] setPreferredTableColumnWidths(int maxRows)
          Sets the preferred width for the columns in the table, up to the maximum number of rows.
protected  int[] setPreferredTableColumnWidths(java.util.Vector visibleColumns)
          Sets the current column width to the preferred column width for the columns past as parameter
protected  int[] setPreferredTableColumnWidths(java.util.Vector visibleColumns, javax.swing.JProgressBar progressBar)
          Sets the current column width to the preferred column width for the columns past as parameter
protected  void setPreferredTableWidth()
          Sets the preferred table width.
 void setQuickFilterValue(java.lang.String text)
           
 void setReferenceLocator(EntityReferenceLocator referenceLocator)
          Sets a reference to the EntityReferenceLocator
 void setRemoveInDatabase(boolean remove)
           
 void setRemoveInDataBase(boolean insert)
          Deprecated. Use setRemoveInDatabase
 void setRendererForColumn(java.lang.String column, javax.swing.table.TableCellRenderer renderer)
          Sets a concrete renderer for the specified table column.
 void setRendererForColumnExp(java.lang.String column, javax.swing.table.TableCellRenderer renderer)
          Sets a concrete renderer for the specified table column.
 void setRendererManager(Table.RendererManager manager)
          Sets the RendererManager, which provides the renderes depending on the object type that must be renderer.
protected  void setRenderers()
          Sets the default renders to the class types.
 void setReportColumns(java.util.Vector columns)
           
 void setRequired(boolean req)
          Empty method.
 void setResourceBundle(java.util.ResourceBundle resourceBundle)
          Sets the language resource bundle.
 void setRowNumberColumnVisible(boolean visible)
          Sets whether or not the row number column is visible.
 void setScrollTipEnabled(boolean enable)
          Sets whether a tip informing about the record number when pressing the table scroll must be shown or not.
protected  void setScrollTooltipText()
           
 void setSelectedRow(int viewRowIndex)
          Selects a row in the table
 void setSelectedRows(int[] viewRowIndex)
          Selects one or more rows in the table
 void setTableComponentEnabled(java.lang.String key, boolean enabled)
          Sets whether or not the specified component of the table should be enabled or not.
 void setTableComponentVisible(java.lang.String key, boolean visible)
          Sets whether or not the table component is visible.
protected  void setTextsMenu()
          Sets all the table texts in the table popup menu.
protected  void setTip()
          Configures and sets the table tips.
 void setUpdateInDatabase(boolean update)
          Enabled/disabled updating the changes in the database when the user change the values stored in those.
 void setValue(java.lang.Object value)
          Sets values for the table.
 void setValue(java.lang.Object value, boolean autoSizeColumns)
          Sets values for the table.
 void setVisible(boolean vis)
          Sets the table visible.
 void setVisibleColsConfigurationAllowed(boolean allowConfiguration)
          Sets whether or not the visible columns can be configured by the user.
protected  void setVisibleColumns()
          Configures the columns to show in the Table init process.
 void setVisibleColumns(java.util.Vector visibleColumns)
          Establishes as visible columns the columns passed as parameter and shows the columns.
 void setVisibleColumns(java.util.Vector visibleColumns, boolean autoSizeColumns)
          Establishes as visible columns the columns passed as parameter and shows the columns.
protected  boolean setWidthAndPositionColumns()
          Sets the column width and position to the values stored in the preferences.
protected  void showCalculatorWindow(java.lang.Object source)
          Shows the calculator window
 void showChart(java.lang.String description)
          Shows the chart window.
protected  void showChartMenu(java.awt.event.ActionEvent e)
          Shows the ChartMenu
protected  void showConfSumRowDialog()
           
 void showCurrencyValue(int currencyType)
          Shows the currency symbol when CurrencyCellRenderer are used
 void showCustomReportsWindow()
          Shows the custom reports windows, when the table is not empty.
 void showCustomReportsWindow(java.lang.String configuration)
          Shows the custom reports windows, when the table is not empty.
protected  void showPopupMenu(int x, int y)
          Shows the popup menu.
protected  void showTipScroll(javax.swing.JScrollBar scrollBar, int x, int y, int viewRowIndex)
          Shows the tip corresponding to the vertical scroll.
 void sortBy(java.lang.String column, boolean ascendant)
          Sorts the table based on the column values.
 void sortByWithoutReset(java.lang.String column, boolean asc)
          Sorts the table based on the column values.
 void toggleControls()
          Toggles the control panel visibility.
 void update()
          Repaints the component.
protected  void updateFilterInfo()
          Updates the text in the table that shows the current filter status,which shows the columns that are being filtered and the values that are being applied to those columns.
protected  void updateOnSetValueSetAttributes(java.util.Hashtable data)
           
 void updateRowData(java.util.Hashtable rowData)
          Updates row values in the table.
 void updateRowData(java.util.Hashtable rowData, java.util.Hashtable newkv)
           
 void updateRowData(java.util.Hashtable rowData, java.util.List columns, java.util.Hashtable newkv)
           
protected  EntityResult updateTable(java.util.Hashtable keysValues, int viewColumnIndex, javax.swing.table.TableCellEditor tableCellEditor, java.util.Hashtable otherData, java.lang.Object previousData)
          Updates the value determined by the specified column and row in the Entity.
protected  EntityResult updateTable(int rowIndex, int viewColumnIndex)
          Deprecated. Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)
protected  EntityResult updateTable(int rowIndex, int viewColumnIndex, java.util.Hashtable otherData)
          Deprecated. Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)
protected  EntityResult updateTable(int rowIndex, int viewColumnIndex, java.util.Hashtable otherData, java.lang.Object previousData)
          Deprecated. Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)
 void updateUI()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSERT_TABLE

public static final java.lang.String INSERT_TABLE
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

TRANSLATE_HEADER

public static final java.lang.String TRANSLATE_HEADER
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DYNAMIC

public static final java.lang.String DYNAMIC
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

REQUIRED_COLS

public static final java.lang.String REQUIRED_COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

REPORT_COLS

public static final java.lang.String REPORT_COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DATABASE_REMOVE

public static final java.lang.String DATABASE_REMOVE
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DATABASE_INSERT

public static final java.lang.String DATABASE_INSERT
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

rendererEditorConfigurationFile

public static java.lang.String rendererEditorConfigurationFile
Complete path to renderer and editor configuration file. It is used in constructor of this class.

See Also:
TableConfigurationManager

XLS_EXPORT_CLASS

public static java.lang.String XLS_EXPORT_CLASS
Default class to use in the xls export button


QUICK_FILTER

public static final java.lang.String QUICK_FILTER
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

QUICK_FILTER_VISIBLE

public static final java.lang.String QUICK_FILTER_VISIBLE
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

PIVOT_BUTTON

public static final java.lang.String PIVOT_BUTTON
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CUSTOM_CHARTS

public static final java.lang.String CUSTOM_CHARTS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CONTROLS_VISIBLE

public static final java.lang.String CONTROLS_VISIBLE
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

MEMO_RENDER

public static final java.lang.String MEMO_RENDER
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

UPDATE_ENTITY_EDITABLE_COLUMNS

public static final java.lang.String UPDATE_ENTITY_EDITABLE_COLUMNS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

EDITABLE_COLUMNS

public static final java.lang.String EDITABLE_COLUMNS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

TIME_RENDER

public static final java.lang.String TIME_RENDER
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CURRENCY

public static final java.lang.String CURRENCY
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CALCULED_COLS_REQUIRED_FIELDS

public static final java.lang.String CALCULED_COLS_REQUIRED_FIELDS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CALCULED_COLS

public static final java.lang.String CALCULED_COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

MODIFIABLE_CALCULATED_COLUMNS

public static final java.lang.String MODIFIABLE_CALCULATED_COLUMNS
See Also:
Constant Field Values

FIX_ATTR

public static final java.lang.String FIX_ATTR
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

OTHER_KEYS

public static final java.lang.String OTHER_KEYS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

FONT_SIZE

public static final java.lang.String FONT_SIZE
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CONTROLS

public static final java.lang.String CONTROLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DYNAMIC_FORM

public static final java.lang.String DYNAMIC_FORM
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

FORM

public static final java.lang.String FORM
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

PARENTKEY

public static final java.lang.String PARENTKEY
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

KEYS

public static final java.lang.String KEYS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

KEY

public static final java.lang.String KEY
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

VISIBLE_COLS

public static final java.lang.String VISIBLE_COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DEFAULT_VISIBLE_COLS

public static final java.lang.String DEFAULT_VISIBLE_COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

COLS

public static final java.lang.String COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

REFRESH_BUTTON

public static final java.lang.String REFRESH_BUTTON
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

ROWS

public static final java.lang.String ROWS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

QUERY_ROWS

public static final java.lang.String QUERY_ROWS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DELETE_BUTTON

public static final java.lang.String DELETE_BUTTON
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

SUM_ROW

public static final java.lang.String SUM_ROW
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

TITLE

public static final java.lang.String TITLE
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

MEMORY_ENTITY

public static final java.lang.String MEMORY_ENTITY
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

ENTITY

public static final java.lang.String ENTITY
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

NUM_ROWS_COLUMN

public static final java.lang.String NUM_ROWS_COLUMN
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

HORIZONTAL_SCROLL

public static final java.lang.String HORIZONTAL_SCROLL
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

AUTO_ADJUST_HEADER

public static final java.lang.String AUTO_ADJUST_HEADER
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DISABLE_INSERT

public static final java.lang.String DISABLE_INSERT
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

CONF_VISIBLE_COLS

public static final java.lang.String CONF_VISIBLE_COLS
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DEFAULT_NEW_WINDOW

public static final java.lang.String DEFAULT_NEW_WINDOW
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

OPEN_NEW_WINDOW

public static final java.lang.String OPEN_NEW_WINDOW
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

ONSETVALUESET

public static final java.lang.String ONSETVALUESET
Attribute name allowed in the XML.

See Also:
init(java.util.Hashtable), Constant Field Values

DEFAULT_BUTTONS

public static final java.lang.String DEFAULT_BUTTONS
See Also:
Constant Field Values

OPERATION_PREFERENCE

public static final java.lang.String OPERATION_PREFERENCE
Key name to store preferences related to the Table

See Also:
Constant Field Values

SHOWGRID

public static final java.lang.String SHOWGRID
See Also:
Constant Field Values

MINROWHEIGHT

public static final java.lang.String MINROWHEIGHT
See Also:
Constant Field Values

TABLEOPAQUE

public static final java.lang.String TABLEOPAQUE
See Also:
Constant Field Values

TABLEBGCOLOR

public static final java.lang.String TABLEBGCOLOR
See Also:
Constant Field Values

CODS

public static final java.lang.String CODS
Attribute name allowed in the XML

See Also:
init(java.util.Hashtable), Constant Field Values

CONTINUOUS

public static final java.lang.String CONTINUOUS
See Also:
Constant Field Values

SINGLE

public static final java.lang.String SINGLE
See Also:
Constant Field Values

SELECTIONMODE

public static final java.lang.String SELECTIONMODE
See Also:
Constant Field Values

BACKGROUND_FORM_BUILDER

public static final java.lang.String BACKGROUND_FORM_BUILDER
Attribute name allowed in the XML

See Also:
init(java.util.Hashtable), Constant Field Values

DEFAULT_VALUE_SETUP_VISIBLE_COLS

public static boolean DEFAULT_VALUE_SETUP_VISIBLE_COLS
Allows the user to modify the visible cols


defaultPivotTableVisibility

public static boolean defaultPivotTableVisibility
Allows the user to modify pivot table visibility


DEFAULT_QUICK_FILTER

public static boolean DEFAULT_QUICK_FILTER
Allows the user to modify quickfilter functionality


defaultQuickFilterVisible

public static boolean defaultQuickFilterVisible
Allows the user to modify quickfilter visibility


ORDER_COLS_BY_VISIBLE_COLS

public static boolean ORDER_COLS_BY_VISIBLE_COLS
Forces the column order to like the visible cols order.


DEFAULT_VALUE_SET_HEIGHT_HEAD

public static boolean DEFAULT_VALUE_SET_HEIGHT_HEAD
Deprecated.  


SHOW_OPEN_IN_NEW_WINDOW_MENU

public static boolean SHOW_OPEN_IN_NEW_WINDOW_MENU
The table opens the detail forms in new windows, instead using dialogs.


PERMIT_SAVE_FILTER_ORDER_CONFIGURATION

public static boolean PERMIT_SAVE_FILTER_ORDER_CONFIGURATION
Allows the user to save the filter configuration

See Also:
#confFiltroOrden

PIE

public static final int PIE
Field number for charting indicating the chart type.

See Also:
Constant Field Values

PIE_3D

public static final int PIE_3D
Field number for charting indicating the chart type.

See Also:
Constant Field Values

BAR

public static final int BAR
Field number for charting indicating the chart type.

See Also:
Constant Field Values

BAR_3D

public static final int BAR_3D
Field number for charting indicating the chart type.

See Also:
Constant Field Values

STACKED_3D

public static final int STACKED_3D
Field number for charting indicating the chart type.

See Also:
Constant Field Values

LINE

public static final int LINE
Field number for charting indicating the chart type.

See Also:
Constant Field Values

MONTH

public static final int MONTH
Field number for charting indicating the period type.

See Also:
Constant Field Values

QUARTER

public static final int QUARTER
Field number for charting indicating the period type.

See Also:
Constant Field Values

YEAR

public static final int YEAR
Field number for charting indicating the period type.

See Also:
Constant Field Values

DEBUG_MEMORY

public static boolean DEBUG_MEMORY
Configures the MEMORY trace, to see how much memory is being used by the table. This traces are focused on the printing process.


CHART_ENABLED

public static boolean CHART_ENABLED
Allows the charting functionality


CHART_V1

protected static boolean CHART_V1

SAVE_WIDTH_POSITION_COLUMNS

public static final java.lang.String SAVE_WIDTH_POSITION_COLUMNS
The key for the preference to store the columns position

See Also:
Constant Field Values

M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES

public static final java.lang.String M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES
GUI text

See Also:
Constant Field Values

HEAD_TIP_COD

public static final java.lang.String HEAD_TIP_COD
GUI text

See Also:
Constant Field Values

SORT_HEAD_TIP_COD

public static final java.lang.String SORT_HEAD_TIP_COD
GUI text

See Also:
Constant Field Values

FILTER_HEAD_TIP_COD

public static final java.lang.String FILTER_HEAD_TIP_COD
GUI text

See Also:
Constant Field Values

OF

public static final java.lang.String OF
GUI text

See Also:
Constant Field Values

MIN_ROW_HEIGHT

public static int MIN_ROW_HEIGHT
The minimum row height default value


DOWN_10

public static final java.lang.String DOWN_10
Deprecated.  

GUI text

See Also:
Constant Field Values

DOWN_50

public static final java.lang.String DOWN_50
Deprecated.  

GUI text

See Also:
Constant Field Values

DOWN_100

public static final java.lang.String DOWN_100
Deprecated.  

GUI text

See Also:
Constant Field Values

DOWN_ALL

public static final java.lang.String DOWN_ALL
Deprecated.  

GUI text

See Also:
Constant Field Values

TOTAL

public static final java.lang.String TOTAL
Deprecated.  

GUI text

See Also:
Constant Field Values

RECORDS

public static final java.lang.String RECORDS
GUI text

See Also:
Constant Field Values

IT_IS_SHOWED

public static final java.lang.String IT_IS_SHOWED
GUI text

See Also:
Constant Field Values

TOTAL_es_ES

public static final java.lang.String TOTAL_es_ES
GUI text

See Also:
Constant Field Values

RECORDS_es_ES

public static final java.lang.String RECORDS_es_ES
GUI text

See Also:
Constant Field Values

IT_IS_SHOWED_es_ES

public static final java.lang.String IT_IS_SHOWED_es_ES
GUI text

See Also:
Constant Field Values

TIP_CLIPBOARD_COPY

public static final java.lang.String TIP_CLIPBOARD_COPY
GUI text

See Also:
Constant Field Values

TIP_EXCEL_EXPORT

public static final java.lang.String TIP_EXCEL_EXPORT
GUI text

See Also:
Constant Field Values

TIP_PRINTING

public static final java.lang.String TIP_PRINTING
GUI text

See Also:
Constant Field Values

PRINT_START

public static final java.lang.String PRINT_START
GUI text

See Also:
Constant Field Values

TIP_HTML_EXPORT

public static final java.lang.String TIP_HTML_EXPORT
GUI text

See Also:
Constant Field Values

TIP_INSERT_BUTTON

public static final java.lang.String TIP_INSERT_BUTTON
GUI text

See Also:
Constant Field Values

TIP_CHART_MENU

public static final java.lang.String TIP_CHART_MENU
GUI text

See Also:
Constant Field Values

TIP_VISIBLES_COLS_SETUP

public static final java.lang.String TIP_VISIBLES_COLS_SETUP
GUI text

See Also:
Constant Field Values

TIP_SUMROW_SETUP

public static final java.lang.String TIP_SUMROW_SETUP
GUI text

See Also:
Constant Field Values

TIP_FILTER_ORDEN_CONF

public static final java.lang.String TIP_FILTER_ORDEN_CONF
GUI text

See Also:
Constant Field Values

TIP_REPORT_PRINTING

public static final java.lang.String TIP_REPORT_PRINTING
GUI text

See Also:
Constant Field Values

TIP_CHART_MENU_es_ES

public static final java.lang.String TIP_CHART_MENU_es_ES
GUI text

See Also:
Constant Field Values

TIP_CLIPBOARD_COPY_es_ES

public static final java.lang.String TIP_CLIPBOARD_COPY_es_ES
GUI text

See Also:
Constant Field Values

TIP_EXCEL_EXPORT_es_ES

public static final java.lang.String TIP_EXCEL_EXPORT_es_ES
GUI text

See Also:
Constant Field Values

TIP_PRINTING_es_ES

public static final java.lang.String TIP_PRINTING_es_ES
GUI text

See Also:
Constant Field Values

TIP_HTML_EXPORT_es_ES

public static final java.lang.String TIP_HTML_EXPORT_es_ES
GUI text

See Also:
Constant Field Values

TIP_INSERT_BUTTON_es_ES

public static final java.lang.String TIP_INSERT_BUTTON_es_ES
GUI text

See Also:
Constant Field Values

TIP_VISIBLES_COLS_SETUP_es_ES

public static final java.lang.String TIP_VISIBLES_COLS_SETUP_es_ES
GUI text

See Also:
Constant Field Values

TIP_SAVE_FILTER_ORDER_CONFIGURATION_es_ES

public static final java.lang.String TIP_SAVE_FILTER_ORDER_CONFIGURATION_es_ES
GUI text

See Also:
Constant Field Values

TIP_REPORT_PRINTING_es_ES

public static final java.lang.String TIP_REPORT_PRINTING_es_ES
GUI text

See Also:
Constant Field Values

TIP_PIVOT_TABLE_es_ES

public static final java.lang.String TIP_PIVOT_TABLE_es_ES
GUI text

See Also:
Constant Field Values

TIP_PIVOT_TABLE

public static final java.lang.String TIP_PIVOT_TABLE
GUI text

See Also:
Constant Field Values

TIP_CALCULATED_COLUMNS

public static final java.lang.String TIP_CALCULATED_COLUMNS
See Also:
Constant Field Values

M_PRINTING_CANCELED

public static final java.lang.String M_PRINTING_CANCELED
GUI text

See Also:
Constant Field Values

M_ERROR_PRINTING_TABLE

public static final java.lang.String M_ERROR_PRINTING_TABLE
GUI text

See Also:
Constant Field Values

M_PRINTING_FINISHED

public static final java.lang.String M_PRINTING_FINISHED
GUI text

See Also:
Constant Field Values

M_WOULD_YOU_LIKE_TO_DELETE_ROWS

public static final java.lang.String M_WOULD_YOU_LIKE_TO_DELETE_ROWS
GUI text

See Also:
Constant Field Values

M_SELECTION_ONLY_ONE_ROW_TO_OPEN_DETAIL_FORM

public static final java.lang.String M_SELECTION_ONLY_ONE_ROW_TO_OPEN_DETAIL_FORM
GUI text

See Also:
Constant Field Values

M_SELECTION_LESS_THAN_5_ROWS

public static final java.lang.String M_SELECTION_LESS_THAN_5_ROWS
GUI text

See Also:
Constant Field Values

M_WOULD_YOU_LIKE_TO_DELETE_THIS_CONFIGURATION_OF_FILTER

public static final java.lang.String M_WOULD_YOU_LIKE_TO_DELETE_THIS_CONFIGURATION_OF_FILTER
GUI text

See Also:
Constant Field Values

FILTER_COLUMN_es_ES

public static final java.lang.String FILTER_COLUMN_es_ES
GUI text

See Also:
Constant Field Values

FILTER_BY_VALUE_es_ES

public static final java.lang.String FILTER_BY_VALUE_es_ES
GUI text

See Also:
Constant Field Values

DELETE_FILTER_es_ES

public static final java.lang.String DELETE_FILTER_es_ES
GUI text

See Also:
Constant Field Values

DELETE_FILTER_COLUMN

public static final java.lang.String DELETE_FILTER_COLUMN
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_es_ES

public static final java.lang.String GROUP_COLUMN_es_ES
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_DATE_es_ES

public static final java.lang.String GROUP_COLUMN_BY_DATE_es_ES
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_YEAR

public static final java.lang.String GROUP_COLUMN_BY_YEAR
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_YEAR_MONTH

public static final java.lang.String GROUP_COLUMN_BY_YEAR_MONTH
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_YEAR_MONTH_DAY

public static final java.lang.String GROUP_COLUMN_BY_YEAR_MONTH_DAY
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_QUARTER_YEAR

public static final java.lang.String GROUP_COLUMN_BY_QUARTER_YEAR
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_QUARTER

public static final java.lang.String GROUP_COLUMN_BY_QUARTER
GUI text

See Also:
Constant Field Values

GROUP_COLUMN_BY_MONTH

public static final java.lang.String GROUP_COLUMN_BY_MONTH
GUI text

See Also:
Constant Field Values

GROUP_FUNCTION

public static final java.lang.String GROUP_FUNCTION
GUI text

See Also:
Constant Field Values

UNGROUP_COLUMN_es_ES

public static final java.lang.String UNGROUP_COLUMN_es_ES
GUI text

See Also:
Constant Field Values

DELETE_GROUP_es_ES

public static final java.lang.String DELETE_GROUP_es_ES
GUI text

See Also:
Constant Field Values

COPY_CELL

public static final java.lang.String COPY_CELL
GUI text

See Also:
Constant Field Values

COPY_SELECTION

public static final java.lang.String COPY_SELECTION
GUI text

See Also:
Constant Field Values

PRINTING_SELECTION

public static final java.lang.String PRINTING_SELECTION
GUI text

See Also:
Constant Field Values

REFRESH

public static final java.lang.String REFRESH
GUI text

See Also:
Constant Field Values

PAGEABLE

public static final java.lang.String PAGEABLE
GUI text

See Also:
Constant Field Values

SHOW_HIDE_CONTROLS

public static final java.lang.String SHOW_HIDE_CONTROLS
GUI text

See Also:
Constant Field Values

SUM_es_ES

public static final java.lang.String SUM_es_ES
Operation column type

See Also:
Constant Field Values

AVERAGE_es_ES

public static final java.lang.String AVERAGE_es_ES
Operation column type

See Also:
Constant Field Values

MAXIMUM_es_ES

public static final java.lang.String MAXIMUM_es_ES
Operation column type

See Also:
Constant Field Values

MINIMUM_es_ES

public static final java.lang.String MINIMUM_es_ES
Operation column type

See Also:
Constant Field Values

COUNT_es_ES

public static final java.lang.String COUNT_es_ES
Operation column type

See Also:
Constant Field Values

COPY_CELL_es_ES

public static final java.lang.String COPY_CELL_es_ES
GUI text

See Also:
Constant Field Values

COPY_SELECTION_es_ES

public static final java.lang.String COPY_SELECTION_es_ES
GUI text

See Also:
Constant Field Values

PRINTING_SELECTION_es_ES

public static final java.lang.String PRINTING_SELECTION_es_ES
GUI text

See Also:
Constant Field Values

REFRESH_es_ES

public static final java.lang.String REFRESH_es_ES
GUI text

See Also:
Constant Field Values

SHOW_HIDE_CONTROLS_es_ES

public static final java.lang.String SHOW_HIDE_CONTROLS_es_ES
GUI text

See Also:
Constant Field Values

editKey

protected static final java.lang.String editKey
GUI text

See Also:
Constant Field Values

insertKey

protected static final java.lang.String insertKey
GUI text

See Also:
Constant Field Values

detailKey

protected static final java.lang.String detailKey
GUI text

See Also:
Constant Field Values

resetOrderKey

protected static final java.lang.String resetOrderKey
GUI text

See Also:
Constant Field Values

openInNewWindowKey

protected static final java.lang.String openInNewWindowKey
GUI text

See Also:
Constant Field Values

totalText

protected java.lang.String totalText
GUI text


recordsText

protected java.lang.String recordsText
GUI text


shownText

protected java.lang.String shownText
GUI text


rDate

protected DateCellRenderer rDate
Default renderer for the table


rRowHead

protected RowHeadCellRenderer rRowHead
Default renderer for the table


rBoolean

protected BooleanCellRenderer rBoolean
Default renderer for the table


rReal

protected RealCellRenderer rReal
Default renderer for the table


rObject

protected ObjectCellRenderer rObject
Default renderer for the table


rImagen

protected ImageCellRenderer rImagen
Default renderer for the table


rHead

protected HeadCellRenderer rHead
Default renderer for the table


rMemo

protected MemoCellRenderer rMemo
Default renderer for the table


memoRenderColumns

protected java.util.Vector memoRenderColumns
The table columns that will use memo render


minRowHeight

protected int minRowHeight
Minimum row height, by default is MIN_ROW_HEIGHT


defaultShowGridValue

public static boolean defaultShowGridValue

showGridValue

protected boolean showGridValue

dynamicTable

protected boolean dynamicTable

translateHeader

protected boolean translateHeader

listenerHighlightButtons

protected java.awt.event.MouseListener listenerHighlightButtons

borderbuttons

protected boolean borderbuttons

opaquebuttons

protected boolean opaquebuttons

buttonIcons

protected java.util.Hashtable buttonIcons

dataBaseInsert

protected boolean dataBaseInsert

dataBaseRemove

protected boolean dataBaseRemove

vrequiredCols

protected java.util.Vector vrequiredCols
List with the required columns to insert


vupdateEditableColumns

protected java.util.Vector vupdateEditableColumns

inserting

protected boolean inserting
boolean to know when the insertion is executing


insertTableInsertRowListenerList

protected javax.swing.event.EventListenerList insertTableInsertRowListenerList
List with all the listeners to the insert event


columnWidthListener

protected java.beans.PropertyChangeListener columnWidthListener
A property change listener that when the property in the event is named width will set the preferred row height.

See Also:
evaluatePreferredRowsHeight()

parameters

protected java.util.Hashtable parameters
The parameters passed to the table when it is builded. These parameters are set in the xml.


layout

protected java.awt.BorderLayout layout

table

protected javax.swing.JTable table
The JTable inside this table


attributes

protected java.util.Vector attributes
Contains the columns and keys names


formName

protected java.lang.String formName
The detail form name


scrollPane

protected javax.swing.JScrollPane scrollPane

entity

protected java.lang.String entity
The table entity


memoryEntity

protected java.lang.String memoryEntity

primaryKey

protected java.util.Vector primaryKey

keyField

protected java.lang.String keyField

keyFields

protected java.util.Vector keyFields

codValues

protected java.util.Hashtable codValues

parentKey

protected java.lang.String parentKey

otherParentKeys

protected java.util.Vector otherParentKeys

parentkeys

protected java.util.List parentkeys
List with all the fields in the parent form used to filter the table values


hParentkeyEquivalences

protected java.util.Hashtable hParentkeyEquivalences

onsetvaluesetAttributes

protected java.util.Vector onsetvaluesetAttributes
The vector with attributes to update when data field value changed. By default, null.


hOnSetValueSetEquivalences

protected java.util.Hashtable hOnSetValueSetEquivalences
This object is used to store onsetvalueset attributes and equivalences (for these fields in entity) when structure of parameter onsetvalueset is: "fieldonset1:SUM(fieldentitypk1);fieldonset2:CONCAT(fieldentitypk2);...fieldonsetn:MAX(fieldentitypkn)"


hOnSetValueSetFunction

protected java.util.Hashtable hOnSetValueSetFunction
This object is used to store onsetvalueset attributes and function when structure of parameter onsetvalueset is: "fieldonset1:SUM(fieldentitypk1);fieldonset2:CONCAT(fieldentitypk2);...fieldonsetn:MAX(fieldentitypkn)"


parentFrame

protected java.awt.Frame parentFrame

formBuilder

protected FormBuilder formBuilder

detailForm

protected DetailForm detailForm

parentForm

protected Form parentForm

visibleFieldKeyColumn

protected boolean visibleFieldKeyColumn

enabled

protected boolean enabled

enabledDetail

protected boolean enabledDetail

showControls

protected boolean showControls

defaultButtons

protected boolean defaultButtons

controlsVisible

public boolean controlsVisible

quickFilterVisible

protected boolean quickFilterVisible

allowSetupVisibleColumns

protected boolean allowSetupVisibleColumns

controlsPanel

protected javax.swing.JPanel controlsPanel

lInfoFilter

protected javax.swing.JLabel lInfoFilter

quickFilterText

protected Table.QuickFieldText quickFilterText

FIND_MESSAGE

public static final java.lang.String FIND_MESSAGE
See Also:
Constant Field Values

QUICK_FILTER_PAGEABLE_MESSAGE_KEY

public static final java.lang.String QUICK_FILTER_PAGEABLE_MESSAGE_KEY
See Also:
Constant Field Values

QUICK_FILTER_LABEL_KEY

public static final java.lang.String QUICK_FILTER_LABEL_KEY
See Also:
Constant Field Values

BUTTON_CHANGEVIEW

public static final java.lang.String BUTTON_CHANGEVIEW
Button key

See Also:
Constant Field Values

BUTTON_COPY

public static final java.lang.String BUTTON_COPY
Button key

See Also:
Constant Field Values

BUTTON_EXCEL_EXPORT

public static final java.lang.String BUTTON_EXCEL_EXPORT
Button key

See Also:
Constant Field Values

BUTTON_HTML_EXPORT

public static final java.lang.String BUTTON_HTML_EXPORT
Button key

See Also:
Constant Field Values

BUTTON_PLUS

public static final java.lang.String BUTTON_PLUS
Button key

See Also:
Constant Field Values

BUTTON_PRINTING

public static final java.lang.String BUTTON_PRINTING
Button key

See Also:
Constant Field Values

BUTTON_DELETE

public static final java.lang.String BUTTON_DELETE
Button key

See Also:
Constant Field Values

BUTTON_REFRESH

public static final java.lang.String BUTTON_REFRESH
Button key

See Also:
Constant Field Values

BUTTON_CHART

public static final java.lang.String BUTTON_CHART
Button key

See Also:
Constant Field Values

BUTTON_DEFAULT_CHART

public static final java.lang.String BUTTON_DEFAULT_CHART
Button key

See Also:
Constant Field Values

BUTTON_VISIBLE_COLS_SETUP

public static final java.lang.String BUTTON_VISIBLE_COLS_SETUP
Button key

See Also:
Constant Field Values

BUTTON_SUM_ROW_SETUP

public static final java.lang.String BUTTON_SUM_ROW_SETUP
Button key

See Also:
Constant Field Values

BUTTON_REPORT

public static final java.lang.String BUTTON_REPORT
Button key

See Also:
Constant Field Values

BUTTON_SAVE_FILTER_ORDER_SETUP

public static final java.lang.String BUTTON_SAVE_FILTER_ORDER_SETUP
Button key

See Also:
Constant Field Values

BUTTON_CALCULATED_COL

public static final java.lang.String BUTTON_CALCULATED_COL
Button key

See Also:
Constant Field Values

buttonChangeView

protected javax.swing.JButton buttonChangeView
Table button. It is placed in the control panel.


buttonCopy

protected javax.swing.JButton buttonCopy
Table button. It is placed in the control panel.


buttonExcelExport

protected javax.swing.JButton buttonExcelExport
Table button. It is placed in the control panel.


buttonHTMLExport

protected javax.swing.JButton buttonHTMLExport
Table button. It is placed in the control panel.


buttonPlus

protected javax.swing.JButton buttonPlus
Table button. It is placed in the control panel.


buttonPlus2

protected javax.swing.JButton buttonPlus2
Table button. It is placed in the control panel.


buttonPrint

protected javax.swing.JButton buttonPrint
Table button. It is placed in the control panel.


buttonDelete

protected javax.swing.JButton buttonDelete
Table button. It is placed in the control panel.


buttonRefresh

protected javax.swing.JButton buttonRefresh
Table button. It is placed in the control panel.


buttonChart

protected javax.swing.JButton buttonChart
Table button. It is placed in the control panel.


buttonDefaultChart

protected TableButtonSelection buttonDefaultChart
Table button. It is placed in the control panel.


buttonVisibleColsSetup

protected javax.swing.JButton buttonVisibleColsSetup
Table button. It is placed in the control panel.


buttonSumRowSetup

protected javax.swing.JButton buttonSumRowSetup
Table button. It is placed in the control panel.


buttonReports

protected TableButtonSelection buttonReports

menuReportSetup

protected javax.swing.JPopupMenu menuReportSetup

buttonSaveFilterOrderSetup

protected javax.swing.JButton buttonSaveFilterOrderSetup

buttonCalculatedColumns

protected javax.swing.JButton buttonCalculatedColumns

createCalculatedButton

public static boolean createCalculatedButton

addButtons

protected java.util.Vector addButtons

addComponents

protected java.util.Vector addComponents

printingWindow

protected PrintingWindow printingWindow

locale

protected java.util.Locale locale

fontSize

protected int fontSize

orderEnabled

protected boolean orderEnabled

modified

protected boolean modified

resourcesFile

protected java.util.ResourceBundle resourcesFile

attributesToFix

protected java.util.Vector attributesToFix

currencyColumns

protected java.util.Vector currencyColumns

hourRenderColumns

protected java.util.Vector hourRenderColumns

editableColumnsUpdateEntity

protected java.util.Vector editableColumnsUpdateEntity

editableColumns

protected java.util.Vector editableColumns

filter

protected javax.swing.JMenuItem filter

activatedFilter

protected boolean activatedFilter

setPivotTableButton

protected boolean setPivotTableButton

allowDelete

protected boolean allowDelete

setRefreshButton

protected boolean setRefreshButton

installQuickFilter

protected boolean installQuickFilter

packTable

protected boolean packTable

menu

protected ExtendedJPopupMenu menu

chartMenu

protected ExtendedJPopupMenu chartMenu

menuChartItems

protected java.util.Vector menuChartItems

chartGraphMenuItems

protected java.util.Vector chartGraphMenuItems

chartUtilities

protected IChartUtilities chartUtilities

defaultChartsEnabled

protected boolean defaultChartsEnabled

menuDetail

protected javax.swing.JMenuItem menuDetail

menuInsert

protected javax.swing.JMenuItem menuInsert

menuPrintSelection

protected javax.swing.JMenuItem menuPrintSelection

menuCopyCell

protected javax.swing.JMenuItem menuCopyCell

menuCopySelection

protected javax.swing.JMenuItem menuCopySelection

menuRefresh

protected javax.swing.JMenuItem menuRefresh

menuResetOrder

protected javax.swing.JMenuItem menuResetOrder

menuOpenInNewWindow

protected javax.swing.JMenuItem menuOpenInNewWindow

menuFilter

protected javax.swing.JMenuItem menuFilter

menuFilterByValue

protected javax.swing.JMenuItem menuFilterByValue

menuDeleteColumnFilter

protected javax.swing.JMenuItem menuDeleteColumnFilter

menuDeleteFilter

protected javax.swing.JMenuItem menuDeleteFilter

menuGroup

protected javax.swing.JMenuItem menuGroup

menuGroupDate

protected javax.swing.JMenu menuGroupDate

menuGroupByYear

protected javax.swing.JMenuItem menuGroupByYear

menuGroupByYearMonth

protected javax.swing.JMenuItem menuGroupByYearMonth

menuGroupYearMonthDay

protected javax.swing.JMenuItem menuGroupYearMonthDay

menuGroupByQuarterYear

protected javax.swing.JMenuItem menuGroupByQuarterYear

menuGroupByQuarter

protected javax.swing.JMenuItem menuGroupByQuarter

menuGroupByMonth

protected javax.swing.JMenuItem menuGroupByMonth

menuGroupFunction

protected javax.swing.JMenu menuGroupFunction

menuSumFunction

protected javax.swing.JMenuItem menuSumFunction

menuAvgFunction

protected javax.swing.JMenuItem menuAvgFunction

menuMaxFunction

protected javax.swing.JMenuItem menuMaxFunction

menuMinFunction

protected javax.swing.JMenuItem menuMinFunction

menuCountFunction

protected javax.swing.JMenuItem menuCountFunction

menuDeleteGroup

protected javax.swing.JMenuItem menuDeleteGroup

menuPageableEnabled

protected javax.swing.JMenuItem menuPageableEnabled

filterWindow

protected FilterDialog filterWindow

menuShowHideControls

protected javax.swing.JCheckBoxMenuItem menuShowHideControls

operationInMemory

protected boolean operationInMemory

scrollHorizontal

protected boolean scrollHorizontal

defaultFilter

protected java.lang.Object defaultFilter

allowOpenInNewWindow

protected boolean allowOpenInNewWindow

openInNewWindowByDefault

protected boolean openInNewWindowByDefault

LESS

public static final int LESS
Filter operation key

See Also:
Constant Field Values

LESS_EQUAL

public static final int LESS_EQUAL
Filter operation key

See Also:
Constant Field Values

EQUAL

public static final int EQUAL
Filter operation key

See Also:
Constant Field Values

GREATER_EQUAL

public static final int GREATER_EQUAL
Filter operation key

See Also:
Constant Field Values

GREATER

public static final int GREATER
Filter operation key

See Also:
Constant Field Values

RANGE

public static final int RANGE
Filter operation key

See Also:
Constant Field Values

DEFAULT_RENDER_REPORT_VALUES

public static final boolean DEFAULT_RENDER_REPORT_VALUES
See Also:
Constant Field Values

renderReportValues

public static boolean renderReportValues

rowPress

protected int rowPress

colPress

protected int colPress

eventPress

protected java.awt.event.MouseEvent eventPress

detailFormBuilder

protected DetailFormBuilder detailFormBuilder

backgroundDetailFormBuilder

public boolean backgroundDetailFormBuilder

reserOrderListener

protected java.awt.event.ActionListener reserOrderListener
Defines a listener that in the event restored the sorting applied to the table.


addRecordListener

protected java.awt.event.ActionListener addRecordListener
Defines a listener that opens the table detail form in inserting mode, in order to insert new records to the table.


visibleColumns

protected java.util.Vector visibleColumns

defaultVisibleColumns

protected java.util.Vector defaultVisibleColumns

originalVisibleColumns

protected java.util.Vector originalVisibleColumns

reportCols

protected java.util.Vector reportCols

columnWidthSet

protected int[] columnWidthSet

preferredSizeInRows

protected int preferredSizeInRows

calculedColumns

protected java.util.Hashtable calculedColumns

originalCalculatedColumns

protected java.util.Vector originalCalculatedColumns

modifiableCalculatedColumns

protected boolean modifiableCalculatedColumns

requiredColumnsCalculedColumns

protected java.util.Vector requiredColumnsCalculedColumns

columnsToOperate

protected java.util.Vector columnsToOperate

columnsToSum

protected java.util.Vector columnsToSum

currencyRenderer

protected CurrencyCellRenderer currencyRenderer

hourRenderer

protected DateCellRenderer hourRenderer

visibleRowNumberColumn

protected boolean visibleRowNumberColumn

autoFixHead

protected boolean autoFixHead

attributeTable

protected TableAttribute attributeTable
Deprecated.  


rowsNumberToQuery

protected int rowsNumberToQuery

pageFetcher

protected PageFetcher pageFetcher

detailFormTitleKey

protected java.lang.String detailFormTitleKey

dinamicFormClass

protected java.lang.String dinamicFormClass

dynamicFormManager

protected DynamicFormManager dynamicFormManager

refreshThread

protected Table.RefreshThread refreshThread

tAux

protected Table tAux

visiblePermission

protected FormPermission visiblePermission

enabledPermission

protected FormPermission enabledPermission

insertPermission

protected FormPermission insertPermission

queryPermission

protected FormPermission queryPermission

tableComponentPermission

protected Table.ComponentsPermissionsStore tableComponentPermission

tableOpaque

protected boolean tableOpaque

tableBackgroundColor

protected java.awt.Color tableBackgroundColor

defaultTableOpaque

public static boolean defaultTableOpaque

defaultTableBackgroundColor

public static java.awt.Color defaultTableBackgroundColor

disableInsert

protected boolean disableInsert
Determines whether the insertion using the table is enabled or not.


actButtonsModelListener

protected Table.InfoFilterButtonsModelListener actButtonsModelListener

tipScroll

protected TipScroll tipScroll
The tip configured to the table scroll.


tipScrollEnabled

protected boolean tipScrollEnabled
Determines whether the tip scroll is enabled or not.


sumRowSetupDialog

protected SumRowSetupDialog sumRowSetupDialog

visibleColsSetupDialog

protected com.ontimize.gui.table.VisibleColsSetupDialog visibleColsSetupDialog

popupListener

protected java.awt.event.MouseAdapter popupListener
Opens the popup menu (context menu)

See Also:
showPopupMenu(int, int)

selectionListener

protected javax.swing.event.ListSelectionListener selectionListener
The EJTable ListSelectionListener. It is notified each time a change to the selection occurs.


windowCache

protected TableFrame[] windowCache

listMouseListener

protected java.awt.event.MouseAdapter listMouseListener

userPrefs

protected java.lang.String userPrefs

restricted

protected boolean restricted

locator

protected EntityReferenceLocator locator
The reference locator set for this table.


editionListeners

protected java.util.Vector editionListeners

cellRendererColorManager

protected CellRenderer.CellRendererColorManager cellRendererColorManager

cellRendererFontManager

protected CellRenderer.CellRendererFontManager cellRendererFontManager

menuOrderFilterSetup

protected ExtendedJPopupMenu menuOrderFilterSetup

sortFilterOrderItemListener

protected java.awt.event.ActionListener sortFilterOrderItemListener

orderFilterSetupDeleteItemsListener

protected java.awt.event.ActionListener orderFilterSetupDeleteItemsListener

menuDefaultOrderSetup

protected javax.swing.JMenuItem menuDefaultOrderSetup

menuSaveDefaultOrderConfiguration

protected javax.swing.JMenuItem menuSaveDefaultOrderConfiguration

menuSave

protected javax.swing.JMenuItem menuSave

loadDefaultConfigurationKey

protected static java.lang.String loadDefaultConfigurationKey

saveAsDefaultConfigurationKey

protected static java.lang.String saveAsDefaultConfigurationKey

saveKey

protected static java.lang.String saveKey
Class that contains a TableButton and a JButton into a JPanel..


cellEditorManager

protected Table.EditorManager cellEditorManager

cellRendererManager

protected Table.RendererManager cellRendererManager

listener

protected Table.ListenerItem listener

deleteListener

protected Table.DeleteItemListener deleteListener

prefWidthAndPosApply

protected boolean prefWidthAndPosApply

ru

protected ReportUtils ru

BUTTON_PIVOTTABLE

public static final java.lang.String BUTTON_PIVOTTABLE
See Also:
Constant Field Values

buttonPivotTable

protected TableButton buttonPivotTable

dPivot

protected javax.swing.JDialog dPivot

menuPivotTableSetup

protected ExtendedJPopupMenu menuPivotTableSetup

menuSavePivot

protected javax.swing.JMenuItem menuSavePivot

prefPivotTableItemListener

protected static java.awt.event.ActionListener prefPivotTableItemListener

deletePrefPivotTableItemListener

protected static java.awt.event.ActionListener deletePrefPivotTableItemListener
Constructor Detail

Table

public Table(java.util.Hashtable params)
      throws java.lang.Exception
Constructs a Table with the default configuration. This method creates the layout and calls the methods that configures the table. The table is a component to represent database information in a grid, with several functionalities such as sorting, filtering, visible column configuration, data export, etc.

Parameters:
params -
Throws:
java.lang.Exception
See Also:
init(java.util.Hashtable), createTable(), setRenderers(), #setScrollHorizontal, setVisibleColumns(), createPopupMenu(), installScrollListener(), #configureQueryPanel, #setButtonsTips
Method Detail

changeOpacity

protected void changeOpacity(javax.swing.JComponent c,
                             boolean opaque)

initRendererEditors

protected void initRendererEditors()

getConstraints

public java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
Returns the table constrains.

Specified by:
getConstraints in interface FormComponent
Parameters:
parentLayout - the parent container reference
Returns:
the constraints for the component

init

public void init(java.util.Hashtable parameters)
          throws java.lang.Exception
Method that configures the component. The param Hashtable contains the values set in the XML in which the Table is placed.

More parameters in:
-configureButtons(Hashtable params) where all table button icons are configured.
-SortTableCellRenderer.init(Hashtable) where are additional configurations for table header.

-configureQuickFilter(Hashtable) where it is possible to manage additional graphical configurations for quickfilter box.

The attributes allowed are:

attribute values default required meaning
autoadjustheader yes/no yes Allows the TableHeader to adjusts its height to the FontText in order to see the the text when the font size changes.
calculedcols colname1;exp1;.....;colnameN;expN The value is a string with the name of the new column and the math expression that will be used in each column. With this, the Table will have new columns calculated on the client side according to the expression. For example
calculedcols=total;number*units
This will create a new column named total which value will be the multiplication of number and units. This columns must be too in visible cols if you want to show them in the table but you don't have to add this names in cols
calculedcolsrequiredfields colname1;...;colnameN Required columns in the table for the calculed colums. When these required columns has a null value, the calculed colum involving it will show a null value as well.
cods codtable1;coddetail1;codtable2;coddetail2;...;codtablen;coddetailn Establishes a correspondence between a table column and a field in detail form.
cols colname1;...;colnameN yes The names of the columns that this table will query and handle.
confvisiblecols yes/no Indicates whether user will be able to configure visible columns.
controls yes/no yes Allows the Table to have some control buttons, in the top of it. This buttons, by default, can export to excel the data in the table, show charts, reports, and so on. If the value is not, the controlsvisible attribute will not affect.
controlsvisible yes/no yes Shows the table controls. See the controls attribute.
currency colname1;...;colnameN This attribute specifies the columns that will be renderer as a currency, using a renderer to do that. See CurrencyCellRenderer.
customcharts yes/no yes Activates a Table default functionality tha can represent the Table information using graphical charts.
defaultnewwindow yes/no no If the table has a detail form set, with this then in which the window will be open can be controled. There are two ways of opening a new window: as a dialog that blocks the applicacion in backgroung (default), or as a window itself. With this the default behaviour can be change.
Pressing the 'Shift' while opening the window the non-default behaviour will be chosen.
If the attribute opennewwindow is set, will not be applied.
deletebutton yes/no no Activates the functionallity of deleting records directly from the Table, instead using the detail form to do that.
disableinsert yes/no no Activates the functionallity of inserting records directly from the Table using the detail form to do that. Is is set to yes no records can be inserted using this table amd the button to that, a small one in a top-right corner od the Table will be deactivated.
dynamicform none name of the class which provides the form dynamc names. The contructor without parameter will be used to do so. No one set by default.
dynamic yes/no no Defines a new type of table: a dynamic table where columns are inferred from value setted in the setValue(Object) method, not defined in xml.
translateheader yes/no By default, if table is 'dynamic' fixes translateheader='no', in other case always is translated. no Defines whether columns in table header are translated.
editablecolumns colname1;...;colnameN no Columns that can be edited directly within the Table. By default, the database will not be updated. This can be used with a Editor to update the record.
entity yes Name of the entity related to the Table
fixattr field1;...;fieldN 1 If the Table has detail form, with this parameter, when the detail form is open, the Table will pass the field values of the parent form (this is, the form in which the table is placed) to the detail form, to fit them, not allowing them to be modified.
fontsize Integer Sets the printing font size. The values can be from 1 up to 7 (more is too big).
form no Name of the form that will be open to show the Table information. By default, this form will be open by double-clicking a record of the Table or when pressing the Table insert button.
inserttable yes/no no no Defines the table as a autoinsertable table. The last row in this table allows to insert records directly into database. See configureInsertTable(Hashtable)
key when multiple key Name of the entity primary key, when the key is a single value.
keys Additional key names, when the key is multiple. The getKeys() methid will return the key and the keys values.
memoryentity Name of the Entity related to the Table. In this case the entity is a local one, stored un the client memory, to perform local operations that do not need a database interaction.
numrowscolumn yes/no yes Shows or hide a column containing the row numumber
opennewwindow yes/no no Activates the functionality to open the detail form in a new window. See the defaultnewwindow attribute. This option can be set to the whole application by setting the Table variable SHOW_OPEN_IN_NEW_WINDOW_MENU.
otherkeys Deprecated in 5.2058EN. Use parentkeys field1;...;fieldN Name of the other fields that are parentkeys, that are passed to the detail form when it is open. These values will be get from the parent form, in which the Table is placed.
parentkey Deprecated in 5.2058EN. Use parentkeys Foreing key column name.
parentkeys fieldpk1:fieldentitypk1;fieldpk2:fieldentitypk2;...fieldpkn :fieldentitypkn (since version 5.2058EN) yes The field that is parentkey and correspondent associated field in entity. It is accepted to indicate only the fieldpki when it is equal to fieldentitypki, e.g. : fieldpk1;fieldpk2:fieldentitypk2 ;...fieldpkn:fieldentitypkn
pivotbutton yes/no no Allows the pivot functionality, to work with the information in the Table
queryrows Integer no A positive value in this parameter converts the table into a pageable. This value indicates the number of records to query for each page.
quickfilter yes/no yes Allows the quick filter functionality.
quickfiltervisible yes/no yes Shows or hide the quick filter component.
refreshbutton yes/no no Add the refreshbutton to the table to allow the user to refresh the Table.
rendermemo colname1;...;colnameN Selects the columns to add a RederMemo, this is, the columns that stores long texts.
reportcols colname1;...;colnameN Same columns that visiblecols no Selects the columns that will be showed in report dialog to print custom reports.
rendertime Determines the columns that will have a time render.
rows Integer 10 Default width for the table header
scrollh yes/no no Allows the Table to have a horizontal scroll. This is useful in Table with several columns to display and there is no room enough for all of them.
sumrow Columns to sum at the botton of the Table, in a new row.
title the same value than entity attribute The title that the detail form will have when open.
updateentityeditablecolumns the same value than cols attribute Columns that will update the changes in the database when the user change the values stored in those.
visiblecols The columns that will be show in the Table among all the table columns.
defaultvisiblecols The default columns that will be show in the Table when user preferences don't exist.
opaque yes/no yes Parameter to set all the componets in the table opaque or not
minrowheight Integer Table.MIN_ROW_HEIGHT Sets the minimun row height
border default/none/raised/lowered or a color defined in ColorConstants. Moreover, it is also allowed a border defined in #BorderManager no The border for Table
vscroll yes/no yes Vertical scroll for Table component
vscrollwidth Integer 20 Width for vertical scroll
showgrid yes/no no no Show grid lines in table
renderers col1:renderer1;col2:renderer2;...;coln:renderern no Definition of columns and associated renderers. Renderer identifiers are defined in external file.
editors col1:editor1;col2:editor2;...;coln:editorn no Definition of columns and associated editors. Editor identifiers are defined in external file.
backgroundformbuilder yes/no yes no Establishes if the detail form is built in a background thread.(Since 5.2060EN-0.5)
onsetvalueset fieldonset1:function(tablecolumn1);fieldonset2:function(tablecolumn2);...;fieldonsetn:tablecolumnn
Function can have the next values: SUM;MAX;MIN;AVG;CONCAT
(since version 5.2060EN-0.6)
no Field attributes whose value will be set when table data change.

Specified by:
init in interface FormComponent
Parameters:
parameters - the hashtable with pairs (Key,Value). For example:

Key Value
align center
attr attribute
... ...
Throws:
java.lang.Exception - when Exception occurs

getDebugInfo

public java.lang.String getDebugInfo()

getToolTipText

public java.lang.String getToolTipText(java.awt.event.MouseEvent e)

configureInsertTable

protected void configureInsertTable(java.util.Hashtable params)
This method configure parameters for insertable table. This method is called only when 'inserttable' parameter is enabled in .xml definition file.

Parameters:
params - the Hashtable with parameters

The attributes allowed are:

attribute values default required meaning
requiredcols requiredcol1;requiredcol2;...;requiredcoln no Required cols in table
insertablecols inserttablecol1;inserttablecol2;...;inserttablecoln All columns (when is insertable='yes') no Columns of table that are insertables
databaseinsert yes/no yes no Indicates whether insert operations are executed directly in database.
databaseremove yes/no yes no Indicates whether remove operations are executed directly in database.
showtotalinserting yes/no yes no Indicates whether the row at bottom to show total operation results is showed. Note: This parameter is read in TableSorter constructor

removeAllCharts

public void removeAllCharts()
Removes all the charts available for this table.

See Also:
ChartUtilities

removeChart

public void removeChart(java.lang.String description)
Removes the specified chart for this table

Parameters:
description - the chart to remove description
See Also:
ChartUtilities

configureChart

public void configureChart(java.lang.String xLabel,
                           java.lang.String yLabel,
                           java.lang.String xColumn,
                           java.lang.String[] yColumns,
                           java.lang.String[] series,
                           java.lang.String descr,
                           int type)
Configures the chart.

Parameters:
xLabel - the text corresponding to the x axis label
yLabel - the text corresponding to the y axis label
xColumn - the column displayed in the x axis
yColumns - the columns displayed in the y axis
series -
descr - a chart description
type - the chart type. Values can be be

  • ChartUtilities.PIE
  • ChartUtilities.PIE_3D
  • ChartUtilities.BAR
  • ChartUtilities.BAR_3D
  • ChartUtilities.STACKED_3D
  • ChartUtilities.LINE
See Also:
ChartUtilities.configureChart(String , String , String , String[] , String[] , String , int )

configureChartXDate

public void configureChartXDate(java.lang.String xLabel,
                                java.lang.String yLabel,
                                java.lang.String xColumn,
                                java.lang.String[] yColumns,
                                java.lang.String[] series,
                                java.lang.String descr,
                                int interval)
Configures a chart with dates.

Parameters:
xLabel - the text corresponding to the x axis label
yLabel - the text corresponding to the y axis label
xColumn - the column displayed in the x axis
yColumns - the columns displayed in the y axis
series -
descr - a chart description
interval - the time interval. Values can be be

  • ChartUtilities.DAY
  • ChartUtilities.MONTH
  • ChartUtilities.QUARTER
  • ChartUtilities.YEAR
See Also:
ChartUtilities.configureChartXDate(java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int)

configureChartXDate

public void configureChartXDate(java.lang.String xLabel,
                                java.lang.String yLabel,
                                java.lang.String xColumn,
                                java.lang.String[] yColumns,
                                java.lang.String[] series,
                                java.lang.String descr,
                                int interval,
                                boolean fillZeros)
Configures a chart with dates.

Parameters:
xLabel - the text corresponding to the x axis label
yLabel - the text corresponding to the y axis label
xColumn - the column displayed in the x axis
yColumns - the columns displayed in the y axis
series -
descr - a chart description
interval - the time interval. Values can be be

  • ChartUtilities.DAY
  • ChartUtilities.MONTH
  • ChartUtilities.QUARTER
  • ChartUtilities.YEAR
fillZeros -

showChart

public void showChart(java.lang.String description)
Shows the chart window. Client permissions are checked.

Parameters:
description - chart description

installChartButton

protected void installChartButton()
Installs the table button that open the Charting dialog.


showChartMenu

protected void showChartMenu(java.awt.event.ActionEvent e)
Shows the ChartMenu

Parameters:
e - event that launched the request to open the chart menu

getValueToExport

public EntityResult getValueToExport()
Creates a EntityResult object with the visible values of the table.
This method uses the table renderers to obtain visible cell values.

Returns:

getValueToExport

public EntityResult getValueToExport(boolean calculatedRow,
                                     boolean translateHeader)
This method get the values of the renderers of all the cells in the table

Parameters:
calculatedRow - To include or not the calculated row
translateHeader - To translate or not the header titles. If you use this option with true, the translations of the column names must be all diferent
Returns:

getValueToExport

public EntityResult getValueToExport(boolean calculatedRow,
                                     boolean translateHeader,
                                     boolean useNoStringKeys)
This method get the values of the renderers of all the cells in the table

Parameters:
calculatedRow - To include or not the calculated row
translateHeader - To translate or not the header titles.
useNoStringKeys - When you are translating the header values you need to put an Object diferent of a String as key to avoid duplicated keys (to string with the same translation)
Returns:

getValueToReport

public java.lang.Object getValueToReport()
Values that will be used to create custom reports

Returns:

getExcelString

public java.lang.String getExcelString()
Creates a text to be interpreted by the Excel. The text will contain all the data in the table, with the columns separated by tabs and EOL at the end of each line. The headers are exported as well.

Returns:
the contents of the excel file.

getHTMLString

public java.lang.String getHTMLString()
Creates a HTML representation of the information in the table. The response will contain all the data in the table, formatted as a HTML table The headers are also exported.

Returns:
the table information formatted in HTML

getCellValueAsString

public java.lang.String getCellValueAsString(int row,
                                             int column)
Get the value of the specified cell as a String, using the renderer if exist

Parameters:
row - Row number
column - Column number
Returns:

getCellRenderedValue

public java.lang.Object getCellRenderedValue(int row,
                                             int column)
This method returns the value of rendered cell take into account when a cell contains a combo reference cell renderer.

Parameters:
row - The current row
column - The current column
Returns:
the value rendered

getAttributeList

public java.util.Vector getAttributeList()
Returns the name of all the table columns.

Returns:
the name of all the table columns

deleteData

public void deleteData()
Deletes all the data stored in the table.

Specified by:
deleteData in interface DataComponent

initColumnsWidth

public int[] initColumnsWidth()
Sets the initial column width. The value set is the one stored in preferredSizeInRows

Returns:
an array with the column widths
See Also:
initColumnsWidth()

initColumnsWidth

public int[] initColumnsWidth(int columnsWidth)
Sets the initial column width to the one passed as parameter.

Parameters:
columnsWidth - the default column width
Returns:
an array with the column widths
See Also:
setPreferredTableColumnWidths()

isVisibleColumn

public boolean isVisibleColumn(java.lang.String columnName)
Returns true if the column with the specified name is visible.

Parameters:
columnName - the column name
Returns:
true if the column with the specified name is visible; false otherwise

packTable

public void packTable()
Packs the table, in order to reduce the unused space.


setPreferredTableWidth

protected void setPreferredTableWidth()
Sets the preferred table width.


getOperationColumns

protected java.util.Vector getOperationColumns()

setValue

public void setValue(java.lang.Object value)
Sets values for the table. The value must be a Hashtable, an EntityResult or an AdvancedEntityResult.

Specified by:
setValue in interface DataComponent
Parameters:
value - the object with value to set
See Also:
setInnerValue(java.lang.Object)

setValue

public void setValue(java.lang.Object value,
                     boolean autoSizeColumns)
Sets values for the table. The value must be a Hashtable, an EntityResult or an AdvancedEntityResult.

Parameters:
value - the value to set
autoSizeColumns - if true, the column size will be adjusted to its new contents

setInnerValue

protected void setInnerValue(java.lang.Object value)
Sets the data that the table will handle, this is, the columns information. This method also forces to fit the column size to its contents.

Parameters:
value - the data
See Also:
setInnerValue(Object, boolean)

setInnerValue

protected void setInnerValue(java.lang.Object value,
                             boolean autoSizeColumns)
Sets the information the table will manage. The information must be a Hashtable instance, where keys are the column names, and values must be vectors containing the information corresponding to each column. All vectors must have the same size. Only the information keys that are configured as table attributes in the table definition will be processed.

Parameters:
value - new information to be displayed and managed by the table
autoSizeColumns - when true, the columns size will be adjusted to the column contents

checkNumberColumnVisibility

protected void checkNumberColumnVisibility(java.lang.Object value)

setDynamicTableConfiguration

protected void setDynamicTableConfiguration(java.lang.Object value)

getValue

public java.lang.Object getValue()
Returns the table model. In this case returns an instance of TableSorter.

Specified by:
getValue in interface DataComponent
Returns:
the table model

getShownValue

public java.lang.Object getShownValue()
Returns the information contained in the table. Returns the information in the TableSorter.

Returns:
See Also:
TableSorter#getShowedValue

getShownValue

public java.lang.Object getShownValue(java.lang.String[] cols)

getAttribute

public java.lang.Object getAttribute()
Returns the table attribute. The attribute for a table is an object that is an TableAttribute instance.

Specified by:
getAttribute in interface IdentifiedElement

getSQLOrderList

protected java.util.Vector getSQLOrderList()

getEntityName

public java.lang.String getEntityName()
Provides the name of the configured entity for the table.

Returns:
the entity name

getLabelComponentText

public java.lang.String getLabelComponentText()
Description copied from interface: DataComponent
Returns the label text component. This label will change according to the Locale.

Specified by:
getLabelComponentText in interface DataComponent
Returns:
the label text

setEditable

public void setEditable(boolean editable)
Sets whether the table is editable. If showHorizontalLines is true it does; if it is false it doesn't.

Parameters:
editable -

getPrimaryKeys

public java.util.Vector getPrimaryKeys()
Deprecated.  

Returns all the primary keys. Deprecated, use instead getAllPrimaryKeys()

See Also:
getAllPrimaryKeys()

getAllPrimaryKeys

public java.util.Hashtable getAllPrimaryKeys()
Returns all the values for the columns configured as key and keys for the table. In the returned Hashtable, the keys will be the columns mentioned previously, and the values, all the values in the table corresponding to those columns.

Returns:
the table primary keys values

getAttributesAndKeysData

public java.util.Hashtable getAttributesAndKeysData()
Returns all the information in the table for all the attributes, this is, for all the columns in the table.

Returns:
the table columns information

getKeyFieldName

public java.lang.String getKeyFieldName()
Provides the value of the 'key' parameter, configured in the xml that defines the table.

Returns:
the key attribute value

getKeys

public java.util.Vector getKeys()
Returns all the configured keys for the table, this is, the column names correponding to the attributes key and keys.

Returns:
the configured keys for the table

getParentKeyFieldName

public java.lang.String getParentKeyFieldName()
Deprecated.  

Returns the value set in the XML for the 'parentkey' attribute.

Returns:
the value set in the XML for the 'parentkey' attribute
See Also:
init(java.util.Hashtable)

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Returns all text keys the table stores, and that must be translated in order to internationalize the component. Text such as tips, menu keys and user messages are returned.

Specified by:
getTextsToTranslate in interface Internationalization
Returns:
all text keys the table stores

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resourceBundle)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Parameters:
resourceBundle - the new language bundle.

isEmpty

public boolean isEmpty()
A table is considered empty when it has no records. If the table has records, the method returns false.

Specified by:
isEmpty in interface DataComponent
Returns:
true if the table has no records

isModifiable

public boolean isModifiable()
Returns always true. Interface implementation.

Specified by:
isModifiable in interface DataComponent
Returns:
true.

isRequired

public boolean isRequired()
Returns always false. Interface implementation.

Specified by:
isRequired in interface DataComponent
Returns:
false.

setRequired

public void setRequired(boolean req)
Empty method. Interface implementation.

Specified by:
setRequired in interface DataComponent
Parameters:
req - the required condition

setModifiable

public void setModifiable(boolean modif)
Empty method. Interface implementation.

Specified by:
setModifiable in interface DataComponent
Parameters:
modif - the boolean condition

getSelectedRow

public int getSelectedRow()
Returns the index of the first selected row in the view.

Returns:

getRowKey

public java.lang.Object getRowKey(int rowIndex)
Deprecated.  

Returns the row index primary keys.

Parameters:
rowIndex -
Returns:

getRowKey

public java.lang.Object getRowKey(int rowIndex,
                                  java.lang.String keyName)
Returns the value of one single key, for the specified row. This is, returns the value of a single cell in the table, when the cell is a key.

Parameters:
rowIndex - the index of the row
keyName - the key name
Returns:
the key value for that row

getRowValue

public java.lang.Object getRowValue(int rowIndex,
                                    java.lang.String modelColumnIndex)
Returns the value stored in a concrete column and row in the column model.

Parameters:
rowIndex - the row index in the model
modelColumnIndex - the column index in the model
Returns:

existsSumRow

public boolean existsSumRow()
Deprecated.  

Returns:
See Also:
hasSumRow()

getRowKeys

public java.util.Hashtable getRowKeys(int rowIndex)
Returns the values of the keys for the index specified. The result is a #Hashtable containing the keys as the Hashtable keys, and the key value in the TableModel as value for each entry in the Hashtable.

In case that the asked key is not present in the model, the key will not be in the result Hashtable.

Parameters:
rowIndex - the model row index that specifies the row to query
Returns:
a Hastable with the key values. The value will be null if the rowIndex is bigger than the total amount of records in the grid.

deleteRows

public void deleteRows(int[] rowIndex)
Deletes the rows specified as parameter.

Parameters:
rowIndex - an array with the model indexes to delete

deleteRow

public void deleteRow(int rowIndex)
Deletes the row specified as parameter

Parameters:
rowIndex - the index of the row to delete in the Model

deleteRow

public void deleteRow(java.lang.Object key)
Deprecated.  

Deletes the row which key is passed as parameter.

See Also:
deleteRow(Hashtable)

deleteRow

public void deleteRow(java.util.Hashtable keysValues)
Deletes the row specified as parameter

Parameters:
keysValues - stores pairs key-value that defines the record to delete

getRowForKeys

public int getRowForKeys(java.util.Hashtable keysValues)
Returns the row view index specified by the keys passed as parameter.

Parameters:
keysValues - the values for the keys that defines the queried row.
Returns:
the view row index of the coincidence, -1 otherwise

getRowsForKeys

public int[] getRowsForKeys(java.util.Hashtable[] keysValuesToQuery)
For each Hashtable passed as parameter in the array, the method will search the row in which the keys have the same value that the ones stored in the Hashtable.

Each Hashtable must have, for every element, as key a column name (that is, a table's key) and as value the concrete value corresponding to that key.

The indexes of all these coincidences will be returned in the response int array.

Parameters:
keysValuesToQuery - an array of #Hashtable that stores in each element the keys-values combination to search
Returns:
the indexes of the rows that matches the keys in the param

convertRowIndexToModel

public int convertRowIndexToModel(int viewRowIndex)
Maps the index of the row in the view to the index of the row in the table model. Returns the index of the corresponding row in the model. If viewColumnIndex is less than zero, returns viewColumnIndex.

Parameters:
viewRowIndex - the row index in the view
Returns:
the index of the corresponding row in the model

setSelectedRow

public void setSelectedRow(int viewRowIndex)
Selects a row in the table

Parameters:
viewRowIndex - the index of the row in the view

checkBoundRow

protected boolean checkBoundRow(int rowIndex)
If the rowIndex is <0 the selection is removed and false is returned. In case the index is > than the getRowCount, only a false is returned. Finally, if the index is right, a true is returned.

Parameters:
rowIndex -
Returns:

setSelectedRows

public void setSelectedRows(int[] viewRowIndex)
Selects one or more rows in the table

Parameters:
viewRowIndex - [] indexes of the rows in the view

setComponentLocale

public void setComponentLocale(java.util.Locale locale)
Sets the element locale

Specified by:
setComponentLocale in interface Internationalization
See Also:
Locale

isEnabled

public boolean isEnabled()
Determines if the object is enabled.

Specified by:
isEnabled in interface FormComponent
Returns:
true if object is enabled; otherwise, false

setEnabled

public void setEnabled(boolean enabled)
Sets whether or not this component is enabled.

Specified by:
setEnabled in interface FormComponent
Parameters:
enabled - true if this component should be enabled, false otherwise

evaluateButtonsState

protected void evaluateButtonsState()
Enables or disables the table button depending on the table state. The table buttons panel will be enabled only in case the table is enabled and also has records in it. The buttons will be disabled in other case.


isHidden

public boolean isHidden()
Returns always false. Interface implementation.

Specified by:
isHidden in interface DataComponent
Returns:
false

setParentFrame

public void setParentFrame(java.awt.Frame frame)
Sets the frame that will be used as parent of the dialogs.

Specified by:
setParentFrame in interface OpenDialog
Parameters:
frame - the frame that will be used as parent frame for the dialogs.

setFormBuilder

public void setFormBuilder(FormBuilder builder)
Sets the FormBuilder that the table will use to build the detail form

Specified by:
setFormBuilder in interface CreateForms
Parameters:
builder - the FormBuilder that will be used to create the detail form

getJTable

public javax.swing.JTable getJTable()
Provides a reference to the JTable element contained in the table.

Returns:
the JTable inside the table

setParentForm

public void setParentForm(Form form)
Sets the Form in which the table is placed. This method is call automatically when the table is created.

Specified by:
setParentForm in interface AccessForm
Parameters:
form - the form that contains the table

getParentForm

public Form getParentForm()
Returns a reference to the Form in which the table is placed.

Returns:
a reference to the Form in which the table is placed
See Also:
#Form

getPrintingData

public java.util.Hashtable getPrintingData(java.util.Vector askedColumns)
Returns the data contained by the asked columns. The response is a #Hashtable in which the keys will be the columns asked as a method parameter, and the values are #Vector of String containing the printable data for each column.

If the column asked is not in the table, the response will not contain that column.

The values in the response will be renderized to convert the value stored in the table to the String suitable to be printed, according to the locale and data type.

Parameters:
askedColumns - the column names
Returns:
the values of each column

getRowText

protected java.lang.String getRowText(int rowIndex)
Returns a String with all the information displayed in the corresponding row, for each table attributes on that row. The data contained by each cell is rendered in order to have a legible result.

Parameters:
rowIndex -
Returns:
the data contained in the specified row

getPrintingData

public java.util.Hashtable getPrintingData()
Returns a #Hashtable with all the data of the visible columns.

Returns:
a #Hashtable with all the data of the visible columns.
See Also:
getPrintingData(Vector)

free

public void free()
          throws java.lang.Exception
Liberates the memory occupied by the table component.

Specified by:
free in interface Freeable
Throws:
java.lang.Exception

finalize

protected void finalize()
                 throws java.lang.Throwable
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Used only as a log method.

Throws:
java.lang.Throwable

getSQLDataType

public int getSQLDataType()
Returns the table SQL type. In this case the type is java.sql.Types.OTHER

Specified by:
getSQLDataType in interface DataComponent
Returns:
the Integer type

setModified

public void setModified(boolean modif)
Empty method. Default interface implementation. The table cannot be set modified.

Parameters:
modif -

isModified

public boolean isModified()
Returns always false. The table cannot be modified. Interface implementation.

Specified by:
isModified in interface DataComponent
Returns:
false

getOrderColumnName

public java.util.Vector getOrderColumnName()
Returns a #Vector with the column names of all the visible columns. The column order is the same they have in the ColumnModel

Returns:
a #Vector containing the visible column names in the same order in which they are been displayed

disableInsert

public void disableInsert()
Disables the table insert button, '+', even though the table has a detail form.


enableInsert

public void enableInsert()
Enables the insert button, '+'. The user must have permissions to insert records.

See Also:
checkInsertPermission()

getRowData

public java.util.Hashtable getRowData(int rowIndex)
Returns the data contained in the specified row. The result is a #Hashtable with pairs key-value, where the keys are the column names, containing the row data. If the table is filtered, returns the data as well.

Parameters:
rowIndex - the model index for the column
Returns:
a #Hashtable with the row data

getRowDataForKeys

public java.util.Hashtable getRowDataForKeys(java.util.Hashtable keysValues)

getGroupedRowData

public java.util.Hashtable getGroupedRowData(int rowIndex)
Returns the information corresponding to the row which index is passed as parameter.

Parameters:
rowIndex - the model row index
Returns:
the row information

getCalculatedRowData

public java.util.Hashtable getCalculatedRowData(int rowIndex)
Returns a Hashtable containing the data associated to the row calculated columns. The Hashtable keys are the calculated column names. The Hashtable values are the values in the table corresponding to the row passed as parameter.

Parameters:
rowIndex -
Returns:

enableSort

public void enableSort(boolean enable)
Enables or disables the sorting functionality.

Parameters:
enable - if true sorting is enabled. If false, the functionality will be disabled.

update

public void update()
Repaints the component.


setRenderers

protected void setRenderers()
Sets the default renders to the class types.

There are also renderers for the columns specified as currency, hour and memo.
class render
Timestamp.class, java.sql.Date.class, java.util.Date.class #DateCellRenderer
Boolean.class #BooleanCellRenderer
Float.class, Double.class, Number.class #RealCellRenderer
BytesBlock.class #ImageCellRenderer
Object.class, String.class #ObjectCellRenderer

See Also:
#JTable

setEditors

protected void setEditors()
Configure the editors for currency columns and time columns


setRendererForColumn

public void setRendererForColumn(java.lang.String column,
                                 javax.swing.table.TableCellRenderer renderer)
Sets a concrete renderer for the specified table column. See the concrete render type configuration in order to create the renderer right. For example, if the renderer is a Reference one, the reference locator must be sat, as well the locale must be set in the internationalized ones, etc.

Parameters:
column - the column that will be configured with the renderer
renderer - the renderer to set
See Also:
setRendererForColumnExp(java.lang.String, javax.swing.table.TableCellRenderer)

getRendererForColumn

public javax.swing.table.TableCellRenderer getRendererForColumn(java.lang.String column)
Returns the CellRenderer set to the column.

Parameters:
column -
Returns:
the CellRenderer set to the column

getEditorForColumn

public javax.swing.table.TableCellEditor getEditorForColumn(java.lang.String column)

getDefaultRenderers

public javax.swing.table.TableCellRenderer[] getDefaultRenderers()
Returns the renderers that are being used by the table. The result is an array of renderers, containing the renderers in the order:
Boolean, Date, Real, Object, Image, Memo

Returns:
the renderers that is using the table

setRendererForColumnExp

public void setRendererForColumnExp(java.lang.String column,
                                    javax.swing.table.TableCellRenderer renderer)
Sets a concrete renderer for the specified table column.

Parameters:
column - the column name
renderer - the renderer to be set

showCurrencyValue

public void showCurrencyValue(int currencyType)
Shows the currency symbol when CurrencyCellRenderer are used

Specified by:
showCurrencyValue in interface SelectCurrencyValues

enableFiltering

public void enableFiltering(boolean enable)
Enables or disables the filtering functionality.

Parameters:
enable - if true, the table allows to filter; if false, filtering will be disabled

isFilteringEnabled

public boolean isFilteringEnabled()

setTip

protected void setTip()
Configures and sets the table tips.


getParentKeyValue

public java.lang.Object getParentKeyValue()
Deprecated.  

Returns the value stored in the field, placed in the table's parent form, that is configured as the table parent key in the XML.

Returns:
the parent key value
See Also:
Form.getDataFieldValue(java.lang.String), getParentKeyFieldName(), init(java.util.Hashtable)

getColumnName

public java.lang.String getColumnName(int viewColumnIndex)
Returns the name of the column appearing in the view at column position viewColumnIndex.

Parameters:
viewColumnIndex - the column in the view being queried
Returns:
the name of the column at position column in the view where the first column is column 0

createPopupMenu

protected void createPopupMenu()
Creates and configures the popup menu.

See Also:
showPopupMenu(int, int)

openInNewWindow

public void openInNewWindow(int[] modelSelectedRows)
Opens the detail form for the rows passed as parameter in the array, in a new window each. The maximum number of rows that can opened at the same time is 5.

Parameters:
modelSelectedRows - contains the model row indexes to open the detail form

hasSumRow

public boolean hasSumRow()
Method that returns true when the table has sum rows.

Returns:
true when the table has sum rows
See Also:
TableSorter.isSum()

isSumRow

public boolean isSumRow(int rowIndex)
Determines if the file passed as parameter is a sum row.

Parameters:
rowIndex -
Returns:
true is the row is a sum row

showPopupMenu

protected void showPopupMenu(int x,
                             int y)
Shows the popup menu.

Parameters:
x -
y -

createChartUtilities

protected void createChartUtilities()

createDetailForm

protected void createDetailForm()
Creates the detail form for this table. The detail form is used to insert new records to the table and to diplay de information contained buy the table in a more detailed way using a form instead a row.


getDetailFormSizePreferenceKey

public java.lang.String getDetailFormSizePreferenceKey()
Returns the key of the preference that stores the size of the DetailForm

Returns:

deleteEntityRow

protected EntityResult deleteEntityRow(int rowIndex)
                                throws java.lang.Exception
Deletes from the entity the specified row.

Parameters:
rowIndex - the row index
Returns:
the result of the execution of the delete instruction
Throws:
java.lang.Exception
See Also:
Entity.delete(Hashtable, int)

getSelectedRows

public int[] getSelectedRows()
Returns the selected rows indexes, sorted from higher to lower index

Returns:
the selected rows indexes or an empty array if no row is selected

getSelectedRowsNumber

public int getSelectedRowsNumber()
Counts the number of rows selected in the table.

Returns:
the total amount of selected rows

changeToTableView

protected void changeToTableView()
Changes the table representation to the table one. That is, instead using a form to display the table information, the normal grid format will be used.


changeView

public void changeView()
Changes the table by the detail form.


addRow

public void addRow(java.util.Hashtable rowData)
Adds a new row with data

Parameters:
rowData - a #Hashtable containing the data to add
See Also:
TableSorter.addRow(java.util.Hashtable)

addRow

public void addRow(int row,
                   java.util.Hashtable rowData)
Adds a new row with data in a concrete position in the table

Parameters:
rowData - a #Hashtable containing the data to add
row - the position in the model in which the row will be added
See Also:
TableSorter.addRow(int, Hashtable)

addRows

public void addRows(int[] rows,
                    java.util.Vector rowsData)
Deprecated.  

Adds several rows to the table.

Parameters:
rows - and array with the position of the rows in which the new rows will be inserted
rowsData - a #Vector containing #Hashtable. Each position of the Vector is a Hashtable containing information for a row
See Also:
addRows(Vector), TableSorter.addRows(int[], Vector)

addRows

public void addRows(java.util.Vector rowsData)
Adds several rows to the table.

Parameters:
rowsData - a #Vector containing #Hashtable. Each position of the Vector is a Hashtable containing information for a row
See Also:
TableSorter.addRows(Vector)

refreshRows

public void refreshRows(int[] viewRowIndexes)
Refreshes the rows passed as parameter

Parameters:
viewRowIndexes - the row indexes

refreshRow

public void refreshRow(int viewRowIndex)
Refreshes the row passed as parameter.

Parameters:
viewRowIndex - the index to refresh

refreshRow

public void refreshRow(int viewRowIndex,
                       java.util.Hashtable oldkv)
Refreshes the row passed as parameter.

Parameters:
viewRowIndex - the index to refresh
oldkv -

resetOrder

public void resetOrder()
Removes the sorting applied to the table.


refresh

public void refresh()
Updates the table content querying the entity specified in the XML, and filtering the results by the values set in the form to the fields corresponding to the attributes parentkey and otherkeys.


refreshEDT

public void refreshEDT()

refresh

public void refresh(boolean autoSizeColumns)
Updates the table content querying the entity specified in the XML, and filtering the results by the values set in the form to the fields corresponding to the attributes parentkey and otherkeys.

Parameters:
autoSizeColumns - if true, resizes the column width

refreshEDT

public void refreshEDT(boolean autoSizeColumns)
Updates the table content querying the entity specified in the XML, and filtering the results by the values set in the form to the fields corresponding to the attributes parentkey and otherkeys.

Parameters:
autoSizeColumns -

refreshInThread

public void refreshInThread(int delay)
Refreshes the data in the table periodically. The time between table updates is passed as parameter.

Parameters:
delay - the length of time to sleep in milliseconds

updateUI

public void updateUI()

setLineRemark

public void setLineRemark(boolean lineRemark)
Sets if the table must have even rows of one color and odd rows of other

Parameters:
lineRemark - true if odd and even lines must be remarked, false otherwise

isFiltered

public boolean isFiltered(int viewColumnIndex)
Determines if the table column passed as param is filtered.

Parameters:
viewColumnIndex -
Returns:
true if the table has filters; otherwise, false

isFiltered

public boolean isFiltered()
Determines if the table has filters.

Returns:
true if the table has filters; otherwise, false

isGrouped

public boolean isGrouped()
Determines if the table is grouped.

Returns:
true if the table is grouped; otherwise, false

setFont

public void setFont(java.awt.Font newFont)
Sets the font for this component, for all the elements that must have a configured fort, for example renderers.

Parameters:
newFont - the desired Font for this component
See Also:
Component.getFont()

calculatePreferredRowHeights

protected int calculatePreferredRowHeights()
Deprecated.  


createTableSorter

protected TableSorter createTableSorter(ExtendedTableModel model)
Creates a Sorter for TableModels

Parameters:
model - the model
Returns:

createExtendedTableModel

protected ExtendedTableModel createExtendedTableModel()

createTable

protected javax.swing.JTable createTable()
Creates the JTable contained in the Table

Returns:
the JTable contained by the Table

createEJTable

protected EJTable createEJTable(TableSorter sorter,
                                java.util.Vector visibleColumns)

createTableHeaderRenderer

protected javax.swing.table.TableCellRenderer createTableHeaderRenderer(javax.swing.JTable table)
Creates a new TableCellRenderer to use in the table header renderer, by default creates a SortTableCellRenderer

Parameters:
table -
Returns:

addTableHeaderRenderer

protected void addTableHeaderRenderer(javax.swing.JTable table)
Calls the createTableHeaderRenderer(javax.swing.JTable) method and configures the table header rendering

Parameters:
table -

addTableHeaderMouseListener

public void addTableHeaderMouseListener(javax.swing.JTable table)
Adds a default mouse listener to the table header. Controls all the click dependent behaviour of the table header.

Parameters:
table - the table which header will have the listener

getResizingColumn

protected javax.swing.table.TableColumn getResizingColumn(javax.swing.table.JTableHeader header,
                                                          java.awt.Point point,
                                                          int columnIndex)
Compares the point with the header of the column specified by the columnIndex. If the point corresponds to the header, the method returns the related TableColumn.

Parameters:
header - the table header
point - a point coming from a mouse event
columnIndex - the columnIndex to compare return the TableColumn corresponding to the columnIndex in case the mouse event was performed into the column header; null otherwise

setScrollTooltipText

protected void setScrollTooltipText()

installScrollListener

protected void installScrollListener()
Installs a #MouseMotionListener and a #MouseListener to the vertical scroll, in order to control the tip.


showTipScroll

protected void showTipScroll(javax.swing.JScrollBar scrollBar,
                             int x,
                             int y,
                             int viewRowIndex)
Shows the tip corresponding to the vertical scroll.

Parameters:
scrollBar -
x -
y -
viewRowIndex -

getScrollText

protected java.lang.String getScrollText(int viewRowIndex)
Creates the text to be displayed in the scroll.

Parameters:
viewRowIndex -
Returns:

hideTipScroll

protected void hideTipScroll()
Hides the tip corresponding to the vertical scroll.


setVisibleColumns

protected void setVisibleColumns()
Configures the columns to show in the Table init process.


isColumnWidthFixed

protected boolean isColumnWidthFixed(java.lang.String column)
Determines whether the column has its width fixed or not.

Parameters:
column -
Returns:
true in case the width is fixed, false otherwise

getTableComponentReference

public TableComponent getTableComponentReference(java.lang.Object key)
Returns a reference an object that implements the TableComponent interface, stored in the table {link #controlsPanel}, specified by the key. For example, elements such a TableButton and TableButtonSelection implements this interface.

Parameters:
key - the key of the TableComponent
Returns:
the TableComponent with the specified key or null if there is not matching

getTableComponentReferences

public java.util.List getTableComponentReferences()

setTableComponentEnabled

public void setTableComponentEnabled(java.lang.String key,
                                     boolean enabled)
Sets whether or not the specified component of the table should be enabled or not. Permissions are checked in order to verify that the user that tries to enable the component has the rights to do so.

Parameters:
key - the name of the component
enabled - true if the component should be enabled, false otherwise
See Also:
checkComponentTablePermission(java.lang.Object, java.lang.String)

setTableComponentVisible

public void setTableComponentVisible(java.lang.String key,
                                     boolean visible)
Sets whether or not the table component is visible.

Parameters:
key - the component name
visible - true if this component should be enabled, false otherwise

configureQuickFilter

protected void configureQuickFilter(java.util.Hashtable params)
This method configure appearance of quickfilter box.

Parameters:
params - the Hashtable with parameters

The attributes allowed are:

attribute values default required meaning
quickfilterfont no Font for quickfilter text
quickfilterfontcolor black no Color for quickfilter font
quickfilterborder no Specific border for quickfilter
quickfilteremptyfont no Font for message showed when user does not type any value to search.

configureButtons

protected void configureButtons(java.util.Hashtable params)
This method configure appearance of table buttons: border, opacity, ... Finally, this method also calls to changeButtonIcon(JButton, String, boolean, boolean, MouseListener) for each table button.

Parameters:
params - the Hashtable with parameters

The attributes allowed are:

attribute values default required meaning
borderbuttons yes/no yes no Defines whether table buttons have border or not.
opaquebuttons yes/no yes no Defines whether table buttons are opaque or not.
highlightbuttons yes/no yes no Defines whether buttons are highlighted when mouse is entered over them.
changeviewicon no Path to this Table icon
copyicon no Path to this Table icon
excelicon no Path to this Table icon
htmlicon no Path to this Table icon
inserticon no Path to this Table icon
printicon no Path to this Table icon
deleteicon no Path to this Table icon
refreshicon no Path to this Table icon
charticon no Path to this Table icon
visiblecolsicon no Path to this Table icon
sumrowicon no Path to this Table icon
savefiltericon no Path to this Table icon
calculatedcolsicon no Path to this Table icon
defaultcharticon no Path to this Table icon
reporticon no Path to this Table icon

changeButtonIcon

protected void changeButtonIcon(javax.swing.JButton button,
                                java.lang.String iconpath,
                                boolean borderButtons,
                                boolean opaqueButtons,
                                java.awt.event.MouseListener listenerHighlightButtons)

installButtonsListener

protected void installButtonsListener()
Installs the control panel buttons, and the listeners associated to them, when necessary.


isFrame

protected boolean isFrame()
Determines whether the window in which the table is placed is a Frame or not

Returns:
true in case that the table is in a Frame, false otherwise

detail

protected void detail(java.awt.event.InputEvent event)
Opens the detail form for the rows selected in the view

Parameters:
event -

checkRefreshThread

protected void checkRefreshThread()
Checks the refresh thread to update the GUI while the table update is being performed.


openDetailForm

public void openDetailForm(int rowIndex)
Opens the table DetailForm with the data related to the row passed as parameter. The form will be open in the UPDATE mode.

In case that the row is a sum row, the form will not be open. If the table is grouped or the user has not permission to see the form, it will not be open neither.

Parameters:
rowIndex - the row which data will be shown in the form

openInsertDetailForm

public void openInsertDetailForm()
Opens the table DetailForm from in Insert mode. The user must have permission to do that and the form must be specified.


setColumnEditor

public void setColumnEditor(java.lang.String col,
                            javax.swing.table.TableCellEditor editor)
Sets a column editor to the specified column. configures the editor if necessary.

Parameters:
col - the column name
editor - the editor to set

setEditableColumn

public void setEditableColumn(java.lang.String col)
Allows the specified column to be editable from the Table. The column will not be updated.

Parameters:
col - the column name

setEditableColumn

public void setEditableColumn(java.lang.String col,
                              boolean updateEntity)
Allows the specified column to be editable from the Table. To update the chages produced to this columns can be configuired.

Parameters:
col - the column name
updateEntity - if true, the column will be updated

setEditableColumn

public void setEditableColumn(java.lang.String col,
                              boolean updateEntity,
                              boolean editable)
Activates or deactivates the editable mode for the specified column, in order to be the column editable or not from the Table. Updating the entity can be configured.

Parameters:
col - the column name
updateEntity - if true, the column will be updated
editable - if true, sets the column editable, if false, will avoid the column to be editable

getOrderColumn

public java.lang.String getOrderColumn()
Deprecated.  

Returns:

getOrderColumns

public java.lang.String[] getOrderColumns()
Returns the sorting column names. This is, returns the column names of the columns that are being used to sort the information in the table. In this case the some columns could not be visible, although they are used to sort the table.

Returns:
a String[] containing the sorting column names

getAscendents

public boolean[] getAscendents()
Returns an array with the sorting type of all the sorting columns. The array size will be the same of the number of sorting columns present in the table. The value of each position will be true, if the sorting is ascendant, or false, is the column is ordered in a descendant way. The index in the array corresponds to the application sorting order, this is, the index 0 will correspond with the first sorting applied, etc.

Returns:

getFilterColumn

public java.util.Vector getFilterColumn()
Returns a vector with the names of the columns that have filters applied in the table view.

Returns:
the names of the filtered columns

getAscending

public boolean getAscending()
Returns the sorting mode corresponding to the first sorted column

Returns:
true if the first sorted column is ascending. If no ordenation applied or in case that there is a sorting applied and this is descendant, the return will be false.

sortBy

public void sortBy(java.lang.String column,
                   boolean ascendant)
Sorts the table based on the column values. Previous sorting is removed.

Parameters:
column - the column that will be used for sorting
ascendant - true if the sorting will start with the smallest values, false otherwise

sortByWithoutReset

public void sortByWithoutReset(java.lang.String column,
                               boolean asc)
Sorts the table based on the column values. Previous sorting is mantained.

Parameters:
column - the column that will be used for sorting

setPreferredTableColumnWidths

protected int[] setPreferredTableColumnWidths()
Sets the preferred width for all columns.

Returns:
the width set for each column, in pixels, order by the column order in the table

getPreferredColumnWidth

protected int getPreferredColumnWidth(int modelColumnIndex,
                                      int maxRowNumber)
Returns the preferred width for the column passed as param.

Parameters:
modelColumnIndex - the index of the column
maxRowNumber - the max number of rows to check
Returns:

setPreferredTableColumnWidths

protected int[] setPreferredTableColumnWidths(int maxRows)
Sets the preferred width for the columns in the table, up to the maximum number of rows.

Parameters:
maxRows - max number of rows to check
Returns:
the width set for each column, in pixels, order by the column order in the table

isRowNumberColumnVisible

public boolean isRowNumberColumnVisible()

setRowNumberColumnVisible

public void setRowNumberColumnVisible(boolean visible)
Sets whether or not the row number column is visible.

Parameters:
visible - true if the row number column should be visible, false otherwise

setPreferredTableColumnWidths

protected int[] setPreferredTableColumnWidths(java.util.Vector visibleColumns)
Sets the current column width to the preferred column width for the columns past as parameter

Parameters:
visibleColumns - a vector containing the column names
Returns:

setPreferredTableColumnWidths

protected int[] setPreferredTableColumnWidths(java.util.Vector visibleColumns,
                                              javax.swing.JProgressBar progressBar)
Sets the current column width to the preferred column width for the columns past as parameter

Parameters:
visibleColumns - a vector containing the column names
progressBar - a progress bar to show the process
Returns:

printSilent

public void printSilent(java.lang.String title)
Starts the table printing process. No dialogs are shown.

Parameters:
title -

print

public void print()
Starts the print table dialog.


copySelection

protected void copySelection()
Copies the selected data in the table GUI to the system clipboard.


deleteGroup

protected void deleteGroup()
Returns the grouping for the column over which was pressed the mouse to select the deletion.


insertGroup

protected void insertGroup(int type)
Groups the selected column by the defined type. Types are defined in the TableSorter class, and can be at least:

Parameters:
type - the grouping type; see TableSorter

insertGroup

protected void insertGroup()
Groups the selected column in the table by year.


insertFilterByValue

protected void insertFilterByValue()
Popup menu method that gets the value in the cell over which the menu was displayed, gets that value, and filters the table applying that value as filter value. The column that will be filtered in the corresponding the cell.


insertFilter

protected void insertFilter()
Shows the FilterDialog.

See Also:
FilterDialog

deleteFilter

protected void deleteFilter()
Deletes all the filters that are being applied to the table.


deleteColumnFilter

protected void deleteColumnFilter()
Popup menu method. Deletes all the filters that are being applied to the column over which the right click menu was invoked.


printSelection

protected void printSelection()
Opens the printing dialog to print the information contained in the selected rows.


copyCell

protected void copyCell()
Copies to the clipboard the information contained by the cell over which the mouse right click opened the popup menu.


setImageRendererHeight

public void setImageRendererHeight(int pixels)
Sets the height that will have the rendered images into the table.

Parameters:
pixels - the height in pixels for the image renderers
See Also:
ImageCellRenderer

configurePageable

protected void configurePageable(int pageSize)
Configures the pageable table.

Parameters:
pageSize -

getCurrentRowCount

public int getCurrentRowCount()
Returns the total amount of records shown in the table. In case that the table is filtered or grouped, returns the total amount of records after performing those operations.

In any case the sum column will not be considered.

Returns:
the total number of records shown in the table

getRealRecordsNumber

public int getRealRecordsNumber()
Returns the total amount of records in the table. Sum row is not included. In case that the table is filtered or grouped, the result will not be modified.

Returns:
the total amount of records in the table

getParentKeyValues

public java.util.Hashtable getParentKeyValues()
Returns a #Hashtable in which the keys are the field names configured as table parent keys (using the names in the table entity if they are different that the form fields), and the values are the values those fields have in the table's parent form.

Specified by:
getParentKeyValues in interface IFilterElement
Returns:
all the parent keys values
See Also:
getParentKeyValues(boolean)

getParentKeyList

public java.util.Vector getParentKeyList()
Specified by:
getParentKeyList in interface IFilterElement

hasParentKeys

public boolean hasParentKeys()
Specified by:
hasParentKeys in interface IFilterElement

getParentKeyValues

public java.util.Hashtable getParentKeyValues(boolean applyEquivalences)
Returns a #Hashtable in which the keys are the field names configured as table parent keys, and the values are the values those fields have in the table's parent form.

Parameters:
applyEquivalences - If this parameter is true then the names used as keys in the result are the names of the parent keys in the table entity. If false, then the names are the names of the fields in the parent form
Returns:

setControlButtonsEnabled

protected void setControlButtonsEnabled(boolean enabled)
Sets whether the control buttons pannel will be enabled or not.

Parameters:
enabled - true if the table header should enable

setButtonTips

protected void setButtonTips()
Configures the buttons tip.


getSumColumn

public java.lang.Number getSumColumn(java.lang.Object col)
Returns the sum of all the values for the specified column.

Parameters:
col - the column to sum
Returns:
the sum of the values of the record for the column

getDetailForm

public DetailForm getDetailForm()
Returns the DetailForm configured for this table. The detail form is the form in which the records can be shown in detail by double clicking the rows in the grid. It is used as well to perform insert operations from the tables, by clicking the insert button in the top right corner of the table.

Returns:
the detail form, or null if no form has been specified

fitColumnSize

public void fitColumnSize(int column)
Sets the preferred size to the specified column.

Parameters:
column - the column to set the size

setTextsMenu

protected void setTextsMenu()
Sets all the table texts in the table popup menu.


getSelectedRowData

public java.util.Hashtable getSelectedRowData()
Returns the information contained in the selected rows in a #Hashtable. The #Hashtable keys are the table attributes, and the values are #Vector with the row values.

Returns:
the information contained by the selected rows, and null when there is no selection

checkVisiblePermission

protected boolean checkVisiblePermission()
Checks the component visibility. Depending on the client permissions, the table can be shown or not. This method checks that permission to hide the table when necessary.

Returns:
true in case the table can not be visible, false if it can

checkEnabledPermission

protected boolean checkEnabledPermission()
Checks if the table must be disabled. Depending on the client permissions, the table can be enabled or not. This method checks that permission to disable or enable the table when necessary.

Returns:
true in case the table can not be enabled, false if it can

checkInsertPermission

protected boolean checkInsertPermission()
Checks if the table can perform insertions. Depending on the client permissions, the table can have the insertions restricted. This method checks that permission to disable or enable the inserting from the table feature.

Returns:
true in case the table can insert, false if it cannot

checkQueryPermission

protected boolean checkQueryPermission()
Checks if the table can perform queries. Depending on the client permissions, the table can have the queries restricted. This method checks that permission to disable or enable querying.

Returns:
true in case the table can query, false if it cannot

checkComponentTablePermission

protected boolean checkComponentTablePermission(java.lang.Object key,
                                                java.lang.String type)
Checks whether the component with this key has been restricted by the permission type . If this method returns true the table component will not be restricted by this permission type.
For example, if the a call to this method with the type "visible" returns true, then the component is visible.

Parameters:
key - the key of the table component to be restricted
type - the type of permission to be checked
Returns:
false the component are restricted

setVisible

public void setVisible(boolean vis)
Sets the table visible. Client permissions are checked.

Specified by:
setVisible in interface FormComponent
See Also:
checkVisiblePermission

initPermissions

public void initPermissions()
Some table functionalities and behaviours can be controled using client security, so the same table can be different depending on the user profile.

This method sets the client permission for the table, according to the client permissions XML profile. This is, checks whether the table can be visible or not, as well as whether the table is enabled or not.

The method checks some other permissions such as the query permission and the insert permission, which can allow insertions from the table.

Specified by:
initPermissions in interface SecureElement
See Also:
initTableComponentPermissions()

initTableComponentPermissions

public void initTableComponentPermissions()
Applies client permissions to the components in the controlsPanel.

The table functionalities, accessible through the controlsPanel buttons, can be controlled using client permission. This implies that those buttons can be disabled or hidden using the client permission XML.

See Also:
checkComponentTablePermission(java.lang.Object, java.lang.String)

setScrollTipEnabled

public void setScrollTipEnabled(boolean enable)
Sets whether a tip informing about the record number when pressing the table scroll must be shown or not.

Parameters:
enable - true if the tip should be enabled, false otherwise

toggleControls

public void toggleControls()
Toggles the control panel visibility.


setControlsVisible

public void setControlsVisible(boolean visible)
Sets whether or not the table controls are visible.

Parameters:
visible - true if the table controls should be visible, false otherwise

setControlsVisible

public void setControlsVisible(boolean vis,
                               boolean savePreferences)
Sets whether or not the table controls are visible.

Parameters:
vis - true if the table controls should be visible, false otherwise
savePreferences - if true, the visibility set will be stored as application preference

preferenceChanged

public void preferenceChanged(PreferenceEvent prefEvent)
Is call when a preference changes, because the table is registered as a preference change listener.

Specified by:
preferenceChanged in interface ApplicationPreferencesListener
Parameters:
prefEvent - the event with the preference changes

getUser

protected java.lang.String getUser()
Returns the user name.

Returns:
the user name

initPreferences

public void initPreferences(ApplicationPreferences aPrefs,
                            java.lang.String user)
Sets the table preferences.

Tables can remember their state between application execution. For instance things like visible columns, column size and order, and, in general, all the parameters that can be modified and changed bu the user can be reset by calling this method.

Specified by:
initPreferences in interface HasPreferenceComponent

configureCalculatedCols

protected void configureCalculatedCols(java.util.List calcColNames,
                                       java.util.List expressions,
                                       boolean savePreferences)

getCalculatedColsPreferenceStringValue

protected java.lang.String getCalculatedColsPreferenceStringValue()

setVisibleColumns

public void setVisibleColumns(java.util.Vector visibleColumns)
Establishes as visible columns the columns passed as parameter and shows the columns.

Parameters:
visibleColumns - a Vector containing the column names to show.

setVisibleColumns

public void setVisibleColumns(java.util.Vector visibleColumns,
                              boolean autoSizeColumns)
Establishes as visible columns the columns passed as parameter and shows the columns.

Parameters:
visibleColumns - a Vector containing the column names to show.
autoSizeColumns - if true, the column size will be adjusted to its new contents

getButtonVisibleColsSetupIcon

protected javax.swing.Icon getButtonVisibleColsSetupIcon(boolean renderer)

getVisibleColumnsPreferenceKey

protected java.lang.String getVisibleColumnsPreferenceKey()
Returns the client preferences key to store the visible columns.

Returns:
the client preferences key to store the visible columns

getVisibleControlsPreferenceKey

protected java.lang.String getVisibleControlsPreferenceKey()
Returns the client preferences key to store the visibility of the controls.

Returns:
the client preferences key to store the visibility of the controls

getFilterOrderConfPreferenceKey

protected java.lang.String getFilterOrderConfPreferenceKey(java.lang.String columnName)
Returns the client preferences key to store the filters for a determined column.

Parameters:
columnName - the column name
Returns:
the client preferences key to store the filters for a determined column.

getFilterOrderConfigurationPreferenceKey

protected java.lang.String getFilterOrderConfigurationPreferenceKey()
Returns the client preferences key to store the configuration of the sorting columns

Returns:
the client preferences key to store the configuration of the sorting columns

getCalculatedColumnsConfPreferenceKey

protected java.lang.String getCalculatedColumnsConfPreferenceKey()
Returns the client preferences key to store the calculated columns configuration.

Returns:
the client preferences key to store the calculated columns configuration

getVisibleColumns

public java.util.Vector getVisibleColumns()
Returns the current visible columns.

Returns:
the current visible columns

getReportColumns

public java.util.Vector getReportColumns()
Returns the columns used to build reports.

Returns:
the columns used to build reports.

setReportColumns

public void setReportColumns(java.util.Vector columns)

getOriginallyVisibleColumns

public java.util.Vector getOriginallyVisibleColumns()
Returns the visible columns specified in the XML table definition.

Returns:
a #Vector with the visible columns specified in the XML

getOriginalSumRowCols

public java.util.Vector getOriginalSumRowCols()
Returns the sum row columns specified in the XML table definition.

Returns:
a #Vector with the sum row columns specified in the XML

getRealColumns

public java.util.Vector getRealColumns()
Returns a #Vector with the column names that have been set as visible columns in the XML, and that are visible in the table as well.

Returns:
he column names set as visible columns in the XML, and that are visible in the table as well

getCurrentColumns

public java.util.Vector getCurrentColumns()
Returns the current visible columns managed by the table.

Returns:
the current visible columns managed by the table

getCalculatedColumns

public java.util.Vector getCalculatedColumns()

getOriginalCalculatedColumns

public java.util.Vector getOriginalCalculatedColumns()

isModifiableCalculatedColumns

public boolean isModifiableCalculatedColumns()

isChartEnabled

public static boolean isChartEnabled()
Check whether or not the charting functionality is enabled for this table.

Returns:
true if charting is allowed, false otherwise

checkChartEnabled

protected static void checkChartEnabled()
Checks if the charting classes are set into the classpath


addButtonToControls

public void addButtonToControls(javax.swing.AbstractButton button)
Adds a button to the controls panel

Parameters:
button - the button to add to the panel

addButtonToControls

public void addButtonToControls(javax.swing.AbstractButton button,
                                boolean useDefaultConfiguration)

configureControlButton

protected void configureControlButton(javax.swing.AbstractButton button)

createQuickFilter

protected Table.QuickFieldText createQuickFilter()

removeButtonFromControls

public void removeButtonFromControls(javax.swing.AbstractButton button)
Removes a button from the controls panel

Parameters:
button - the button to remove

addComponentToControls

public void addComponentToControls(javax.swing.JComponent component)
Adds a #JComponent to the controls panel

Parameters:
component - the component to be added

removeComponentFromControls

public void removeComponentFromControls(javax.swing.JComponent component)
Removes a #JComponent from the controls panel.

Parameters:
component - the component to remove

updateRowData

public void updateRowData(java.util.Hashtable rowData)
Updates row values in the table. The #Hashtable with the parameters contains both the keys that select the row and the values to be updated.

Parameters:
rowData -
See Also:
TableSorter.updateRowData(java.util.Hashtable, java.util.Vector)

updateRowData

public void updateRowData(java.util.Hashtable rowData,
                          java.util.Hashtable newkv)

updateRowData

public void updateRowData(java.util.Hashtable rowData,
                          java.util.List columns,
                          java.util.Hashtable newkv)

getHelpIdString

public java.lang.String getHelpIdString()
Specified by:
getHelpIdString in interface HasHelpIdComponent

installHelpId

public void installHelpId()
Sets the help id for this class in the HelpUtilities

Specified by:
installHelpId in interface HasHelpIdComponent
See Also:
getHelpIdString()

isRestricted

public boolean isRestricted()
Determines if the table is restricted, this is, has client permission restrictions.

Specified by:
isRestricted in interface SecureElement
Returns:
true if the table is restricted; otherwise, false

setMemoryOperations

public void setMemoryOperations(boolean inMemory)
Configures the table to perform the operations in memory. In that case, the entity that will be use to perform the operations will be the one defined in the table configuration

Parameters:
inMemory - true if this component should perform operations in memory. false otherwise
See Also:
init(java.util.Hashtable)

addTableRowHeader

public void addTableRowHeader(TableRowHeader tableRowHeader)
Adds a #TableRowHeader to the table. The #TableRowHeader will be actually set in the scrollPane.

Parameters:
tableRowHeader - the TableRowHeader

applyFilter

public void applyFilter(java.lang.String columnName,
                        java.lang.Object[] values,
                        int condition)
Applies a filter to the specified column. When the filter depends on a range, the array size must be at least 2. If values is null, a SimpleFilter will be set. In case that values has a String or a Boolean, a SimpleFilter will be applied, and in other case a Table.TxtFileFilter will be set.

Parameters:
columnName - the column in which the filter will be applied
values - the values to make the filter
condition - the condition to filter

applyFilter

public void applyFilter(java.lang.String columnName,
                        java.lang.Object filter)
Applies a filter to the specified column.

Parameters:
columnName -
filter - must be an instance of the classes MultipleFilter, Table.TxtFileFilter , SimpleFilter or DateFilter

applyFilter

public void applyFilter(java.util.Hashtable filters)
Applies filters to the current table.

Parameters:
filters - is a Hashtable containing the filters. The key is the columns name and the value must be an instance of the classes MultipleFilter, Table.TxtFileFilter , SimpleFilter , DateFilter
See Also:
TableSorter.applyFilter(Hashtable), Table.TxtFileFilter

resetFilter

public void resetFilter()
Removes all the filters set to the table.


resetFilter

public void resetFilter(java.lang.String column)
Removes the filter set to the specified column.

Parameters:
column - the column name

addColumn

public void addColumn(java.lang.String column)
Adds a column to the table.

Parameters:
column - the column name

addCalculatedColumn

public void addCalculatedColumn(java.lang.String columnName,
                                java.lang.String expression)
Adds a calculated column to the table.

Parameters:
expression - the column expression, for example SomeColumnName*5

getAllColumnRenderer

protected java.util.Hashtable getAllColumnRenderer()
Creates a Hashtable with all the columns that have a renderer.
Hashtable key is the column name and value is the column renderer

Returns:

getAllColumnEditors

protected java.util.Hashtable getAllColumnEditors()
Creates a Hashtable with all the columns that have an editor.
Hashtable key is the column name and value is the column editor

Returns:

configureRenderEditor

protected void configureRenderEditor(java.util.Hashtable renderer,
                                     java.util.Hashtable editor)
Configure the renderer and editor to the columns

Parameters:
renderer - Key is the column name and value is the renderer to set
editor - Key is the column name and value is the editor to set

deleteColumn

public void deleteColumn(java.lang.String column)
Deletes the specified column from the table.

Parameters:
column - the column name

deleteCalculatedColumn

public void deleteCalculatedColumn(java.lang.String column)
Deletes the specified calculated column from the table.

Parameters:
column - the column name

setAttributesToFix

protected void setAttributesToFix()
Sets the fixed attributes to the detail form. Thas is, make the detail form to have, in the fields configured as fixattr, the same values that are placed in the form in which the talbe is placed.


setHorizontalScroll

protected void setHorizontalScroll(boolean scrollH)
Sets an horizontal scroll to the Table. This allows the Table to contain a big number of columns and display them.

Parameters:
scrollH - true to enable the scroll, false to disable it

getParentKeys

public java.util.Vector getParentKeys()
Returns a vector containing the parent key names, this is, the names set in the XML to the attribute 'parentkeys'.

Returns:
the parent key names
See Also:
init(java.util.Hashtable)

getParentKeys

public java.util.Vector getParentKeys(boolean applyEquivalences)

getParentkeyEquivalentValue

public java.lang.Object getParentkeyEquivalentValue(java.lang.Object parentkey)
Get the name of the table column associated with the parent key field name

Parameters:
parentkey -
Returns:

updateTable

protected EntityResult updateTable(int rowIndex,
                                   int viewColumnIndex)
                            throws java.lang.Exception
Deprecated. Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)

Updates the value determined by the specified column and row in the Entity. If other data related to the row must be updates, can be passed as param.

Parameters:
rowIndex - the row indes
viewColumnIndex - the column index in the model
Returns:
the result of the update
Throws:
java.lang.Exception

updateTable

protected EntityResult updateTable(int rowIndex,
                                   int viewColumnIndex,
                                   java.util.Hashtable otherData)
                            throws java.lang.Exception
Deprecated. Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)

Updates the value determined by the specified column and row in the Entity. If other data related to the row must be updates, can be passed as param.

Parameters:
rowIndex - the row index
viewColumnIndex - the column index in the model
otherData - other data to be updated in that entity
Returns:
the result of the update
Throws:
java.lang.Exception

updateTable

protected EntityResult updateTable(int rowIndex,
                                   int viewColumnIndex,
                                   java.util.Hashtable otherData,
                                   java.lang.Object previousData)
                            throws java.lang.Exception
Deprecated. Must be used updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)

Updates the value determined by the specified column and row in the Entity. If other data related to the row must be updates, can be passed as param.

Parameters:
rowIndex - the row index
viewColumnIndex - the column index in the model
otherData - other data to be updated in that entity
previousData -
Returns:
the result of the update
Throws:
java.lang.Exception

updateTable

protected EntityResult updateTable(java.util.Hashtable keysValues,
                                   int viewColumnIndex,
                                   javax.swing.table.TableCellEditor tableCellEditor,
                                   java.util.Hashtable otherData,
                                   java.lang.Object previousData)
                            throws java.lang.Exception
Updates the value determined by the specified column and row in the Entity. If other data related to the row must be updates, can be passed as param.

Parameters:
keysValues - the values of the keys
viewColumnIndex - the column index in the model
tableCellEditor - the editor
otherData - other data to be updated in that entity
previousData -
Returns:
the result of the update
Throws:
java.lang.Exception

setReferenceLocator

public void setReferenceLocator(EntityReferenceLocator referenceLocator)
Sets a reference to the EntityReferenceLocator

Specified by:
setReferenceLocator in interface ReferenceComponent
Parameters:
referenceLocator - the EntityReferenceLocator

configureComponentsLocator

protected void configureComponentsLocator(java.util.Hashtable components,
                                          EntityReferenceLocator locator)

configureComponentsParentForm

protected void configureComponentsParentForm(java.util.Hashtable components,
                                             Form parentForm)

getFormName

public java.lang.String getFormName()
Returns the detail form name.

Returns:
the detail form name

isGroup

public boolean isGroup()
Determines if the table is grouped.

Returns:
true if the table is grouped; otherwise, false

resetGroup

public void resetGroup()
Removes the grouping applied to the table.


setDefaultChartsEnabled

public void setDefaultChartsEnabled(boolean enabled)
Sets whether the default charting functionality is enabled or not. If enabled is true it is; if it is false it is not.

Parameters:
enabled - true if default charting is enabled

installConfSumRowButton

protected void installConfSumRowButton()
Creates, adds to the control panel, and creates the action listener related to the button that manages the configuration of the sum rows.


showConfSumRowDialog

protected void showConfSumRowDialog()

installConfVisibleColsButtons

protected void installConfVisibleColsButtons()
Creates, adds to the control panel, and creates the action listener related to the button that manages the configuration of the visible columns.


installDefaultChartsButton

protected void installDefaultChartsButton()
Creates, adds to the control panel, and creates the action listener related to the button that open the charting window.


getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Retuns the resources file used by the table.

Returns:

setEnabledDetail

public void setEnabledDetail(boolean enabled)
Sets whether or not the DetailForm of this component is enabled.

Parameters:
enabled - true if this component should be enabled, false otherwise

hasForm

public boolean hasForm()
If the table has a detail form, the method returns true. False, in other case.

Returns:
true if the table has detail form

getEnabledDetail

public boolean getEnabledDetail()
Determines if the detail form of the table is enable.

Returns:
true if the detail form is enable, false otherwise

isSorted

public boolean isSorted()
Determines if the table is sorted.

Returns:
true if the table is sorted; otherwise, false

getViewOrderColumnIndex

public int getViewOrderColumnIndex()
Returns the view index of the first column that is sorted.

Returns:
the view index of the first column that is sorted, null when the table is not sorted
See Also:
TableSorter.getFirstSortedColumn()

isAscending

protected boolean isAscending()
Determines whether the first sorting applied to this table is ascending or not.

Returns:
true if the first column sorted has an ascending sorting; false otherwise

fireEditingStopped

protected void fireEditingStopped(java.lang.Object value,
                                  java.lang.Object previousValue,
                                  int rowIndex,
                                  int viewColumnIndex)
Notifies the edition listeners that the edition has been stopped.

Parameters:
value - the new value
previousValue - the old value
rowIndex - the row that has been changed
viewColumnIndex - the column that has been changed

fireEditingWillStop

protected void fireEditingWillStop(java.lang.Object value,
                                   java.lang.Object previousValue,
                                   int rowIndex,
                                   int viewColumnIndex)
                            throws EditingVetoException
Notifies the edition listeners that the edition will stop.

Parameters:
value - the new value
previousValue - the old value
rowIndex - the row that has been changed
viewColumnIndex - the column that has been changed
Throws:
EditingVetoException

fireEditingCancelled

protected void fireEditingCancelled(int rowIndex,
                                    int viewColumnIndex)
Notifies the edition listeners that the edition has been cancel.

Parameters:
rowIndex - the row that has been changed
viewColumnIndex - the column that has been changed

addTableEditorListener

public void addTableEditorListener(TableEditorListener listener)
Adds a #TableEditorListener to the table.

Parameters:
listener -

removeTableEditorListener

public void removeTableEditorListener(TableEditorListener listener)
Removes a #TableEditorListener from the table.

Parameters:
listener - the listener to remove

setAutoFixHead

public void setAutoFixHead(boolean autoFixHead)
Sets whether the table header will adjusts its size automatically.

Parameters:
autoFixHead - true if the table header should auto adjust

setVisibleColsConfigurationAllowed

public void setVisibleColsConfigurationAllowed(boolean allowConfiguration)
Sets whether or not the visible columns can be configured by the user.

Parameters:
allowConfiguration - true if the visible columns configuration should be enabled, false otherwise

setCellRendererColorManager

public void setCellRendererColorManager(CellRenderer.CellRendererColorManager colorManager)
Sets the color manager for all the CellRenderer contained by the table.

Parameters:
colorManager - the new color manager

setCellRendererFontManager

public void setCellRendererFontManager(CellRenderer.CellRendererFontManager fontManager)
Sets the font manager for all the CellRenderer contained by the table.

Parameters:
fontManager -

deteleFilterOrderConfiguration

protected void deteleFilterOrderConfiguration(java.lang.String confName)
Deletes the specified sorting and the filtering preference.

Parameters:
confName - the name given to the configuration when saved

saveOrderFilterConfiguration

protected void saveOrderFilterConfiguration(java.lang.String confName)
Saves the table filter configuration.

Parameters:
confName - the name given to the configuration

saveFilterOrderConfiguration

protected void saveFilterOrderConfiguration(java.lang.String confName,
                                            boolean savePositionAndWidth)
Saves the table filter configuration with a name, and optionally the column position and widths.

Parameters:
confName - the name given to the configuration;
savePositionAndWidth - if true, column position and width will be saved

configureFilterOrder

protected void configureFilterOrder(java.awt.event.ActionEvent e)
Method call by the listener of the TableButton that manages the saving of the filter configuration. Creates the menu corresponding to the stored configurations and displays it.

Parameters:
e - the event

loadFilterOrderConfiguration

public void loadFilterOrderConfiguration(java.lang.String filterName)
Loads the configuration which name is passed as parameter. If the filter configuration cannot be found, loads the default one, if exists.

Parameters:
filterName -

setEditorManager

public void setEditorManager(Table.EditorManager manager)
Sets an Table.EditorManager to the present Table.

Parameters:
manager -

getEditorManager

public Table.EditorManager getEditorManager()
Returns the Table.EditorManager configured in the present table.

Returns:

setRendererManager

public void setRendererManager(Table.RendererManager manager)
Sets the RendererManager, which provides the renderes depending on the object type that must be renderer.

Parameters:
manager -
See Also:
Table.RendererManager

getRendererManager

public Table.RendererManager getRendererManager()
Returns the Table.RendererManager configured for this table.

Returns:

prepareEditor

public void prepareEditor(javax.swing.table.TableCellEditor editor)
Establishes the initial parameters for the TableCellEditor components

The method must be called to prepare all editors implementing

  • ReferenceComponent
  • Internationalization
  • AccessForm
  • CachedComponent
  • Parameters:
    editor -

    prepareRenderer

    public void prepareRenderer(javax.swing.table.TableCellRenderer renderer)
    Establishes the initial parameters for the TableCellRenderer components

    The method must be called to prepare all renderes implementing

  • CellRenderer
  • ReferenceComponent
  • Internationalization
  • AccessForm
  • CachedComponent
  • Parameters:
    renderer -

    isDetailFormCreated

    public boolean isDetailFormCreated()
    Returns true if the table detail form is created.

    Returns:
    true if the table detail form is created

    setDefaultFilter

    protected void setDefaultFilter()
    Sets the default filter to the table. The default filter can be configured in the preferences.


    installCalculedColsButton

    protected void installCalculedColsButton()
    Installs the button that manages the calculated columns configuration in the table.


    showCalculatorWindow

    protected void showCalculatorWindow(java.lang.Object source)
    Shows the calculator window

    Parameters:
    source -

    installReportButton

    protected void installReportButton()
    Installs the Report Button


    createReportSetupMenu

    protected void createReportSetupMenu()
    Creates the report setup menu, and sets it to the menuReportSetup variable.


    createColumnPositionAndWidthPreference

    protected java.lang.String createColumnPositionAndWidthPreference()
    Creates the preference according to the current table configuration.

    Returns:
    the String that defines this preference

    saveColumnsPositionAndWith

    public void saveColumnsPositionAndWith()
    Saves the columns color and width as table preference.


    saveOperations

    public void saveOperations(java.util.Hashtable operations)
    Saves the operations passed as parameter in the preferences. The parameter keys must be column names and the values, the operations described in the Table.

    Parameters:
    operations - contains the operations to store

    applyOperations

    public void applyOperations()
    Applies the operations stored in the preferences file to the table.

    See Also:
    TableSorter.setOperationColumns(java.util.Hashtable)

    saveVisibleControlsConfiguration

    public void saveVisibleControlsConfiguration()
    Saves the current visible controls configuration in the preferences.


    evaluateColumnsWidthAndPosition

    protected boolean evaluateColumnsWidthAndPosition()
    Ensures that the setWidthAndPositionColumns() method only is called once.

    Returns:
    true if all was ok, false otherwise

    setWidthAndPositionColumns

    protected boolean setWidthAndPositionColumns()
    Sets the column width and position to the values stored in the preferences.

    Returns:
    true if all was ok, false otherwise

    applyColumnPositonAndPreferences

    protected void applyColumnPositonAndPreferences(java.lang.String preference)
    Applies the position and column preferences past as parameter.

    Parameters:
    preference - the preference value to set

    getOperationPreferenceKey

    protected java.lang.String getOperationPreferenceKey()
    Returns the key that will be used to identify the preference that will save the operations applied to the different columns.

    Returns:
    the preference key

    getColumnsPosAndOrderPreferenceKey

    protected java.lang.String getColumnsPosAndOrderPreferenceKey()
    Returns the key that will be used to identify the preference that will save the columns position and order.

    Returns:
    the preference key

    getJScrollPane

    public javax.swing.JScrollPane getJScrollPane()
    Provides a reference to the table ScrollPane

    Returns:
    a refrence to the table scroll pane

    getCustomReportPreferenceKey

    protected java.lang.String getCustomReportPreferenceKey()
    Returns the key that will be used to identify the preference that will save the custom reports associated to this table.

    Returns:
    the preference key

    showCustomReportsWindow

    public void showCustomReportsWindow()
    Shows the custom reports windows, when the table is not empty.


    showCustomReportsWindow

    public void showCustomReportsWindow(java.lang.String configuration)
    Shows the custom reports windows, when the table is not empty.

    Parameters:
    configuration - the report description

    getFilterInfo

    protected java.lang.String getFilterInfo()
    Returns a String with the information of all the filters that are being applied to the table. This String will be stored in the preferences in order to recover the filter configuration later.

    Returns:
    an empty String when no filters set

    updateFilterInfo

    protected void updateFilterInfo()
    Updates the text in the table that shows the current filter status,which shows the columns that are being filtered and the values that are being applied to those columns.


    getColumnIndex

    public int getColumnIndex(java.lang.String columnName)
    Returns the view index of the column specified.

    Parameters:
    columnName -
    Returns:

    evaluatePreferredRowsHeight

    protected void evaluatePreferredRowsHeight()
    Adjusts the height of all rows to the contents inside them.


    installPivotTableButton

    protected void installPivotTableButton()
    Installs the button that provides pivot functionallity in the control panel.


    getDetailWindowParameters

    protected java.util.Hashtable getDetailWindowParameters()

    setPivotTablePreferences

    protected void setPivotTablePreferences(javax.swing.JDialog pivotDialog)
    Adds the fuctionallity of manage preferences to the pivot table dialog.

    Parameters:
    pivotDialog - the dialog that contains the pivot table

    getPivotTablePreferenceKey

    protected java.lang.String getPivotTablePreferenceKey(java.lang.String configurationName)
    Returns the key that will be used to identify the preference that will save the pivot table configuration.

    Parameters:
    configurationName - the name of the concrete configuration
    Returns:
    the preference key for the specified configuration

    getPivotTablePreferenceKey

    protected java.lang.String getPivotTablePreferenceKey()
    Returns the key that will be used to identify the preference that will save the pivot table configurations.

    Returns:
    the preference key for the default configuration

    menuPivotTablePreferences

    protected void menuPivotTablePreferences(java.awt.event.ActionEvent e)
    Method called by the table pivot button listener that shows the pivot table dialog.

    Parameters:
    e -

    loadPivotTableConfiguration

    protected void loadPivotTableConfiguration(java.lang.String confName)
    Load the concrete pivot table configuration.

    Parameters:
    confName - the configuration name

    deletePivotTableConfiguration

    protected void deletePivotTableConfiguration(java.lang.String confName)
    Deletes the pivot table configuration passed as parameter.

    Parameters:
    confName - the configuration name

    savePivotTableConfiguration

    protected void savePivotTableConfiguration(java.lang.String confName)
    Saves the current pivot table configuration.

    Parameters:
    confName - the configuration name

    setQuickFilterValue

    public void setQuickFilterValue(java.lang.String text)

    getQuickFilter

    public Table.QuickFieldText getQuickFilter()

    getParameters

    protected java.util.Hashtable getParameters()
    Get the configuration parameters. If this is a dynamic table this method updates the parameters with the new column configuration. When the value changes, the columns configuration changes too, and so, there is a difference between the configuration in the xml (that says that there are no columns) and the information that is being displayed in the GUI (which has the value in the hashtable). Some Table tools, such and the PrintTable button, creates a new Table from the parameters configuration, and then adds the values in the previous Table to the new one, provoking a configuration mismatch.

    Returns:

    getMinRowHeight

    public int getMinRowHeight()

    setMinRowHeight

    public void setMinRowHeight(int height)

    getPrintingFontSize

    public int getPrintingFontSize()

    getRequieredCols

    public java.util.Vector getRequieredCols()
    Get the required columns to insert. This method must be used only if inserting row exist

    Returns:

    setInsertInDataBase

    public void setInsertInDataBase(boolean insert)
    Deprecated. Use setInsertInDatabase

    Parameters:
    insert -

    setInsertInDatabase

    public void setInsertInDatabase(boolean insert)

    setRemoveInDataBase

    public void setRemoveInDataBase(boolean insert)
    Deprecated. Use setRemoveInDatabase


    setRemoveInDatabase

    public void setRemoveInDatabase(boolean remove)

    setUpdateInDatabase

    public void setUpdateInDatabase(boolean update)
    Enabled/disabled updating the changes in the database when the user change the values stored in those.

    Parameters:
    update -

    isDataBaseInsert

    public boolean isDataBaseInsert()

    isInsertingEnabled

    public boolean isInsertingEnabled()

    addInsertTableInsertRowListener

    public void addInsertTableInsertRowListener(InsertTableInsertRowListener l)
    Specified by:
    addInsertTableInsertRowListener in interface InsertTableInsertRowChange

    removeInsertTableInsertRowListener

    public void removeInsertTableInsertRowListener(InsertTableInsertRowListener l)
    Specified by:
    removeInsertTableInsertRowListener in interface InsertTableInsertRowChange

    fireInsertTableInsertRowChange

    public void fireInsertTableInsertRowChange(InsertTableInsertRowEvent insertTableInsertRowEvent)
    Specified by:
    fireInsertTableInsertRowChange in interface InsertTableInsertRowChange

    getTableSorter

    public TableSorter getTableSorter()

    checkInsertingRowValue

    public void checkInsertingRowValue()
                                throws java.lang.Exception
    Throws:
    java.lang.Exception

    getInsertingData

    protected java.util.Hashtable getInsertingData()

    executeInsertRow

    protected void executeInsertRow()

    registerKeyListeners

    protected void registerKeyListeners()

    isTranslateHeader

    public boolean isTranslateHeader()

    getPageFetcher

    public PageFetcher getPageFetcher()

    getTemplateDataType

    public int getTemplateDataType()
    Description copied from interface: ITemplateField
    Returns the data type. The values that can return are: ITemplateField.DATA_TYPE_FIELD ITemplateField.DATA_TYPE_IMAGE ITemplateField.DATA_TYPE_TABLE

    Specified by:
    getTemplateDataType in interface ITemplateField
    Returns:
    a int with the data type.

    getTemplateDataValue

    public java.lang.Object getTemplateDataValue()
    Description copied from interface: ITemplateField
    Gets the value to show in the template

    Specified by:
    getTemplateDataValue in interface ITemplateField
    Returns:

    retrieveOnSetValueData

    protected java.util.Hashtable retrieveOnSetValueData()

    updateOnSetValueSetAttributes

    protected void updateOnSetValueSetAttributes(java.util.Hashtable data)

    parseFunction

    protected java.util.Hashtable parseFunction(java.util.Hashtable equivalences)

    Ontimize