public class Table extends JRootPane implements DataComponent, CreateForms, OpenDialog, AccessForm, Freeable, SelectCurrencyValues, ApplicationPreferencesListener, HasPreferenceComponent, HasHelpIdComponent, ReferenceComponent, InsertTableInsertRowChange, ITemplateField, IFilterElement, ListSelectionListener, IRefreshable, InteractionManagerModeListener
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)
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Table.ColumnPermissionStore
Class that stores all the permissions for all the table components
|
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 static 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.
|
JRootPane.AccessibleJRootPane, JRootPane.RootLayoutJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Table.InfoFilterButtonsModelListener |
actButtonsModelListener |
protected boolean |
activatedFilter |
protected Vector |
addButtons |
protected Vector |
addComponents |
protected 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 |
allColumnTypes |
protected boolean |
allowDelete |
protected boolean |
allowOpenInNewWindow |
protected boolean |
allowSetupVisibleColumns |
protected Vector |
attributes
Contains the columns and keys names
|
protected List<String> |
attributesToFix |
protected TableAttribute |
attributeTable
Deprecated.
|
static String |
AUTO_ADJUST_HEADER
Attribute name allowed in the XML.
|
protected boolean |
autoFixHead |
static String |
AVERAGE_es_ES
Operation column type
|
static 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 String |
BUTTON_CALCULATED_COL
Button key
|
static String |
BUTTON_CHANGEVIEW
Button key
|
static String |
BUTTON_CHART
Button key
|
static String |
BUTTON_COPY
Button key
|
static String |
BUTTON_DEFAULT_CHART
Button key
|
static String |
BUTTON_DELETE
Button key
|
static String |
BUTTON_EXCEL_EXPORT
Button key
|
static String |
BUTTON_HTML_EXPORT
Button key
|
static String |
BUTTON_LAYOUT |
static String |
BUTTON_PIVOTTABLE |
static String |
BUTTON_PLUS
Button key
|
static String |
BUTTON_PRINTING
Button key
|
static String |
BUTTON_REFRESH
Button key
|
static String |
BUTTON_REPORT
Button key
|
static String |
BUTTON_SAVE_FILTER_ORDER_SETUP
Button key
|
static String |
BUTTON_SUM_ROW_SETUP
Button key
|
static String |
BUTTON_VISIBLE_COLS_SETUP
Button key
|
protected JButton |
buttonCalculatedColumns |
protected PropertyChangeListener |
buttonChangeListener |
protected JButton |
buttonChangeView
Table button.
|
protected JButton |
buttonChart
Table button.
|
protected JButton |
buttonCopy
Table button.
|
protected TableButtonSelection |
buttonDefaultChart
Table button.
|
protected JButton |
buttonDelete
Table button.
|
protected JButton |
buttonExcelExport
Table button.
|
protected JButton |
buttonHTMLExport
Table button.
|
protected Hashtable |
buttonIcons |
protected TableButton |
buttonPivotTable |
protected JButton |
buttonPlus
Table button.
|
protected JButton |
buttonPlus2
Table button.
|
protected JButton |
buttonPrint
Table button.
|
protected JButton |
buttonRefresh
Table button.
|
protected TableButtonSelection |
buttonReports |
protected JButton |
buttonSaveFilterOrderSetup |
protected JButton |
buttonSumRowSetup
Table button.
|
protected JButton |
buttonVisibleColsSetup
Table button.
|
static String |
CALCULED_COLS
Attribute name allowed in the XML.
|
static String |
CALCULED_COLS_REQUIRED_FIELDS
Attribute name allowed in the XML.
|
protected Hashtable |
calculedColumns |
protected Table.EditorManager |
cellEditorManager |
protected CellRenderer.CellRendererColorManager |
cellRendererColorManager |
protected CellRenderer.CellRendererFontManager |
cellRendererFontManager |
protected Table.RendererManager |
cellRendererManager |
protected Charset |
charsetIso88591 |
static boolean |
CHART_ENABLED
Allows the charting functionality
|
protected static boolean |
CHART_V1 |
protected Vector |
chartGraphMenuItems |
protected ExtendedJPopupMenu |
chartMenu |
protected IChartUtilities |
chartUtilities |
static String |
CLASSIC_BUTTON_LAYOUT |
static String |
CODS
Attribute name allowed in the XML
|
protected Hashtable |
codValues |
protected int |
colPress |
static String |
COLS
Attribute name allowed in the XML.
|
protected Vector |
columnsToOperate |
protected Vector |
columnsToSum |
protected 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 String |
CONF_VISIBLE_COLS
Attribute name allowed in the XML.
|
static String |
CONTINUOUS |
protected static String |
CONTROL_LAYOUT_KEY |
protected String |
controlButtonLayout |
static String |
CONTROLS
Attribute name allowed in the XML.
|
static String |
CONTROLS_VISIBLE
Attribute name allowed in the XML.
|
protected ControlPanel |
controlsPanel |
boolean |
controlsVisible |
static String |
COPY_CELL
GUI text
|
static String |
COPY_CELL_es_ES
GUI text
|
static String |
COPY_SELECTION
GUI text
|
static String |
COPY_SELECTION_es_ES
GUI text
|
static String |
COUNT_es_ES
Operation column type
|
static boolean |
createCalculatedButton |
static String |
CURRENCY
Attribute name allowed in the XML.
|
protected Vector |
currencyColumns |
protected CurrencyCellRenderer |
currencyRenderer |
static String |
CUSTOM_CHARTS
Attribute name allowed in the XML.
|
static String |
DATABASE_INSERT
Attribute name allowed in the XML.
|
static 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 String |
DEFAULT_BUTTONS |
static 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 String |
DEFAULT_VISIBLE_COLS
Attribute name allowed in the XML.
|
protected boolean |
defaultButtons |
protected boolean |
defaultChartsEnabled |
static String |
defaultControlButtonLayout |
protected Object |
defaultFilter |
static boolean |
defaultModifiableCalculatedColumns |
static boolean |
defaultPivotTableVisibility
Allows the user to modify pivot table visibility
|
static boolean |
defaultQuickFilterLocal |
static boolean |
defaultQuickFilterVisible
Allows the user to modify quickfilter visibility
|
static boolean |
defaultQuickFilterWarningVisibility
Allows the user to show/hide globally the quickfilter warning message on
paged tables.
|
static boolean |
defaultShowGridValue |
static Color |
defaultTableBackgroundColor |
static boolean |
defaultTableOpaque |
protected Vector |
defaultVisibleColumns |
static String |
DELETE_BUTTON
Attribute name allowed in the XML.
|
static String |
DELETE_FILTER_COLUMN
GUI text
|
static String |
DELETE_FILTER_es_ES
GUI text
|
static String |
DELETE_GROUP_es_ES
GUI text
|
protected Table.DeleteItemListener |
deleteListener |
protected static ActionListener |
deletePrefPivotTableItemListener |
static String |
DETAIL_DATE_FORMAT
Attribute name allowed in the XML.
|
static String |
DETAIL_FORMAT
Attribute name allowed in the XML.
|
protected DetailForm |
detailForm |
protected DetailFormBuilder |
detailFormBuilder |
protected String |
detailFormTitleKey |
protected static String |
detailKey
GUI text
|
protected String |
dinamicFormClass |
static String |
DISABLE_INSERT
Attribute name allowed in the XML.
|
protected boolean |
disableInsert
Determines whether the insertion using the table is enabled or not.
|
static String |
DOWN_10
Deprecated.
|
static String |
DOWN_100
Deprecated.
|
static String |
DOWN_50
Deprecated.
|
static String |
DOWN_ALL
Deprecated.
|
protected JDialog |
dPivot |
static String |
DYNAMIC
Attribute name allowed in the XML.
|
static String |
DYNAMIC_FORM
Attribute name allowed in the XML.
|
protected DynamicFormManager |
dynamicFormManager |
protected boolean |
dynamicTable |
static String |
EDITABLE_COLUMNS
Attribute name allowed in the XML.
|
protected Vector |
editableColumns |
protected Vector |
editableColumnsUpdateEntity |
protected Vector |
editionListeners |
protected static String |
editKey
GUI text
|
protected boolean |
enabled |
protected boolean |
enabledDetail |
protected FormPermission |
enabledPermission |
protected String |
entity
The table entity
|
static String |
ENTITY
Attribute name allowed in the XML.
|
static int |
EQUAL
Filter operation key
|
protected MouseEvent |
eventPress |
protected JMenuItem |
filter |
static String |
FILTER_BY_VALUE_es_ES
GUI text
|
static String |
FILTER_COLUMN_es_ES
GUI text
|
static String |
FILTER_HEAD_TIP_COD
GUI text
|
protected FilterDialog |
filterWindow |
static String |
FIND_MESSAGE |
protected boolean |
fitRowHeight |
static String |
FIX_ATTR
Attribute name allowed in the XML.
|
static String |
FONT_SIZE
Attribute name allowed in the XML.
|
protected int |
fontSize |
static String |
FORM
Attribute name allowed in the XML.
|
protected FormatPattern |
formatPattern
Pattern to format the field contents.
|
protected FormBuilder |
formBuilder |
protected String |
formName
The detail form name
|
static int |
GREATER
Filter operation key
|
static int |
GREATER_EQUAL
Filter operation key
|
static String |
GROUP_COLUMN_BY_DATE_es_ES
GUI text
|
static String |
GROUP_COLUMN_BY_MONTH
GUI text
|
static String |
GROUP_COLUMN_BY_QUARTER
GUI text
|
static String |
GROUP_COLUMN_BY_QUARTER_YEAR
GUI text
|
static String |
GROUP_COLUMN_BY_YEAR
GUI text
|
static String |
GROUP_COLUMN_BY_YEAR_MONTH
GUI text
|
static String |
GROUP_COLUMN_BY_YEAR_MONTH_DAY
GUI text
|
static String |
GROUP_COLUMN_es_ES
GUI text
|
static String |
GROUP_FUNCTION
GUI text
|
static String |
GROUP_TABLE_KEY
Button key
|
protected GroupTableButton |
groupTableButton
Group Table button.
|
protected Map<String,String> |
hAttributesToFixEquivalences |
protected Hashtable<String,Integer> |
hColumnSQLTypes |
static String |
HEAD_TIP_COD
GUI text
|
protected 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 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 String |
HORIZONTAL_SCROLL
Attribute name allowed in the XML.
|
protected Vector |
hourRenderColumns |
protected DateCellRenderer |
hourRenderer |
protected Hashtable |
hParentkeyEquivalences |
protected TableInformationPanel |
informationPanel |
static String |
INSERT_FORM
Attribute name allowed in the XML.
|
static String |
INSERT_MODE
Attribute name allowed in the XML
|
static String |
INSERT_TABLE
Attribute name allowed in the XML.
|
protected DetailForm |
insertDetailForm |
protected InsertDetailFormBuilder |
insertDetailFormBuilder |
protected String |
insertFormName |
protected boolean |
inserting
boolean to know when the insertion is executing
|
protected static String |
insertKey
GUI text
|
protected boolean |
insertMode |
protected FormPermission |
insertPermission |
protected EventListenerList |
insertTableInsertRowListenerList
List with all the listeners to the insert event
|
protected boolean |
installQuickFilter |
static String |
IT_IS_SHOWED
GUI text
|
static String |
IT_IS_SHOWED_es_ES
GUI text
|
static String |
KEY
Attribute name allowed in the XML.
|
protected String |
keyField |
protected Vector |
keyFields |
static String |
KEYS
Attribute name allowed in the XML.
|
protected 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 JLabel |
lInfoFilter |
protected Table.ListenerItem |
listener |
protected MouseListener |
listenerHighlightButtons |
protected MouseAdapter |
listMouseListener |
protected static String |
loadDefaultConfigurationKey |
protected Locale |
locale |
protected EntityReferenceLocator |
locator
The reference locator set for this table.
|
static String |
M_ERROR_PRINTING_TABLE
GUI text
|
static String |
M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES
GUI text
|
static String |
M_PRINTING_CANCELED
GUI text
|
static String |
M_PRINTING_FINISHED
GUI text
|
static String |
M_SELECTION_LESS_THAN_5_ROWS
GUI text
|
static String |
M_SELECTION_ONLY_ONE_ROW_TO_OPEN_DETAIL_FORM
GUI text
|
static String |
M_WOULD_YOU_LIKE_TO_DELETE_ROWS
GUI text
|
static String |
M_WOULD_YOU_LIKE_TO_DELETE_THIS_CONFIGURATION_OF_FILTER
GUI text
|
protected JPanel |
mainPanel |
static String |
MAXIMUM_es_ES
Operation column type
|
static String |
MEMO_RENDER
Attribute name allowed in the XML.
|
protected Vector |
memoRenderColumns
The table columns that will use memo render
|
static String |
MEMORY_ENTITY
Attribute name allowed in the XML.
|
protected String |
memoryEntity |
protected ExtendedJPopupMenu |
menu |
protected JMenuItem |
menuAvgFunction |
protected Vector |
menuChartItems |
protected JMenuItem |
menuCopyCell |
protected JMenuItem |
menuCopySelection |
protected JMenuItem |
menuCountFunction |
protected JMenuItem |
menuDefaultOrderSetup |
protected JMenuItem |
menuDeleteColumnFilter |
protected JMenuItem |
menuDeleteFilter |
protected JMenuItem |
menuDeleteGroup |
protected JMenuItem |
menuDetail |
protected JMenuItem |
menuFilter |
protected JMenuItem |
menuFilterByValue |
protected JMenuItem |
menuGroup |
protected JMenuItem |
menuGroupByMonth |
protected JMenuItem |
menuGroupByQuarter |
protected JMenuItem |
menuGroupByQuarterYear |
protected JMenuItem |
menuGroupByYear |
protected JMenuItem |
menuGroupByYearMonth |
protected JMenu |
menuGroupDate |
protected JMenu |
menuGroupFunction |
protected JMenuItem |
menuGroupYearMonthDay |
protected JMenuItem |
menuInsert |
protected JMenuItem |
menuMaxFunction |
protected JMenuItem |
menuMinFunction |
protected JMenuItem |
menuOpenInNewWindow |
protected ExtendedJPopupMenu |
menuOrderFilterSetup |
protected JMenuItem |
menuPageableEnabled |
protected ExtendedJPopupMenu |
menuPivotTableSetup |
protected JMenuItem |
menuPrintSelection |
protected JMenuItem |
menuRefresh |
protected JPopupMenu |
menuReportSetup |
protected JMenuItem |
menuResetOrder |
protected JMenuItem |
menuSave |
protected JMenuItem |
menuSaveDefaultOrderConfiguration |
protected JMenuItem |
menuSavePivot |
protected JCheckBoxMenuItem |
menuShowHideControls |
protected JMenuItem |
menuSumFunction |
static int |
MIN_ROW_HEIGHT
The minimum row height default value
|
static String |
MINIMUM_es_ES
Operation column type
|
protected int |
minRowHeight
Minimum row height, by default is MIN_ROW_HEIGHT
|
static String |
MINROWHEIGHT |
static String |
MODIFIABLE_CALCULATED_COLUMNS |
protected boolean |
modifiableCalculatedColumns |
protected boolean |
modified |
static int |
MONTH
Field number for charting indicating the period type.
|
static String |
NUM_ROWS_COLUMN
Attribute name allowed in the XML.
|
static String |
OF
GUI text
|
static String |
ONSETVALUESET
Attribute name allowed in the XML.
|
protected Vector |
onsetvaluesetAttributes
The vector with attributes to update when data field value changed.
|
protected boolean |
opaquebuttons |
static String |
OPEN_NEW_WINDOW
Attribute name allowed in the XML.
|
protected boolean |
openInNewWindowByDefault |
protected static String |
openInNewWindowKey
GUI text
|
static 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 ActionListener |
orderFilterSetupDeleteItemsListener |
protected Vector |
originalCalculatedColumns |
protected Vector |
originalVisibleColumns |
static String |
OTHER_KEYS
Attribute name allowed in the XML.
|
protected Vector |
otherParentKeys |
protected boolean |
packTable |
static String |
PAGEABLE
GUI text
|
protected PageFetcher |
pageFetcher |
protected Hashtable |
parameters
The parameters passed to the table when it is builded.
|
protected Form |
parentForm |
protected Frame |
parentFrame |
protected String |
parentKey |
static String |
PARENTKEY
Attribute name allowed in the XML.
|
protected 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 String |
PIVOT_BUTTON
Attribute name allowed in the XML.
|
protected MouseAdapter |
popupListener
Opens the popup menu (context menu)
|
protected int |
preferredSizeInRows |
protected static ActionListener |
prefPivotTableItemListener |
protected boolean |
prefWidthAndPosApply |
protected Vector |
primaryKey |
static String |
PRINT_START
GUI text
|
static String |
PRINTING_SELECTION
GUI text
|
static String |
PRINTING_SELECTION_es_ES
GUI text
|
protected PrintingWindow |
printingWindow |
static int |
QUARTER
Field number for charting indicating the period type.
|
static String |
QUERY_ROWS
Attribute name allowed in the XML.
|
static String |
QUERY_ROWS_MODIFIABLE |
protected FormPermission |
queryPermission |
protected boolean |
queryRowsModifiable |
static String |
QUICK_FILTER
Attribute name allowed in the XML.
|
static String |
QUICK_FILTER_COLS
Attribute name allowed in the XML.
|
static String |
QUICK_FILTER_LABEL_KEY |
static String |
QUICK_FILTER_PAGEABLE_LOCAL |
static String |
QUICK_FILTER_PAGEABLE_MESSAGE_KEY |
static String |
QUICK_FILTER_VISIBLE
Attribute name allowed in the XML.
|
static boolean |
quickFilterClobExclude |
protected List<String> |
quickFilterColumns |
protected boolean |
quickFilterLocal |
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 String |
RECORDS
GUI text
|
static String |
RECORDS_es_ES
GUI text
|
protected String |
recordsText
GUI text
|
static String |
REFRESH
GUI text
|
static String |
REFRESH_BUTTON
Attribute name allowed in the XML.
|
static String |
REFRESH_es_ES
GUI text
|
protected EventListenerList |
refreshTableListenerList |
protected Table.RefreshThread |
refreshThread |
static String |
rendererEditorConfigurationFile
Complete path to renderer and editor configuration file.
|
static boolean |
renderReportValues |
static String |
REPORT_COLS
Attribute name allowed in the XML.
|
protected Vector |
reportCols |
static String |
REQUIRED_COLS
Attribute name allowed in the XML.
|
protected Vector |
requiredColumnsCalculedColumns |
protected ActionListener |
reserOrderListener
Defines a listener that in the event restored the sorting applied to the
table.
|
protected static String |
resetOrderKey
GUI text
|
protected 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 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 String |
SAVE_WIDTH_POSITION_COLUMNS
The key for the preference to store the columns position
|
protected static String |
saveAsDefaultConfigurationKey |
protected static String |
saveKey
Class that contains a TableButton and a JButton into a JPanel..
|
protected boolean |
scrollHorizontal |
protected JScrollPane |
scrollPane |
protected ListSelectionListener |
selectionListener
The EJTable ListSelectionListener.
|
static String |
SELECTIONMODE |
protected boolean |
setPivotTableButton |
protected boolean |
setRefreshButton |
static String |
SHOW_HIDE_CONTROLS
GUI text
|
static 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 String |
SHOWGRID |
protected boolean |
showGridValue |
protected String |
shownText
GUI text
|
static String |
SINGLE |
static String |
SORT_HEAD_TIP_COD
GUI text
|
protected ActionListener |
sortFilterOrderItemListener |
static int |
STACKED_3D
Field number for charting indicating the chart type.
|
static String |
SUM_es_ES
Operation column type
|
static String |
SUM_ROW
Attribute name allowed in the XML.
|
protected JScrollPane |
sumRowScrollPane |
protected SumRowSetupDialog |
sumRowSetupDialog |
protected JTable |
sumRowTable |
protected JTable |
table
The JTable inside this table
|
protected Color |
tableBackgroundColor |
static String |
TABLEBGCOLOR |
protected Table.ColumnPermissionStore |
tableColumnPermission
Object to store permission info about column visibility.
|
protected Table.ComponentsPermissionsStore |
tableComponentPermission |
protected boolean |
tableOpaque |
static String |
TABLEOPAQUE |
protected JPanel |
tablePanel |
protected Table |
tAux |
static String |
TIME_RENDER
Attribute name allowed in the XML.
|
static String |
TIP_CALCULATED_COLUMNS |
static String |
TIP_CHART_MENU
GUI text
|
static String |
TIP_CHART_MENU_es_ES
GUI text
|
static String |
TIP_CLIPBOARD_COPY
GUI text
|
static String |
TIP_CLIPBOARD_COPY_es_ES
GUI text
|
static String |
TIP_EXCEL_EXPORT
GUI text
|
static String |
TIP_EXCEL_EXPORT_es_ES
GUI text
|
static String |
TIP_FILTER_ORDEN_CONF
GUI text
|
static String |
TIP_GROUP_TABLE_BUTTON |
static String |
TIP_HTML_EXPORT
GUI text
|
static String |
TIP_HTML_EXPORT_es_ES
GUI text
|
static String |
TIP_INSERT_BUTTON
GUI text
|
static String |
TIP_INSERT_BUTTON_es_ES
GUI text
|
static String |
TIP_PIVOT_TABLE
GUI text
|
static String |
TIP_PIVOT_TABLE_es_ES
GUI text
|
static String |
TIP_PRINTING
GUI text
|
static String |
TIP_PRINTING_es_ES
GUI text
|
static String |
TIP_REPORT_PRINTING
GUI text
|
static String |
TIP_REPORT_PRINTING_es_ES
GUI text
|
static String |
TIP_SAVE_FILTER_ORDER_CONFIGURATION_es_ES
GUI text
|
static String |
TIP_SUMROW_SETUP
GUI text
|
static String |
TIP_VISIBLES_COLS_SETUP
GUI text
|
static 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 String |
TITLE
Attribute name allowed in the XML.
|
static String |
TOTAL
Deprecated.
|
static String |
TOTAL_es_ES
GUI text
|
protected String |
totalText
GUI text
|
static String |
TRANSLATE_HEADER
Attribute name allowed in the XML.
|
protected boolean |
translateHeader |
static String |
UNGROUP_COLUMN_es_ES
GUI text
|
static String |
UPDATE_ENTITY_EDITABLE_COLUMNS
Attribute name allowed in the XML.
|
protected String |
userPrefs |
static String |
VISIBLE_COLS
Attribute name allowed in the XML.
|
protected VisibleColsSetupDialog |
visibleColsSetupDialog |
protected Vector |
visibleColumns |
protected boolean |
visibleFieldKeyColumn |
protected FormPermission |
visiblePermission |
protected boolean |
visibleRowNumberColumn |
protected Vector |
vrequiredCols
List with the required columns to insert
|
protected Vector |
vupdateEditableColumns |
protected TableWaitPanel |
waitPanel |
protected TableFrame[] |
windowCache |
static String |
XLS_EXPORT_CLASS
Default class to use in the xls export button
|
static int |
YEAR
Field number for charting indicating the period type.
|
COLOR_CHOOSER_DIALOG, contentPane, defaultButton, defaultPressAction, defaultReleaseAction, ERROR_DIALOG, FILE_CHOOSER_DIALOG, FRAME, glassPane, INFORMATION_DIALOG, layeredPane, menuBar, NONE, PLAIN_DIALOG, QUESTION_DIALOG, WARNING_DIALOGaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCOMP_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_2DESACTIVATE_COMPONENT_BY_PERMISSION_TIPEURO, PSTDEBUG_LANGUAGEDATA_TYPE_FIELD, DATA_TYPE_FIELD_ATTR, DATA_TYPE_IMAGE, DATA_TYPE_IMAGE_ATTR, DATA_TYPE_TABLE, DATA_TYPE_TABLE_ATTR, TEMPLATE_DATA_TYPEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
Table(Hashtable params)
Constructs a
Table with the default configuration. |
| Modifier and Type | Method and Description |
|---|---|
void |
addButtonToControls(AbstractButton button)
Adds a button to the controls panel
|
void |
addButtonToControls(AbstractButton button,
boolean useDefaultConfiguration) |
void |
addCalculatedColumn(String columnName,
String expression)
Adds a calculated column to the table.
|
void |
addColumn(String column)
Adds a column to the table.
|
void |
addComponentToControls(JComponent component)
Adds a
#JComponent to the controls panel |
void |
addGroupedFunction(int id,
GroupOperation operation) |
void |
addInsertTableInsertRowListener(InsertTableInsertRowListener l) |
void |
addListSelectionListener(ListSelectionListener listSelectionListener) |
void |
addRefreshTableListener(RefreshTableListener l) |
void |
addRow(Hashtable rowData)
Adds a new row with data
|
void |
addRow(int row,
Hashtable rowData)
Adds a new row with data in a concrete position in the table
|
void |
addRows(int[] rows,
Vector rowsData)
Deprecated.
|
void |
addRows(Vector rowsData)
Adds several rows to the table.
|
void |
addTableEditorListener(TableEditorListener listener)
Adds a
#TableEditorListener to the table. |
void |
addTableHeaderMouseListener(JTable table)
Adds a default mouse listener to the table header.
|
protected void |
addTableHeaderRenderer(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. |
void |
addTotalRowOperation(TotalRowOperation operation) |
protected void |
applyColumnPositonAndPreferences(String preference)
Applies the position and column preferences past as parameter.
|
void |
applyFilter(Hashtable filters)
Applies filters to the current table.
|
void |
applyFilter(String columnName,
Object filter)
Applies a filter to the specified column.
|
void |
applyFilter(String columnName,
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(JButton button,
String iconpath,
boolean borderButtons,
boolean opaqueButtons,
MouseListener listenerHighlightButtons) |
protected void |
changeOpacity(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 |
checkColumnTablePermission(Object columnName,
String type)
Checks whether the column with this
columnName |
protected boolean |
checkComponentTablePermission(Object key,
String type)
Checks whether the component with this
key |
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(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(Hashtable params)
This method configure appearance of table buttons: border, opacity, ...
|
protected void |
configureCalculatedCols(List calcColNames,
List expressions,
boolean savePreferences) |
void |
configureChart(String xLabel,
String yLabel,
String xColumn,
String[] yColumns,
String[] series,
String descr,
int type)
Configures the chart.
|
void |
configureChartXDate(String xLabel,
String yLabel,
String xColumn,
String[] yColumns,
String[] series,
String descr,
int interval)
Configures a chart with dates.
|
void |
configureChartXDate(String xLabel,
String yLabel,
String xColumn,
String[] yColumns,
String[] series,
String descr,
int interval,
boolean fillZeros)
Configures a chart with dates.
|
protected void |
configureComponentsLocator(Hashtable components,
EntityReferenceLocator locator) |
protected void |
configureComponentsParentForm(Hashtable components,
Form parentForm) |
protected void |
configureControlButton(AbstractButton button) |
protected void |
configureDetailFormat(Hashtable parameters) |
protected void |
configureFilterOrder(ActionEvent e)
Method call by the listener of the TableButton that manages the saving of
the filter configuration.
|
protected void |
configureInsertTable(Hashtable params)
This method configure parameters for insertable table.
|
protected void |
configurePageable(int pageSize)
Configures the pageable table.
|
protected void |
configureQuickFilter(Hashtable params)
This method configure appearance of quickfilter box.
|
protected void |
configureRefreshTable(Hashtable params) |
protected void |
configureRenderEditor(Hashtable renderer,
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 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,
Vector visibleColumns) |
protected ExtendedTableModel |
createExtendedTableModel() |
protected TableInformationPanel |
createInformationPanel() |
protected void |
createInsertDetailForm()
Creates the detail form for this table.
|
protected IDetailForm |
createInsertTabbedDetailForm()
Creates the detail form for this table.
|
protected void |
createJScrollPane(Hashtable params)
Creates the
JScrollpane that contains the Table. |
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 JScrollPane |
createSumRowJScrollPane(Hashtable params)
Creates the
JScrollpane that contains the Table. |
protected JTable |
createSumRowTable() |
protected IDetailForm |
createTabbedDetailForm()
Creates the detail form for this table.
|
protected IDetailForm |
createTabbedDetailForm(String sFormName)
Creates the detail form for this table.
|
protected JTable |
createTable()
Creates the JTable contained in the
Table |
protected TableCellRenderer |
createTableHeaderRenderer(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
|
protected TableWaitPanel |
createWaitPanel() |
void |
deleteCalculatedColumn(String column)
Deletes the specified calculated column from the table.
|
void |
deleteColumn(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(String confName)
Deletes the pivot table configuration passed as parameter.
|
void |
deleteRow(Hashtable keysValues)
Deletes the row specified as parameter
|
void |
deleteRow(int rowIndex)
Deletes the row specified as parameter
|
void |
deleteRow(Object key)
Deprecated.
|
void |
deleteRows(int[] rowIndex)
Deletes the rows specified as parameter.
|
protected void |
detail(InputEvent event)
Opens the detail form for the rows selected in the view
|
protected void |
deteleFilterOrderConfiguration(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(Object value,
Object previousValue,
int rowIndex,
int viewColumnIndex)
Notifies the edition listeners that the edition has been stopped.
|
protected void |
fireEditingWillStop(Object value,
Object previousValue,
int rowIndex,
int viewColumnIndex)
Notifies the edition listeners that the edition will stop.
|
void |
fireInsertTableInsertRowChange(InsertTableInsertRowEvent insertTableInsertRowEvent) |
void |
fireRefreshTableEvent(RefreshTableEvent refreshTableEvent) |
void |
fitColumnSize(int column)
Sets the preferred size to the specified column.
|
void |
free()
Liberates the memory occupied by the table component.
|
protected Hashtable |
getAllColumnEditors()
Creates a Hashtable with all the columns that have an editor.
|
protected Hashtable |
getAllColumnRenderer()
Creates a Hashtable with all the columns that have a renderer.
|
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
|
Object |
getAttribute()
Returns the table attribute.
|
Vector |
getAttributeList()
Returns the name of all the table columns.
|
Hashtable |
getAttributesAndKeysData()
Returns all the information in the table for all the attributes, this is,
for all the columns in the table.
|
protected Icon |
getButtonVisibleColsSetupIcon(boolean renderer) |
protected String |
getCalculatedColsPreferenceStringValue() |
Vector |
getCalculatedColumns() |
protected String |
getCalculatedColumnsConfPreferenceKey()
Returns the client preferences key to store the calculated columns
configuration.
|
Hashtable |
getCalculatedRowData(int rowIndex)
Returns a Hashtable containing the data associated to the row calculated
columns.
|
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.
|
String |
getCellValueAsString(int row,
int column)
Get the value of the specified cell as a String, using the renderer if
exist
|
int |
getColPress() |
int |
getColumnIndex(String columnName)
Returns the view index of the column specified.
|
String |
getColumnName(int viewColumnIndex)
Returns the name of the column appearing in the view at column position
viewColumnIndex. |
protected String |
getColumnsPosAndOrderPreferenceKey()
Returns the key that will be used to identify the preference that will
save the columns position and order.
|
Hashtable<String,Integer> |
getColumnSQLTypes() |
protected List |
getConfigurationReport()
Returns the configured reports for this table stored in the application
preferences.
|
Object |
getConstraints(LayoutManager parentLayout)
Returns the table constrains.
|
protected String |
getControlPanelPreferenceKey()
Returns the client preferences key to store the button position.
|
Vector |
getCurrentColumns()
Returns the current visible columns managed by the table.
|
int |
getCurrentRowCount()
Returns the total amount of records shown in the table.
|
protected String |
getCustomReportPreferenceKey()
Returns the key that will be used to identify the preference that will
save the custom reports associated to this table.
|
String |
getDebugInfo() |
TableCellRenderer[] |
getDefaultRenderers()
Returns the renderers that are being used by the table.
|
DetailForm |
getDetailForm()
Returns the DetailForm configured for this table.
|
FormatPattern |
getDetailFormatPattern() |
String |
getDetailFormSizePreferenceKey()
Returns the key of the preference that stores the size of the DetailForm
|
protected Hashtable |
getDetailWindowParameters() |
TableCellEditor |
getEditorForColumn(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.
|
String |
getEntityName()
Provides the name of the configured entity for the table.
|
String |
getExcelString()
Creates a text to be interpreted by the Excel.
|
Vector |
getFilterColumn()
Returns a vector with the names of the columns that have filters applied
in the table view.
|
protected String |
getFilterInfo()
Returns a String with the information of all the filters that are being
applied to the table.
|
protected String |
getFilterOrderConfigurationPreferenceKey()
Returns the client preferences key to store the configuration of the
sorting columns
|
protected String |
getFilterOrderConfPreferenceKey(String columnName)
Returns the client preferences key to store the filters for a determined
column.
|
Font |
getFont() |
String |
getFormName()
Returns the detail form name.
|
Hashtable |
getGroupedRowData(int rowIndex)
Returns the information corresponding to the row which index is passed as
parameter.
|
String |
getHelpIdString() |
String |
getHTMLString()
Creates a HTML representation of the information in the table.
|
String |
getInsertFormName()
Returns the insert detail form name.
|
protected Hashtable |
getInsertingData() |
JScrollPane |
getJScrollPane()
Provides a reference to the table ScrollPane
|
JTable |
getJTable()
Provides a reference to the JTable element contained in the table.
|
String |
getKeyFieldName()
Provides the value of the 'key' parameter, configured in the xml that
defines the table.
|
Vector |
getKeys()
Returns all the configured keys for the table, this is, the column names
correponding to the attributes key and keys.
|
String |
getLabelComponentText()
Returns the label text component.
|
int |
getMinRowHeight() |
protected Vector |
getOperationColumns() |
protected String |
getOperationPreferenceKey()
Returns the key that will be used to identify the preference that will
save the operations applied to the different columns.
|
String |
getOrderColumn()
Deprecated.
|
Vector |
getOrderColumnName()
Returns a
#Vector with the column names of all the visible
columns. |
String[] |
getOrderColumns()
Returns the sorting column names.
|
Vector |
getOriginalCalculatedColumns() |
Vector |
getOriginallyVisibleColumns()
Returns the visible columns specified in the XML table definition.
|
Vector |
getOriginalSumRowCols()
Returns the sum row columns specified in the XML table definition.
|
PageFetcher |
getPageFetcher() |
protected Hashtable |
getParameters()
Get the configuration parameters.
|
Form |
getParentForm()
Returns a reference to the Form in which the table is placed.
|
Object |
getParentkeyEquivalentValue(Object parentkey)
Get the name of the table column associated with the parent key field
name
|
String |
getParentKeyFieldName()
Deprecated.
|
Vector |
getParentKeyList() |
Vector |
getParentKeys()
Returns a vector containing the parent key names, this is, the names set
in the XML to the attribute 'parentkeys'.
|
Vector |
getParentKeys(boolean applyEquivalences) |
Object |
getParentKeyValue()
Deprecated.
|
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. |
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 String |
getPivotTablePreferenceKey()
Returns the key that will be used to identify the preference that will
save the pivot table configurations.
|
protected String |
getPivotTablePreferenceKey(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.
|
Vector |
getPrimaryKeys()
Deprecated.
|
Hashtable |
getPrintingData()
Returns a
#Hashtable with all the data of the visible columns. |
Hashtable |
getPrintingData(Vector askedColumns)
Returns the data contained by the asked columns.
|
int |
getPrintingFontSize() |
Table.QuickFieldText |
getQuickFilter() |
List<String> |
getQuickFilterColumns() |
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.
|
TableCellRenderer |
getRendererForColumn(String column)
Returns the CellRenderer set to the column.
|
Table.RendererManager |
getRendererManager()
Returns the
Table.RendererManager configured for this table. |
Vector |
getReportColumns()
Returns the columns used to build reports.
|
Vector |
getRequieredCols()
Get the required columns to insert.
|
protected TableColumn |
getResizingColumn(JTableHeader header,
Point point,
int columnIndex)
Compares the point with the header of the column specified by the
columnIndex.
|
ResourceBundle |
getResourceBundle()
Retuns the resources file used by the table.
|
Hashtable |
getRowData(int rowIndex)
Returns the data contained in the specified row.
|
Hashtable |
getRowDataForKeys(Hashtable keysValues) |
int |
getRowForKeys(Hashtable keysValues)
Returns the row view index specified by the keys passed as parameter.
|
Object |
getRowKey(int rowIndex)
Deprecated.
|
Object |
getRowKey(int rowIndex,
String keyName)
Returns the value of one single key, for the specified row.
|
Hashtable |
getRowKeys(int rowIndex)
Returns the values of the keys for the index specified.
|
int[] |
getRowsForKeys(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 String |
getRowText(int rowIndex)
Returns a String with all the information displayed in the corresponding
row, for each table attributes on that row.
|
Object |
getRowValue(int rowIndex,
String modelColumnIndex)
Returns the value stored in a concrete column and row in the column
model.
|
protected 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.
|
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.
|
Object |
getShownValue()
Returns the information contained in the table.
|
Object |
getShownValue(String[] cols) |
int |
getSQLDataType()
Returns the table SQL type.
|
protected Vector |
getSQLOrderList() |
Number |
getSumColumn(Object col)
Returns the sum of all the values for the specified column.
|
SumRowSetupDialog |
getSumRowSetupDialog() |
TableComponent |
getTableComponentReference(Object key)
Returns a reference an object that implements the
TableComponent
interface, stored in the table {link #controlsPanel}, specified by the
key. |
List |
getTableComponentReferences() |
TableSorter |
getTableSorter() |
int |
getTemplateDataType()
Returns the data type.
|
Object |
getTemplateDataValue()
Gets the value to show in the template
|
Vector |
getTextsToTranslate()
Returns all text keys the table stores, and that must be translated in
order to internationalize the component.
|
String |
getToolTipText(MouseEvent e) |
Vector |
getTotalRowOperation() |
protected String |
getUser()
Returns the user name.
|
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
|
Object |
getValueToReport()
Values that will be used to create custom reports
|
int |
getViewOrderColumnIndex()
Returns the view index of the first column that is sorted.
|
Vector |
getVisibleColumns()
Returns the current visible columns.
|
protected String |
getVisibleColumnsPreferenceKey()
Returns the client preferences key to store the visible columns.
|
protected 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.
|
void |
hideInformationPanel() |
protected void |
hideTipScroll()
Hides the tip corresponding to the vertical scroll.
|
void |
hideWaitPanel() |
void |
init(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,
String user)
Sets the table preferences.
|
protected void |
initRendererEditors() |
void |
initTableColumnPermissions()
Applies client permissions to the table columns.
|
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.
|
protected void |
installDetailFormListener()
If there is a detail form set, installs the listeners that manager the
interaction between the
Table and the detail form. |
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. |
void |
interactionManagerModeChanged(InteractionManagerModeEvent e)
This method is called automatically when form changes the state in
components that implement this interface.
|
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(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 |
isOperationInMemory() |
boolean |
isQueryRowsModifiable() |
boolean |
isQuickFilterLocal() |
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)
Deprecated.
in version 5.3.8
|
protected boolean |
isTabbedFormManagerMainForm() |
boolean |
isTranslateHeader() |
boolean |
isVisibleColumn(String columnName)
Returns true if the column with the specified name is visible.
|
void |
loadFilterOrderConfiguration(String filterName)
Loads the configuration which name is passed as parameter.
|
protected void |
loadPivotTableConfiguration(String confName)
Load the concrete pivot table configuration.
|
protected void |
menuPivotTablePreferences(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 Hashtable |
parseFunction(Hashtable equivalences) |
void |
preferenceChanged(PreferenceEvent prefEvent)
Is call when a preference changes, because the table is registered as a
preference change listener.
|
void |
prepareEditor(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(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(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 |
refreshInEDT(boolean autoSizeColumns)
Deprecated.
|
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,
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(AbstractButton button)
Removes a button from the controls panel
|
void |
removeChart(String description)
Removes the specified chart for this table
|
void |
removeComponentFromControls(JComponent component)
Removes a
#JComponent from the controls panel. |
void |
removeInsertTableInsertRowListener(InsertTableInsertRowListener l) |
void |
removeRefreshTableListener(RefreshTableListener l) |
void |
removeTableEditorListener(TableEditorListener listener)
Removes a
#TableEditorListener from the table. |
void |
resetFilter()
Removes all the filters set to the table.
|
void |
resetFilter(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 Hashtable |
retrieveOnSetValueData() |
protected void |
retrieveSQLTypes(EntityResult res) |
void |
saveColumnsPositionAndWith()
Saves the columns color and width as table preference.
|
void |
saveControlPanelConfiguration() |
protected void |
saveFilterOrderConfiguration(String confName,
boolean savePositionAndWidth)
Saves the table filter configuration with a name, and optionally the
column position and widths.
|
void |
saveOperations(Hashtable operations)
Saves the operations passed as parameter in the preferences.
|
protected void |
saveOrderFilterConfiguration(String confName)
Saves the table filter configuration.
|
protected void |
savePivotTableConfiguration(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(String col,
TableCellEditor editor)
Sets a column editor to the specified column. configures the editor if
necessary.
|
void |
setComponentLocale(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(Object value) |
void |
setEditable(boolean editable)
Sets whether the table is editable.
|
void |
setEditableColumn(String col)
Allows the specified column to be editable from the
Table. |
void |
setEditableColumn(String col,
boolean updateEntity)
Allows the specified column to be editable from the
Table. |
void |
setEditableColumn(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(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(Object value)
Sets the data that the table will handle, this is, the columns
information.
|
protected void |
setInnerValue(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(Frame frame)
Sets the frame that will be used as parent of the dialogs.
|
protected void |
setPivotTablePreferences(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(Vector visibleColumns)
Sets the current column width to the preferred column width for the
columns past as parameter
|
protected int[] |
setPreferredTableColumnWidths(Vector visibleColumns,
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 |
setQueryRowsModifiable(boolean queryRowsModifiable) |
void |
setQuickFilterValue(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(String column,
TableCellRenderer renderer)
Sets a concrete renderer for the specified table column.
|
void |
setRendererForColumnExp(String column,
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(Vector columns) |
void |
setRequired(boolean req)
Empty method.
|
void |
setResourceBundle(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
|
protected void |
setSumRowTableComponentLocale(Locale locale) |
void |
setTableComponentEnabled(String key,
boolean enabled)
Sets whether or not the specified component of the table should be
enabled or not.
|
void |
setTableComponentVisible(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(Object value)
Sets values for the table.
|
void |
setValue(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(Vector visibleColumns)
Establishes as visible columns the columns passed as parameter and shows
the columns.
|
void |
setVisibleColumns(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(Object source)
Shows the calculator window
|
void |
showChart(String description)
Shows the chart window.
|
protected void |
showChartMenu(ActionEvent e)
Shows the ChartMenu
|
protected void |
showConfSumRowDialog() |
void |
showCurrencyValue(String currencySymbol)
Shows the currency symbol when
CurrencyCellRenderer are used |
void |
showCustomReportsWindow()
Shows the custom reports windows, when the table is not empty.
|
void |
showCustomReportsWindow(String configuration)
Shows the custom reports windows, when the table is not empty.
|
void |
showInformationPanel(String msg) |
protected void |
showPopupMenu(int x,
int y)
Shows the popup menu.
|
protected void |
showTipScroll(JScrollBar scrollBar,
int x,
int y,
int viewRowIndex)
Shows the tip corresponding to the vertical scroll.
|
void |
showWaitPanel() |
void |
sortBy(String column,
boolean ascendant)
Sorts the table based on the column values.
|
void |
sortByWithoutReset(String column,
boolean asc)
Sorts the table based on the column values.
|
void |
toggleControls()
Toggles the control panel visibility.
|
protected void |
translateGroupedFunctions() |
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(Hashtable data) |
void |
updateRowData(Hashtable rowData)
Updates row values in the table.
|
void |
updateRowData(Hashtable rowData,
Hashtable newkv) |
void |
updateRowData(Hashtable rowData,
List columns,
Hashtable newkv) |
protected EntityResult |
updateTable(Hashtable keysValues,
int viewColumnIndex,
TableCellEditor tableCellEditor,
Hashtable otherData,
Object previousData)
Updates the value determined by the specified column and row in the
Entity.
|
protected EntityResult |
updateTable(int rowIndex,
int viewColumnIndex)
Deprecated.
|
protected EntityResult |
updateTable(int rowIndex,
int viewColumnIndex,
Hashtable otherData)
Deprecated.
|
protected EntityResult |
updateTable(int rowIndex,
int viewColumnIndex,
Hashtable otherData,
Object previousData)
Deprecated.
|
void |
updateUI() |
void |
valueChanged(ListSelectionEvent listEvent) |
addImpl, addNotify, createContentPane, createGlassPane, createLayeredPane, createRootLayout, getAccessibleContext, getContentPane, getDefaultButton, getGlassPane, getJMenuBar, getLayeredPane, getMenuBar, getUI, getUIClassID, getWindowDecorationStyle, isOptimizedDrawingEnabled, isValidateRoot, paramString, removeNotify, setContentPane, setDefaultButton, setDoubleBuffered, setGlassPane, setJMenuBar, setLayeredPane, setMenuBar, setUI, setWindowDecorationStyleaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final String INSERT_TABLE
public static final String TRANSLATE_HEADER
public static final String DYNAMIC
public static final String REQUIRED_COLS
public static final String REPORT_COLS
public static final String DATABASE_REMOVE
public static final String DATABASE_INSERT
public static final String DETAIL_FORMAT
public static final String DETAIL_DATE_FORMAT
public static String rendererEditorConfigurationFile
TableConfigurationManagerpublic static String XLS_EXPORT_CLASS
public static final String QUICK_FILTER
public static final String QUICK_FILTER_VISIBLE
public static final String PIVOT_BUTTON
public static final String CUSTOM_CHARTS
public static final String CONTROLS_VISIBLE
public static final String MEMO_RENDER
public static final String UPDATE_ENTITY_EDITABLE_COLUMNS
public static final String EDITABLE_COLUMNS
public static final String TIME_RENDER
public static final String CURRENCY
public static final String CALCULED_COLS_REQUIRED_FIELDS
public static final String CALCULED_COLS
public static final String MODIFIABLE_CALCULATED_COLUMNS
public static final String FIX_ATTR
public static final String OTHER_KEYS
public static final String FONT_SIZE
public static final String CONTROLS
public static final String DYNAMIC_FORM
public static final String FORM
public static final String INSERT_FORM
public static final String PARENTKEY
public static final String KEYS
public static final String KEY
public static final String VISIBLE_COLS
public static final String QUICK_FILTER_COLS
public static final String DEFAULT_VISIBLE_COLS
public static final String COLS
public static final String REFRESH_BUTTON
public static final String ROWS
public static final String QUERY_ROWS
public static final String QUERY_ROWS_MODIFIABLE
public static final String DELETE_BUTTON
public static final String SUM_ROW
public static final String TITLE
public static final String MEMORY_ENTITY
public static final String ENTITY
public static final String NUM_ROWS_COLUMN
public static final String HORIZONTAL_SCROLL
public static final String AUTO_ADJUST_HEADER
public static final String DISABLE_INSERT
public static final String CONF_VISIBLE_COLS
public static final String DEFAULT_NEW_WINDOW
public static final String OPEN_NEW_WINDOW
public static final String ONSETVALUESET
public static final String DEFAULT_BUTTONS
public static final String OPERATION_PREFERENCE
Tablepublic static final String SHOWGRID
public static final String MINROWHEIGHT
public static final String TABLEOPAQUE
public static final String TABLEBGCOLOR
public static final String CODS
public static final String CONTINUOUS
public static final String SINGLE
public static final String SELECTIONMODE
public static final String BACKGROUND_FORM_BUILDER
public static final String INSERT_MODE
public static boolean DEFAULT_VALUE_SETUP_VISIBLE_COLS
public static boolean defaultPivotTableVisibility
public static boolean defaultQuickFilterWarningVisibility
public static boolean DEFAULT_QUICK_FILTER
public static boolean defaultQuickFilterVisible
public static boolean ORDER_COLS_BY_VISIBLE_COLS
@Deprecated public static boolean DEFAULT_VALUE_SET_HEIGHT_HEAD
public static boolean SHOW_OPEN_IN_NEW_WINDOW_MENU
public static boolean PERMIT_SAVE_FILTER_ORDER_CONFIGURATION
#confFiltroOrdenpublic static final int PIE
public static final int PIE_3D
public static final int BAR
public static final int BAR_3D
public static final int STACKED_3D
public static final int LINE
public static final int MONTH
public static final int QUARTER
public static final int YEAR
public static boolean DEBUG_MEMORY
public static boolean CHART_ENABLED
protected static boolean CHART_V1
public static final String SAVE_WIDTH_POSITION_COLUMNS
public static final String M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES
public static final String HEAD_TIP_COD
public static final String SORT_HEAD_TIP_COD
public static final String FILTER_HEAD_TIP_COD
public static final String OF
public static int MIN_ROW_HEIGHT
@Deprecated public static final String DOWN_10
@Deprecated public static final String DOWN_50
@Deprecated public static final String DOWN_100
@Deprecated public static final String DOWN_ALL
@Deprecated public static final String TOTAL
public static final String RECORDS
public static final String IT_IS_SHOWED
public static final String TOTAL_es_ES
public static final String RECORDS_es_ES
public static final String IT_IS_SHOWED_es_ES
public static final String TIP_CLIPBOARD_COPY
public static final String TIP_EXCEL_EXPORT
public static final String TIP_PRINTING
public static final String PRINT_START
public static final String TIP_HTML_EXPORT
public static final String TIP_INSERT_BUTTON
public static final String TIP_CHART_MENU
public static final String TIP_VISIBLES_COLS_SETUP
public static final String TIP_SUMROW_SETUP
public static final String TIP_FILTER_ORDEN_CONF
public static final String TIP_REPORT_PRINTING
public static final String TIP_CHART_MENU_es_ES
public static final String TIP_CLIPBOARD_COPY_es_ES
public static final String TIP_EXCEL_EXPORT_es_ES
public static final String TIP_PRINTING_es_ES
public static final String TIP_HTML_EXPORT_es_ES
public static final String TIP_INSERT_BUTTON_es_ES
public static final String TIP_VISIBLES_COLS_SETUP_es_ES
public static final String TIP_SAVE_FILTER_ORDER_CONFIGURATION_es_ES
public static final String TIP_REPORT_PRINTING_es_ES
public static final String TIP_PIVOT_TABLE_es_ES
public static final String TIP_PIVOT_TABLE
public static final String TIP_GROUP_TABLE_BUTTON
public static final String TIP_CALCULATED_COLUMNS
public static final String M_PRINTING_CANCELED
public static final String M_ERROR_PRINTING_TABLE
public static final String M_PRINTING_FINISHED
public static final String M_WOULD_YOU_LIKE_TO_DELETE_ROWS
public static final String M_SELECTION_ONLY_ONE_ROW_TO_OPEN_DETAIL_FORM
public static final String M_SELECTION_LESS_THAN_5_ROWS
public static final String M_WOULD_YOU_LIKE_TO_DELETE_THIS_CONFIGURATION_OF_FILTER
public static final String FILTER_COLUMN_es_ES
public static final String FILTER_BY_VALUE_es_ES
public static final String DELETE_FILTER_es_ES
public static final String DELETE_FILTER_COLUMN
public static final String GROUP_COLUMN_es_ES
public static final String GROUP_COLUMN_BY_DATE_es_ES
public static final String GROUP_COLUMN_BY_YEAR
public static final String GROUP_COLUMN_BY_YEAR_MONTH
public static final String GROUP_COLUMN_BY_YEAR_MONTH_DAY
public static final String GROUP_COLUMN_BY_QUARTER_YEAR
public static final String GROUP_COLUMN_BY_QUARTER
public static final String GROUP_COLUMN_BY_MONTH
public static final String GROUP_FUNCTION
public static final String UNGROUP_COLUMN_es_ES
public static final String DELETE_GROUP_es_ES
public static final String COPY_CELL
public static final String COPY_SELECTION
public static final String PRINTING_SELECTION
public static final String REFRESH
public static final String PAGEABLE
public static final String SHOW_HIDE_CONTROLS
public static final String SUM_es_ES
public static final String AVERAGE_es_ES
public static final String MAXIMUM_es_ES
public static final String MINIMUM_es_ES
public static final String COUNT_es_ES
public static final String COPY_CELL_es_ES
public static final String COPY_SELECTION_es_ES
public static final String PRINTING_SELECTION_es_ES
public static final String REFRESH_es_ES
public static final String SHOW_HIDE_CONTROLS_es_ES
protected static final String editKey
protected static final String insertKey
protected static final String detailKey
protected static final String resetOrderKey
protected static final String openInNewWindowKey
protected String totalText
protected String recordsText
protected String shownText
protected DateCellRenderer rDate
protected RowHeadCellRenderer rRowHead
protected BooleanCellRenderer rBoolean
protected RealCellRenderer rReal
protected ObjectCellRenderer rObject
protected ImageCellRenderer rImagen
protected HeadCellRenderer rHead
protected MemoCellRenderer rMemo
protected Vector memoRenderColumns
protected int minRowHeight
protected boolean fitRowHeight
public static boolean defaultShowGridValue
protected boolean showGridValue
protected boolean dynamicTable
protected boolean translateHeader
protected MouseListener listenerHighlightButtons
protected boolean borderbuttons
protected boolean opaquebuttons
protected Hashtable buttonIcons
protected boolean dataBaseInsert
protected boolean dataBaseRemove
protected Vector vrequiredCols
protected Vector vupdateEditableColumns
protected boolean inserting
protected EventListenerList insertTableInsertRowListenerList
protected EventListenerList refreshTableListenerList
protected PropertyChangeListener columnWidthListener
width will set the preferred row height.evaluatePreferredRowsHeight()protected Hashtable parameters
protected BorderLayout layout
protected JTable table
protected JTable sumRowTable
protected TableWaitPanel waitPanel
protected TableInformationPanel informationPanel
protected Vector attributes
protected String formName
protected String insertFormName
protected JScrollPane scrollPane
protected JScrollPane sumRowScrollPane
protected JPanel mainPanel
protected JPanel tablePanel
protected String entity
protected String memoryEntity
protected Vector primaryKey
protected String keyField
protected Vector keyFields
protected Hashtable codValues
protected String parentKey
protected Vector otherParentKeys
protected List parentkeys
protected Hashtable hParentkeyEquivalences
protected Vector onsetvaluesetAttributes
protected Hashtable hOnSetValueSetEquivalences
onsetvalueset is:
"fieldonset1:SUM(fieldentitypk1);fieldonset2:CONCAT(fieldentitypk2);...fieldonsetn:MAX(fieldentitypkn)"protected Hashtable hOnSetValueSetFunction
onsetvalueset is:
"fieldonset1:SUM(fieldentitypk1);fieldonset2:CONCAT(fieldentitypk2);...fieldonsetn:MAX(fieldentitypkn)"protected Frame parentFrame
protected FormBuilder formBuilder
protected DetailForm detailForm
protected DetailForm insertDetailForm
protected Form parentForm
protected boolean visibleFieldKeyColumn
protected boolean enabled
protected boolean enabledDetail
protected boolean showControls
protected boolean defaultButtons
public boolean controlsVisible
protected boolean quickFilterVisible
protected boolean quickFilterLocal
public static boolean defaultQuickFilterLocal
public static final boolean quickFilterClobExclude
protected boolean allowSetupVisibleColumns
protected ControlPanel controlsPanel
public static final String BUTTON_LAYOUT
public static final String CLASSIC_BUTTON_LAYOUT
public static String defaultControlButtonLayout
protected String controlButtonLayout
protected Charset charsetIso88591
protected static final String CONTROL_LAYOUT_KEY
protected PropertyChangeListener buttonChangeListener
protected JLabel lInfoFilter
protected Table.QuickFieldText quickFilterText
public static final String FIND_MESSAGE
public static final String QUICK_FILTER_PAGEABLE_MESSAGE_KEY
public static final String QUICK_FILTER_PAGEABLE_LOCAL
public static final String QUICK_FILTER_LABEL_KEY
public static final String BUTTON_CHANGEVIEW
public static final String BUTTON_COPY
public static final String BUTTON_EXCEL_EXPORT
public static final String BUTTON_HTML_EXPORT
public static final String BUTTON_PLUS
public static final String GROUP_TABLE_KEY
public static final String BUTTON_PRINTING
public static final String BUTTON_DELETE
public static final String BUTTON_REFRESH
public static final String BUTTON_CHART
public static final String BUTTON_DEFAULT_CHART
public static final String BUTTON_VISIBLE_COLS_SETUP
public static final String BUTTON_SUM_ROW_SETUP
public static final String BUTTON_REPORT
public static final String BUTTON_SAVE_FILTER_ORDER_SETUP
public static final String BUTTON_CALCULATED_COL
protected JButton buttonChangeView
protected JButton buttonCopy
protected JButton buttonExcelExport
protected JButton buttonHTMLExport
protected JButton buttonPlus
protected JButton buttonPlus2
protected GroupTableButton groupTableButton
protected JButton buttonPrint
protected JButton buttonDelete
protected JButton buttonRefresh
protected JButton buttonChart
protected TableButtonSelection buttonDefaultChart
protected JButton buttonVisibleColsSetup
protected JButton buttonSumRowSetup
protected TableButtonSelection buttonReports
protected JPopupMenu menuReportSetup
protected JButton buttonSaveFilterOrderSetup
protected JButton buttonCalculatedColumns
public static boolean createCalculatedButton
protected Vector addButtons
protected Vector addComponents
protected PrintingWindow printingWindow
protected Locale locale
protected int fontSize
protected boolean orderEnabled
protected boolean modified
protected ResourceBundle resourcesFile
protected Vector currencyColumns
protected Vector hourRenderColumns
protected Vector editableColumnsUpdateEntity
protected Vector editableColumns
protected JMenuItem filter
protected boolean activatedFilter
protected boolean setPivotTableButton
protected boolean allowDelete
protected boolean setRefreshButton
protected boolean installQuickFilter
protected boolean packTable
protected ExtendedJPopupMenu menu
protected ExtendedJPopupMenu chartMenu
protected Vector menuChartItems
protected Vector chartGraphMenuItems
protected IChartUtilities chartUtilities
protected boolean defaultChartsEnabled
protected JMenuItem menuDetail
protected JMenuItem menuInsert
protected JMenuItem menuPrintSelection
protected JMenuItem menuCopyCell
protected JMenuItem menuCopySelection
protected JMenuItem menuRefresh
protected JMenuItem menuResetOrder
protected JMenuItem menuOpenInNewWindow
protected JMenuItem menuFilter
protected JMenuItem menuFilterByValue
protected JMenuItem menuDeleteColumnFilter
protected JMenuItem menuDeleteFilter
protected JMenuItem menuGroup
protected JMenu menuGroupDate
protected JMenuItem menuGroupByYear
protected JMenuItem menuGroupByYearMonth
protected JMenuItem menuGroupYearMonthDay
protected JMenuItem menuGroupByQuarterYear
protected JMenuItem menuGroupByQuarter
protected JMenuItem menuGroupByMonth
protected JMenu menuGroupFunction
protected JMenuItem menuSumFunction
protected JMenuItem menuAvgFunction
protected JMenuItem menuMaxFunction
protected JMenuItem menuMinFunction
protected JMenuItem menuCountFunction
protected JMenuItem menuDeleteGroup
protected JMenuItem menuPageableEnabled
protected FilterDialog filterWindow
protected JCheckBoxMenuItem menuShowHideControls
protected boolean operationInMemory
protected boolean insertMode
protected boolean scrollHorizontal
protected Object defaultFilter
protected boolean allowOpenInNewWindow
protected boolean openInNewWindowByDefault
protected boolean allColumnTypes
public static final int LESS
public static final int LESS_EQUAL
public static final int EQUAL
public static final int GREATER_EQUAL
public static final int GREATER
public static final int RANGE
public static final boolean DEFAULT_RENDER_REPORT_VALUES
public static boolean renderReportValues
protected int rowPress
protected int colPress
protected MouseEvent eventPress
protected DetailFormBuilder detailFormBuilder
protected InsertDetailFormBuilder insertDetailFormBuilder
public boolean backgroundDetailFormBuilder
protected ActionListener reserOrderListener
protected ActionListener addRecordListener
protected Vector visibleColumns
protected Vector defaultVisibleColumns
protected Vector originalVisibleColumns
protected Vector reportCols
protected int[] columnWidthSet
protected int preferredSizeInRows
protected Hashtable calculedColumns
protected Vector originalCalculatedColumns
public static boolean defaultModifiableCalculatedColumns
protected boolean modifiableCalculatedColumns
protected Vector requiredColumnsCalculedColumns
protected Vector columnsToOperate
protected Vector columnsToSum
protected CurrencyCellRenderer currencyRenderer
protected DateCellRenderer hourRenderer
protected boolean visibleRowNumberColumn
protected boolean autoFixHead
@Deprecated protected TableAttribute attributeTable
protected int rowsNumberToQuery
protected boolean queryRowsModifiable
protected PageFetcher pageFetcher
protected String detailFormTitleKey
protected String dinamicFormClass
protected DynamicFormManager dynamicFormManager
protected Table.RefreshThread refreshThread
protected Table tAux
protected FormPermission visiblePermission
protected FormPermission enabledPermission
protected FormPermission insertPermission
protected FormPermission queryPermission
protected Table.ComponentsPermissionsStore tableComponentPermission
protected Table.ColumnPermissionStore tableColumnPermission
protected boolean tableOpaque
protected Color tableBackgroundColor
public static boolean defaultTableOpaque
public static Color defaultTableBackgroundColor
protected boolean disableInsert
protected Table.InfoFilterButtonsModelListener actButtonsModelListener
protected TipScroll tipScroll
protected boolean tipScrollEnabled
protected SumRowSetupDialog sumRowSetupDialog
protected VisibleColsSetupDialog visibleColsSetupDialog
protected MouseAdapter popupListener
showPopupMenu(int, int)protected ListSelectionListener selectionListener
protected TableFrame[] windowCache
protected MouseAdapter listMouseListener
protected String userPrefs
protected boolean restricted
protected EntityReferenceLocator locator
protected Vector editionListeners
protected CellRenderer.CellRendererColorManager cellRendererColorManager
protected CellRenderer.CellRendererFontManager cellRendererFontManager
protected ExtendedJPopupMenu menuOrderFilterSetup
protected ActionListener sortFilterOrderItemListener
protected ActionListener orderFilterSetupDeleteItemsListener
protected JMenuItem menuDefaultOrderSetup
protected JMenuItem menuSaveDefaultOrderConfiguration
protected JMenuItem menuSave
protected static String loadDefaultConfigurationKey
protected static String saveAsDefaultConfigurationKey
protected static String saveKey
protected Table.EditorManager cellEditorManager
protected Table.RendererManager cellRendererManager
protected Table.ListenerItem listener
protected Table.DeleteItemListener deleteListener
protected boolean prefWidthAndPosApply
protected ReportUtils ru
public static final String BUTTON_PIVOTTABLE
protected TableButton buttonPivotTable
protected JDialog dPivot
protected ExtendedJPopupMenu menuPivotTableSetup
protected JMenuItem menuSavePivot
protected static ActionListener prefPivotTableItemListener
protected static ActionListener deletePrefPivotTableItemListener
protected FormatPattern formatPattern
format
parameter is missing. Also wrappers the content of the
dateformat
parameter.public Table(Hashtable params) throws Exception
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.params - Exceptioninit(java.util.Hashtable),
createTable(),
setRenderers(),
#setScrollHorizontal,
setVisibleColumns(),
createPopupMenu(),
installScrollListener(),
#configureQueryPanel,
#setButtonsTipsprotected void changeOpacity(JComponent c, boolean opaque)
public void addRefreshTableListener(RefreshTableListener l)
addRefreshTableListener in interface IRefreshablepublic void removeRefreshTableListener(RefreshTableListener l)
removeRefreshTableListener in interface IRefreshablepublic void fireRefreshTableEvent(RefreshTableEvent refreshTableEvent)
fireRefreshTableEvent in interface IRefreshablepublic void addListSelectionListener(ListSelectionListener listSelectionListener)
public void valueChanged(ListSelectionEvent listEvent)
valueChanged in interface ListSelectionListenerprotected void initRendererEditors()
public Object getConstraints(LayoutManager parentLayout)
getConstraints in interface FormComponentparentLayout - the parent container referencepublic void init(Hashtable parameters) throws Exception
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, |
|
| 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 | parentFormField1:detailFormField1;...;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.It is accepted to indicate only the parentFormFieldN when it is
equal to detailFormField |
|
| 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 if "insertform" is not defined. |
||
| insertform | no | Name of the form that will be open to show the Table
insert form.If you don't declare this, the detail form also will be the
insert form. The insert form |
||
| 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. |
|
| 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. |
|||
| 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. | |
| queryrowsmodifiable | yes/no | yes | no | Enable or disable to user the option of changes the page size |
| quickfilter | yes/no | yes | Allows the quick filter functionality. | |
| quickfiltervisible | yes/no | yes | Shows or hide the quick filter component. | |
| quickfilterlocal | yes/no | no | Allows the quick filter performs local filter in pageable tables | |
| quickfiltercols | colname1;...;colnameN | The names of the columns use by quickfilter for querying. By default use the visible columns | ||
| 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. 'fitrowheight' parameter must be setted to 'yes' | 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. |
init in interface FormComponentparameters - the hashtable with pairs (Key,Value). For example:
| Key | Value |
| align | center |
| attr | attribute |
| ... | ... |
Exception - when Exception occurspublic String getDebugInfo()
public String getToolTipText(MouseEvent e)
getToolTipText in class JComponentprotected void configureInsertTable(Hashtable params)
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 |
protected void configureRefreshTable(Hashtable params)
public void removeAllCharts()
ChartUtilitiespublic void removeChart(String description)
description - the chart to remove descriptionChartUtilitiespublic void configureChart(String xLabel, String yLabel, String xColumn, String[] yColumns, String[] series, String descr, int type)
xLabel - the text corresponding to the x axis labelyLabel - the text corresponding to the y axis labelxColumn - the column displayed in the x axisyColumns - the columns displayed in the y axisseries - descr - a chart descriptiontype - the chart type. Values can be be
ChartUtilities#configureChart(String , String , String , String[] ,
String[] , String , int )public void configureChartXDate(String xLabel, String yLabel, String xColumn, String[] yColumns, String[] series, String descr, int interval)
xLabel - the text corresponding to the x axis labelyLabel - the text corresponding to the y axis labelxColumn - the column displayed in the x axisyColumns - the columns displayed in the y axisseries - descr - a chart descriptioninterval - the time interval. Values can be be
ChartUtilities#configureChartXDatepublic void configureChartXDate(String xLabel, String yLabel, String xColumn, String[] yColumns, String[] series, String descr, int interval, boolean fillZeros)
xLabel - the text corresponding to the x axis labelyLabel - the text corresponding to the y axis labelxColumn - the column displayed in the x axisyColumns - the columns displayed in the y axisseries - descr - a chart descriptioninterval - the time interval. Values can be be
fillZeros - public void showChart(String description)
description - chart descriptionprotected void installChartButton()
protected void showChartMenu(ActionEvent e)
e - event that launched the request to open the chart menupublic EntityResult getValueToExport()
public EntityResult getValueToExport(boolean calculatedRow, boolean translateHeader)
calculatedRow - To include or not the calculated rowtranslateHeader - To translate or not the header titles. If you use this option
with true, the translations of the column names must be all
diferentpublic EntityResult getValueToExport(boolean calculatedRow, boolean translateHeader, boolean useNoStringKeys)
calculatedRow - To include or not the calculated rowtranslateHeader - 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)public Object getValueToReport()
public String getExcelString()
public String getHTMLString()
public String getCellValueAsString(int row, int column)
row - Row numbercolumn - Column numberpublic Object getCellRenderedValue(int row, int column)
row - The current rowcolumn - The current columnpublic Vector getAttributeList()
public void deleteData()
deleteData in interface DataComponentpublic int[] initColumnsWidth()
preferredSizeInRowsinitColumnsWidth()public int[] initColumnsWidth(int columnsWidth)
columnsWidth - the default column widthsetPreferredTableColumnWidths()public boolean isVisibleColumn(String columnName)
columnName - the column namepublic void packTable()
protected void setPreferredTableWidth()
protected Vector getOperationColumns()
public void setValue(Object value)
value must be a Hashtable, an
EntityResult or an AdvancedEntityResult.setValue in interface DataComponentvalue - the object with value to setsetInnerValue(java.lang.Object)public void setValue(Object value, boolean autoSizeColumns)
value must be a Hashtable, an
EntityResult or an AdvancedEntityResult.value - the value to setautoSizeColumns - if true, the column size will be adjusted to its new contentsprotected void retrieveSQLTypes(EntityResult res)
protected void setInnerValue(Object value)
value - the datasetInnerValue(Object, boolean)protected void setInnerValue(Object value, boolean autoSizeColumns)
value - new information to be displayed and managed by the tableautoSizeColumns - when true, the columns size will be adjusted to the column
contentsprotected void checkNumberColumnVisibility(Object value)
protected void setDynamicTableConfiguration(Object value)
public Object getValue()
TableSorter.getValue in interface DataComponentpublic Object getShownValue()
TableSorter#getShowedValuepublic Object getAttribute()
TableAttribute instance.getAttribute in interface IdentifiedElementprotected Vector getSQLOrderList()
public String getEntityName()
public String getLabelComponentText()
DataComponentLocale.
getLabelComponentText in interface DataComponentpublic void setEditable(boolean editable)
showHorizontalLines
is true it does; if it is false it doesn't.editable - @Deprecated public Vector getPrimaryKeys()
getAllPrimaryKeys()getAllPrimaryKeys()public Hashtable getAllPrimaryKeys()
public Hashtable getAttributesAndKeysData()
public String getKeyFieldName()
public Vector getKeys()
@Deprecated public String getParentKeyFieldName()
init(java.util.Hashtable)public Vector getTextsToTranslate()
getTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle resourceBundle)
InternationalizationsetResourceBundle in interface InternationalizationresourceBundle - the new language bundle.public boolean isEmpty()
isEmpty in interface DataComponentpublic boolean isModifiable()
isModifiable in interface DataComponentpublic boolean isRequired()
isRequired in interface DataComponentpublic void setRequired(boolean req)
setRequired in interface DataComponentreq - the required conditionpublic void setModifiable(boolean modif)
setModifiable in interface DataComponentmodif - the boolean conditionpublic int getSelectedRow()
@Deprecated public Object getRowKey(int rowIndex)
rowIndex - public Object getRowKey(int rowIndex, String keyName)
rowIndex - the index of the rowkeyName - the key namepublic Object getRowValue(int rowIndex, String modelColumnIndex)
rowIndex - the row index in the modelmodelColumnIndex - the column index in the model@Deprecated public boolean existsSumRow()
hasSumRow()public Hashtable getRowKeys(int rowIndex)
#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.
rowIndex - the model row index that specifies the row to querypublic void deleteRows(int[] rowIndex)
rowIndex - an array with the model indexes to deletepublic void deleteRow(int rowIndex)
rowIndex - the index of the row to delete in the Model@Deprecated public void deleteRow(Object key)
deleteRow(Hashtable)public void deleteRow(Hashtable keysValues)
keysValues - stores pairs key-value that defines the record to deletepublic int getRowForKeys(Hashtable keysValues)
keysValues - the values for the keys that defines the queried row.public int[] getRowsForKeys(Hashtable[] keysValuesToQuery)
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.
keysValuesToQuery - an array of #Hashtable that stores in each element the
keys-values combination to searchpublic int convertRowIndexToModel(int viewRowIndex)
viewRowIndex - the row index in the viewpublic void setSelectedRow(int viewRowIndex)
viewRowIndex - the index of the row in the viewprotected boolean checkBoundRow(int rowIndex)
rowIndex - public void setSelectedRows(int[] viewRowIndex)
viewRowIndex - [] indexes of the rows in the viewpublic void setComponentLocale(Locale locale)
setComponentLocale in interface Internationalizationthe - new locale to setLocaleprotected void setSumRowTableComponentLocale(Locale locale)
public boolean isEnabled()
isEnabled in interface FormComponentisEnabled in class Componentpublic void setEnabled(boolean enabled)
setEnabled in interface FormComponentsetEnabled in class JComponentenabled - true if this component should be enabled, false otherwiseprotected void evaluateButtonsState()
public boolean isHidden()
isHidden in interface DataComponentpublic void setParentFrame(Frame frame)
setParentFrame in interface OpenDialogframe - the frame that will be used as parent frame for the dialogs.public void setFormBuilder(FormBuilder builder)
FormBuilder that the table will use to build the detail
formsetFormBuilder in interface CreateFormsbuilder - the FormBuilder that will be used to create the detail
formpublic JTable getJTable()
public void setParentForm(Form form)
setParentForm in interface AccessFormform - the form that contains the tablepublic Form getParentForm()
#Formpublic Hashtable getPrintingData(Vector askedColumns)
#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.
askedColumns - the column namesprotected String getRowText(int rowIndex)
rowIndex - public Hashtable getPrintingData()
#Hashtable with all the data of the visible columns.#Hashtable with all the data of the visible columns.getPrintingData(Vector)public void free()
throws Exception
protected void finalize()
throws Throwable
Used only as a log method.
public int getSQLDataType()
Types.OTHERgetSQLDataType in interface DataComponentInteger typepublic void setModified(boolean modif)
modif - public boolean isModified()
isModified in interface DataComponentpublic Vector getOrderColumnName()
#Vector with the column names of all the visible
columns. The column order is the same they have in the ColumnModel#Vector containing the visible column names in the same
order in which they are been displayedpublic void disableInsert()
public void enableInsert()
checkInsertPermission()public Hashtable getRowData(int rowIndex)
#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.rowIndex - the model index for the column#Hashtable with the row datapublic Hashtable getGroupedRowData(int rowIndex)
rowIndex - the model row indexpublic Hashtable getCalculatedRowData(int rowIndex)
rowIndex - public void enableSort(boolean enable)
enable - if true sorting is enabled. If false, the functionality will
be disabled.public void update()
protected void setRenderers()
| 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 |
#JTableprotected void setEditors()
public void setRendererForColumn(String column, TableCellRenderer renderer)
column - the column that will be configured with the rendererrenderer - the renderer to setsetRendererForColumnExp(java.lang.String, javax.swing.table.TableCellRenderer)public TableCellRenderer getRendererForColumn(String column)
column - public TableCellEditor getEditorForColumn(String column)
public TableCellRenderer[] getDefaultRenderers()
public void setRendererForColumnExp(String column, TableCellRenderer renderer)
column - the column namerenderer - the renderer to be setpublic void showCurrencyValue(String currencySymbol)
CurrencyCellRenderer are usedshowCurrencyValue in interface SelectCurrencyValuespublic void enableFiltering(boolean enable)
enable - if true, the table allows to filter; if false, filtering will
be disabledpublic boolean isFilteringEnabled()
protected void setTip()
@Deprecated public Object getParentKeyValue()
Form.getDataFieldValue(java.lang.String),
getParentKeyFieldName(),
init(java.util.Hashtable)public String getColumnName(int viewColumnIndex)
viewColumnIndex.viewColumnIndex - the column in the view being queriedcolumn in the
view where the first column is column 0protected void createPopupMenu()
showPopupMenu(int, int)public void addGroupedFunction(int id,
GroupOperation operation)
public void addTotalRowOperation(TotalRowOperation operation)
public Vector getTotalRowOperation()
public void openInNewWindow(int[] modelSelectedRows)
modelSelectedRows - contains the model row indexes to open the detail formpublic boolean hasSumRow()
TableSorter.isSum()@Deprecated public boolean isSumRow(int rowIndex)
rowIndex - protected void showPopupMenu(int x,
int y)
x - y - protected void translateGroupedFunctions()
protected void createChartUtilities()
protected void createDetailForm()
protected void createInsertDetailForm()
protected IDetailForm createTabbedDetailForm()
protected IDetailForm createInsertTabbedDetailForm()
protected IDetailForm createTabbedDetailForm(String sFormName)
public String getDetailFormSizePreferenceKey()
protected EntityResult deleteEntityRow(int rowIndex) throws Exception
rowIndex - the row indexExceptionEntity.delete(Hashtable, int)public int[] getSelectedRows()
public int getSelectedRowsNumber()
protected void changeToTableView()
public void changeView()
public void addRow(Hashtable rowData)
rowData - a #Hashtable containing the data to addTableSorter.addRow(java.util.Hashtable)public void addRow(int row,
Hashtable rowData)
rowData - a #Hashtable containing the data to addrow - the position in the model in which the row will be addedTableSorter.addRow(int, Hashtable)@Deprecated public void addRows(int[] rows, Vector rowsData)
rows - and array with the position of the rows in which the new rows
will be insertedrowsData - a #Vector containing #Hashtable. Each position
of the Vector is a Hashtable containing information for a rowaddRows(Vector),
TableSorter.addRows(int[], Vector)public void addRows(Vector rowsData)
rowsData - a #Vector containing #Hashtable. Each position
of the Vector is a Hashtable containing information for a rowTableSorter.addRows(Vector)public void refreshRows(int[] viewRowIndexes)
viewRowIndexes - the row indexespublic void refreshRow(int viewRowIndex)
viewRowIndex - the index to refreshpublic void refreshRow(int viewRowIndex,
Hashtable oldkv)
viewRowIndex - the index to refresholdkv - public void resetOrder()
public void refresh()
public void refreshEDT()
public void refresh(boolean autoSizeColumns)
autoSizeColumns - if true, resizes the column widthpublic void refreshEDT(boolean autoSizeColumns)
autoSizeColumns - @Deprecated public void refreshInEDT(boolean autoSizeColumns)
autoSizeColumns - public void refreshInThread(int delay)
delay - the length of time to sleep in millisecondspublic void setLineRemark(boolean lineRemark)
lineRemark - true if odd and even lines must be remarked, false otherwisepublic boolean isFiltered(int viewColumnIndex)
viewColumnIndex - public boolean isFiltered()
public boolean isGrouped()
public void setFont(Font newFont)
setFont in class JComponentnewFont - the desired Font for this componentComponent.getFont()@Deprecated protected int calculatePreferredRowHeights()
protected TableSorter createTableSorter(ExtendedTableModel model)
model - the modelprotected ExtendedTableModel createExtendedTableModel()
protected JTable createSumRowTable()
protected JScrollPane createSumRowJScrollPane(Hashtable params)
JScrollpane that contains the Table. This method
should assign field class: scrollpane.protected JTable createTable()
TableJTable contained by the Tableprotected void createJScrollPane(Hashtable params)
JScrollpane that contains the Table. This method
should assign field class: scrollpane.protected EJTable createEJTable(TableSorter sorter, Vector visibleColumns)
protected TableWaitPanel createWaitPanel()
protected TableInformationPanel createInformationPanel()
public void showInformationPanel(String msg)
public void hideInformationPanel()
public void hideWaitPanel()
public void showWaitPanel()
protected TableCellRenderer createTableHeaderRenderer(JTable table)
table - protected void addTableHeaderRenderer(JTable table)
createTableHeaderRenderer(javax.swing.JTable) method and configures the
table header renderingtable - public void addTableHeaderMouseListener(JTable table)
table - the table which header will have the listenerprotected TableColumn getResizingColumn(JTableHeader header, Point point, int columnIndex)
header - the table headerpoint - a point coming from a mouse eventcolumnIndex - the columnIndex to compare return the TableColumn
corresponding to the columnIndex in case the mouse event was
performed into the column header; null otherwiseprotected void setScrollTooltipText()
protected void installScrollListener()
#MouseMotionListener and a #MouseListener to
the vertical scroll, in order to control the tip.protected void showTipScroll(JScrollBar scrollBar, int x, int y, int viewRowIndex)
scrollBar - x - y - viewRowIndex - protected String getScrollText(int viewRowIndex)
viewRowIndex - protected void hideTipScroll()
protected void setVisibleColumns()
Table init process.protected boolean isColumnWidthFixed(String column)
column - public TableComponent getTableComponentReference(Object key)
TableComponent
interface, stored in the table {link #controlsPanel}, specified by the
key. For example, elements such a TableButton and
TableButtonSelection implements this interface.key - the key of the TableComponentpublic List getTableComponentReferences()
public void setTableComponentEnabled(String key, boolean enabled)
key - the name of the componentenabled - true if the component should be enabled, false otherwisecheckComponentTablePermission(java.lang.Object, java.lang.String)public void setTableComponentVisible(String key, boolean visible)
key - the component namevisible - true if this component should be enabled, false otherwiseprotected void configureQuickFilter(Hashtable params)
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. |
protected void configureButtons(Hashtable params)
changeButtonIcon(JButton, String, boolean, boolean, MouseListener)
for each table button.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 |
protected void changeButtonIcon(JButton button, String iconpath, boolean borderButtons, boolean opaqueButtons, MouseListener listenerHighlightButtons)
protected void installButtonsListener()
protected void installDetailFormListener()
Table and the detail form. Two
listeners will be installed, one for insertion related to the table
insert button, placed at the table top right corner, and another
listening double clicks events over the data records. one for theprotected boolean isFrame()
protected boolean isTabbedFormManagerMainForm()
protected void detail(InputEvent event)
event - protected void checkRefreshThread()
public void openDetailForm(int rowIndex)
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.
rowIndex - the row which data will be shown in the formpublic void openInsertDetailForm()
DetailForm from in Insert mode. The user must
have permission to do that and the form must be specified.public void setColumnEditor(String col, TableCellEditor editor)
col - the column nameeditor - the editor to setpublic void setEditableColumn(String col)
Table.
The column will not be updated.col - the column namepublic void setEditableColumn(String col, boolean updateEntity)
Table.
To update the chages produced to this columns can be configuired.col - the column nameupdateEntity - if true, the column will be updatedpublic void setEditableColumn(String col, boolean updateEntity, boolean editable)
Table.
Updating the entity can be configured.col - the column nameupdateEntity - if true, the column will be updatededitable - if true, sets the column editable, if false, will avoid the
column to be editable@Deprecated public String getOrderColumn()
public String[] getOrderColumns()
public boolean[] getAscendents()
public Vector getFilterColumn()
public boolean getAscending()
public void sortBy(String column, boolean ascendant)
column - the column that will be used for sortingascendant - true if the sorting will start with the smallest values, false
otherwisepublic void sortByWithoutReset(String column, boolean asc)
column - the column that will be used for sortingascendant - true if the sorting will start with the smallest values, false
otherwiseprotected int[] setPreferredTableColumnWidths()
protected int getPreferredColumnWidth(int modelColumnIndex,
int maxRowNumber)
modelColumnIndex - the index of the columnmaxRowNumber - the max number of rows to checkprotected int[] setPreferredTableColumnWidths(int maxRows)
maxRows - max number of rows to checkpublic boolean isRowNumberColumnVisible()
public void setRowNumberColumnVisible(boolean visible)
visible - true if the row number column should be visible, false
otherwiseprotected int[] setPreferredTableColumnWidths(Vector visibleColumns)
visibleColumns - a vector containing the column namesprotected int[] setPreferredTableColumnWidths(Vector visibleColumns, JProgressBar progressBar)
visibleColumns - a vector containing the column namesprogressBar - a progress bar to show the processpublic void printSilent(String title)
title - public void print()
protected void copySelection()
protected void deleteGroup()
protected void insertGroup(int type)
type - the grouping type; see TableSorterprotected void insertGroup()
protected void insertFilterByValue()
protected void insertFilter()
FilterDialogprotected void deleteFilter()
protected void deleteColumnFilter()
protected void printSelection()
protected void copyCell()
public void setImageRendererHeight(int pixels)
pixels - the height in pixels for the image renderersImageCellRendererprotected void configurePageable(int pageSize)
pageSize - public int getCurrentRowCount()
In any case the sum column will not be considered.
public int getRealRecordsNumber()
public Hashtable getParentKeyValues()
#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.getParentKeyValues in interface IFilterElementgetParentKeyValues(boolean)public Vector getParentKeyList()
getParentKeyList in interface IFilterElementpublic boolean hasParentKeys()
hasParentKeys in interface IFilterElementpublic Hashtable getParentKeyValues(boolean applyEquivalences)
#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.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 formprotected void setControlButtonsEnabled(boolean enabled)
enabled - true if the table header should enableprotected void setButtonTips()
public Number getSumColumn(Object col)
col - the column to sumpublic DetailForm getDetailForm()
public void fitColumnSize(int column)
column - the column to set the sizeprotected void setTextsMenu()
public Hashtable getSelectedRowData()
#Hashtable. The #Hashtable keys are the table attributes,
and the values are #Vector with the row values.protected boolean checkVisiblePermission()
protected boolean checkEnabledPermission()
protected boolean checkInsertPermission()
protected boolean checkQueryPermission()
protected boolean checkComponentTablePermission(Object key, String type)
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.key - the key of the table component to be restrictedtype - the type of permission to be checkedprotected boolean checkColumnTablePermission(Object columnName, String type)
columnName has been restricted
by the permission type . If this method returns true the
table column will not be restricted by this permission type.
For example, if the a call to this method with the type "visible" returns
true, then column is able to be visible according to permission (another
program condition could be hide it).key - the key of the table component to be restrictedtype - the type of permission to be checkedpublic void setVisible(boolean vis)
setVisible in interface FormComponentsetVisible in class JComponentvis - the visibility conditioncheckVisiblePermissionpublic void initPermissions()
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.
initPermissions in interface SecureElementinitTableComponentPermissions(),
initTableColumnPermissions()public void initTableComponentPermissions()
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.
public void initTableColumnPermissions()
The table columns can be controlled using client permission. This implies
those columns can be hidden using the client permission XML. e.g. for
hiding a column named BALANCE:
<column attr="BALANCE" restricted="yes" type="visible"/>
checkComponentTablePermission(java.lang.Object, java.lang.String)public void setScrollTipEnabled(boolean enable)
enable - true if the tip should be enabled, false otherwisepublic void toggleControls()
public void setControlsVisible(boolean visible)
visible - true if the table controls should be visible, false otherwisepublic void setControlsVisible(boolean vis,
boolean savePreferences)
vis - true if the table controls should be visible, false otherwisesavePreferences - if true, the visibility set will be stored as application
preferencepublic void preferenceChanged(PreferenceEvent prefEvent)
preferenceChanged in interface ApplicationPreferencesListenerprefEvent - the event with the preference changesprotected String getUser()
public void initPreferences(ApplicationPreferences aPrefs, String user)
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.
initPreferences in interface HasPreferenceComponentprotected void configureCalculatedCols(List calcColNames, List expressions, boolean savePreferences)
protected String getCalculatedColsPreferenceStringValue()
public void setVisibleColumns(Vector visibleColumns)
visibleColumns - a Vector containing the column names to show.public void setVisibleColumns(Vector visibleColumns, boolean autoSizeColumns)
visibleColumns - a Vector containing the column names to show.autoSizeColumns - if true, the column size will be adjusted to its new contentsprotected Icon getButtonVisibleColsSetupIcon(boolean renderer)
protected String getVisibleColumnsPreferenceKey()
protected String getControlPanelPreferenceKey()
protected String getVisibleControlsPreferenceKey()
protected String getFilterOrderConfPreferenceKey(String columnName)
columnName - the column nameprotected String getFilterOrderConfigurationPreferenceKey()
protected String getCalculatedColumnsConfPreferenceKey()
public Vector getVisibleColumns()
public Vector getReportColumns()
public void setReportColumns(Vector columns)
public Vector getOriginallyVisibleColumns()
#Vector with the visible columns specified in the XMLpublic Vector getOriginalSumRowCols()
#Vector with the sum row columns specified in the XMLpublic Vector getRealColumns()
#Vector with the column names that have been set as
visible columns in the XML, and that are visible in the table as well.public Vector getCurrentColumns()
public Vector getCalculatedColumns()
public Vector getOriginalCalculatedColumns()
public boolean isModifiableCalculatedColumns()
public static boolean isChartEnabled()
protected static void checkChartEnabled()
public void addButtonToControls(AbstractButton button)
button - the button to add to the panelpublic void addButtonToControls(AbstractButton button, boolean useDefaultConfiguration)
protected void configureControlButton(AbstractButton button)
protected Table.QuickFieldText createQuickFilter()
public void removeButtonFromControls(AbstractButton button)
button - the button to removepublic void addComponentToControls(JComponent component)
#JComponent to the controls panelcomponent - the component to be addedpublic void removeComponentFromControls(JComponent component)
#JComponent from the controls panel.component - the component to removepublic void updateRowData(Hashtable rowData)
#Hashtable with the
parameters contains both the keys that select the row and the values to
be updated.rowData - TableSorter.updateRowData(java.util.Hashtable, java.util.Vector)public String getHelpIdString()
getHelpIdString in interface HasHelpIdComponentpublic void installHelpId()
HelpUtilitiesinstallHelpId in interface HasHelpIdComponentgetHelpIdString()public boolean isRestricted()
isRestricted in interface SecureElementpublic void setMemoryOperations(boolean inMemory)
inMemory - true if this component should perform operations in memory.
false otherwiseinit(java.util.Hashtable)public void addTableRowHeader(TableRowHeader tableRowHeader)
tableRowHeader - the TableRowHeaderpublic void applyFilter(String columnName, Object[] values, int condition)
TableSorter.SimpleFilter will be set. In case that values has a String or a
Boolean, a TableSorter.SimpleFilter will be applied, and in other case a
TableSorter.Filter will be set.columnName - the column in which the filter will be appliedvalues - the values to make the filtercondition - the condition to filterpublic void applyFilter(String columnName, Object filter)
columnName - filter - must be an instance of the classes TableSorter.MultipleFilter,
TableSorter.Filter , TableSorter.SimpleFilter or TableSorter.DateFilterpublic void applyFilter(Hashtable filters)
filters - is a Hashtable containing the filters. The key is the columns
name and the value must be an instance of the classes
TableSorter.MultipleFilter, TableSorter.Filter , TableSorter.SimpleFilter
, TableSorter.DateFilterTableSorter.applyFilter(Hashtable),
TableSorter.Filterpublic void resetFilter()
public void resetFilter(String column)
column - the column namepublic void addColumn(String column)
column - the column namepublic void addCalculatedColumn(String columnName, String expression)
column - the column nameexpression - the column expression, for example SomeColumnName*5protected Hashtable getAllColumnRenderer()
protected Hashtable getAllColumnEditors()
protected void configureRenderEditor(Hashtable renderer, Hashtable editor)
renderer - Key is the column name and value is the renderer to seteditor - Key is the column name and value is the editor to setpublic void deleteColumn(String column)
column - the column namepublic void deleteCalculatedColumn(String column)
column - the column nameprotected void setAttributesToFix()
protected void setHorizontalScroll(boolean scrollH)
Table. This allows the
Table to contain a big number of columns and display them.scrollH - true to enable the scroll, false to disable itpublic Vector getParentKeys()
init(java.util.Hashtable)public Vector getParentKeys(boolean applyEquivalences)
public Object getParentkeyEquivalentValue(Object parentkey)
parentkey - @Deprecated protected EntityResult updateTable(int rowIndex, int viewColumnIndex) throws Exception
updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)
Must be used
updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)rowIndex - the row indesviewColumnIndex - the column index in the modelException@Deprecated protected EntityResult updateTable(int rowIndex, int viewColumnIndex, Hashtable otherData) throws Exception
updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)rowIndex - the row indexviewColumnIndex - the column index in the modelotherData - other data to be updated in that entityException@Deprecated protected EntityResult updateTable(int rowIndex, int viewColumnIndex, Hashtable otherData, Object previousData) throws Exception
updateTable(Hashtable, int, TableCellEditor, Hashtable, Object)rowIndex - the row indexviewColumnIndex - the column index in the modelotherData - other data to be updated in that entitypreviousData - Exceptionprotected EntityResult updateTable(Hashtable keysValues, int viewColumnIndex, TableCellEditor tableCellEditor, Hashtable otherData, Object previousData) throws Exception
keysValues - the values of the keysviewColumnIndex - the column index in the modeltableCellEditor - the editorotherData - other data to be updated in that entitypreviousData - Exceptionpublic void setReferenceLocator(EntityReferenceLocator referenceLocator)
setReferenceLocator in interface ReferenceComponentreferenceLocator - the EntityReferenceLocatorprotected void configureComponentsLocator(Hashtable components, EntityReferenceLocator locator)
protected void configureComponentsParentForm(Hashtable components, Form parentForm)
public String getFormName()
public String getInsertFormName()
public boolean isGroup()
public void resetGroup()
public void setDefaultChartsEnabled(boolean enabled)
enabled is true it is; if it is false it is not.enabled - true if default charting is enabledprotected void installConfSumRowButton()
protected void showConfSumRowDialog()
public SumRowSetupDialog getSumRowSetupDialog()
protected void installConfVisibleColsButtons()
protected void installDefaultChartsButton()
public ResourceBundle getResourceBundle()
public void setEnabledDetail(boolean enabled)
DetailForm of this component is
enabled.enabled - true if this component should be enabled, false otherwisepublic boolean hasForm()
public boolean getEnabledDetail()
public boolean isSorted()
public int getViewOrderColumnIndex()
TableSorter.getFirstSortedColumn()protected boolean isAscending()
protected void fireEditingStopped(Object value, Object previousValue, int rowIndex, int viewColumnIndex)
value - the new valuepreviousValue - the old valuerowIndex - the row that has been changedviewColumnIndex - the column that has been changedprotected void fireEditingWillStop(Object value, Object previousValue, int rowIndex, int viewColumnIndex) throws EditingVetoException
value - the new valuepreviousValue - the old valuerowIndex - the row that has been changedviewColumnIndex - the column that has been changedEditingVetoExceptionprotected void fireEditingCancelled(int rowIndex,
int viewColumnIndex)
rowIndex - the row that has been changedviewColumnIndex - the column that has been changedpublic void addTableEditorListener(TableEditorListener listener)
#TableEditorListener to the table.listener - public void removeTableEditorListener(TableEditorListener listener)
#TableEditorListener from the table.listener - the listener to removepublic void setAutoFixHead(boolean autoFixHead)
autoFixHead - true if the table header should auto adjustpublic void setVisibleColsConfigurationAllowed(boolean allowConfiguration)
allowConfiguration - true if the visible columns configuration should be enabled,
false otherwisepublic void setCellRendererColorManager(CellRenderer.CellRendererColorManager colorManager)
CellRenderer contained by the
table.colorManager - the new color managerpublic void setCellRendererFontManager(CellRenderer.CellRendererFontManager fontManager)
CellRenderer contained by the
table.fontManager - protected void deteleFilterOrderConfiguration(String confName)
confName - the name given to the configuration when savedprotected void saveOrderFilterConfiguration(String confName)
confName - the name given to the configurationprotected void saveFilterOrderConfiguration(String confName, boolean savePositionAndWidth)
confName - the name given to the configuration;savePositionAndWidth - if true, column position and width will be savedprotected void configureFilterOrder(ActionEvent e)
e - the eventpublic void loadFilterOrderConfiguration(String filterName)
filterName - public void setEditorManager(Table.EditorManager manager)
Table.EditorManager to the present Table.manager - public Table.EditorManager getEditorManager()
Table.EditorManager configured in the present table.public void setRendererManager(Table.RendererManager manager)
manager - Table.RendererManagerpublic Table.RendererManager getRendererManager()
Table.RendererManager configured for this table.public void prepareEditor(TableCellEditor editor)
TableCellEditor
components
The method must be called to prepare all editors implementing ReferenceComponentInternationalizationAccessFormCachedComponent
editor - public void prepareRenderer(TableCellRenderer renderer)
TableCellRenderer
components
The method must be called to prepare all renderes implementing CellRendererReferenceComponentInternationalizationAccessFormCachedComponent
renderer - public boolean isDetailFormCreated()
protected void setDefaultFilter()
protected void installCalculedColsButton()
protected void showCalculatorWindow(Object source)
source - protected void installReportButton()
protected List getConfigurationReport()
protected void createReportSetupMenu()
protected String createColumnPositionAndWidthPreference()
public void saveColumnsPositionAndWith()
public void saveOperations(Hashtable operations)
Table.operations - contains the operations to storepublic void applyOperations()
public void saveVisibleControlsConfiguration()
public void saveControlPanelConfiguration()
protected boolean evaluateColumnsWidthAndPosition()
setWidthAndPositionColumns() method only is
called once.protected boolean setWidthAndPositionColumns()
protected void applyColumnPositonAndPreferences(String preference)
preference - the preference value to setprotected String getOperationPreferenceKey()
protected String getColumnsPosAndOrderPreferenceKey()
public JScrollPane getJScrollPane()
protected String getCustomReportPreferenceKey()
public void showCustomReportsWindow()
public void showCustomReportsWindow(String configuration)
configuration - the report descriptionprotected String getFilterInfo()
protected void updateFilterInfo()
public int getColumnIndex(String columnName)
columnName - protected void evaluatePreferredRowsHeight()
protected void installPivotTableButton()
protected Hashtable getDetailWindowParameters()
protected void setPivotTablePreferences(JDialog pivotDialog)
pivotDialog - the dialog that contains the pivot tableprotected String getPivotTablePreferenceKey(String configurationName)
configurationName - the name of the concrete configurationprotected String getPivotTablePreferenceKey()
protected void menuPivotTablePreferences(ActionEvent e)
e - protected void loadPivotTableConfiguration(String confName)
confName - the configuration nameprotected void deletePivotTableConfiguration(String confName)
confName - the configuration nameprotected void savePivotTableConfiguration(String confName)
confName - the configuration namepublic void setQuickFilterValue(String text)
public Table.QuickFieldText getQuickFilter()
protected Hashtable getParameters()
public int getMinRowHeight()
public void setMinRowHeight(int height)
public int getPrintingFontSize()
public Vector getRequieredCols()
@Deprecated public void setInsertInDataBase(boolean insert)
insert - public void setInsertInDatabase(boolean insert)
@Deprecated public void setRemoveInDataBase(boolean insert)
public void setRemoveInDatabase(boolean remove)
public void setUpdateInDatabase(boolean update)
update - public boolean isDataBaseInsert()
public boolean isInsertingEnabled()
public void addInsertTableInsertRowListener(InsertTableInsertRowListener l)
addInsertTableInsertRowListener in interface InsertTableInsertRowChangepublic void removeInsertTableInsertRowListener(InsertTableInsertRowListener l)
removeInsertTableInsertRowListener in interface InsertTableInsertRowChangepublic void fireInsertTableInsertRowChange(InsertTableInsertRowEvent insertTableInsertRowEvent)
fireInsertTableInsertRowChange in interface InsertTableInsertRowChangepublic TableSorter getTableSorter()
public int getColPress()
protected Hashtable getInsertingData()
protected void executeInsertRow()
protected void registerKeyListeners()
public boolean isTranslateHeader()
public PageFetcher getPageFetcher()
public int getTemplateDataType()
ITemplateFieldITemplateField.DATA_TYPE_FIELD ITemplateField.DATA_TYPE_IMAGE
ITemplateField.DATA_TYPE_TABLEgetTemplateDataType in interface ITemplateFieldint with the data type.public Object getTemplateDataValue()
ITemplateFieldgetTemplateDataValue in interface ITemplateFieldprotected Hashtable retrieveOnSetValueData()
protected void updateOnSetValueSetAttributes(Hashtable data)
public Font getFont()
getFont in interface MenuContainergetFont in class Componentpublic FormatPattern getDetailFormatPattern()
protected void configureDetailFormat(Hashtable parameters)
public boolean isQuickFilterLocal()
public boolean isQueryRowsModifiable()
public void setQueryRowsModifiable(boolean queryRowsModifiable)
public void interactionManagerModeChanged(InteractionManagerModeEvent e)
InteractionManagerModeListenere.getInteractionManagerMode(). Value
that returns this method can be compared with variables: interactionManagerModeChanged in interface InteractionManagerModeListenere - The eventpublic boolean isOperationInMemory()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.