Ontimize 5.2072EN

com.ontimize.util.notice
Class NoticeTable

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

public class NoticeTable
extends Table2Forms

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.ontimize.gui.table.Table
Table.ComponentsPermissionsStore, Table.DefaultRendererManager, Table.DeleteItemListener, Table.EditorManager, Table.FilterDate, Table.HTMLFileFilter, Table.InfoFilterButtonsModelListener, Table.KeyObject, Table.ListenerItem, Table.ListenerItemDeletePrefPivotTable, Table.ListenerItemPrefPivotTable, Table.PreferenceItem, Table.QuickFieldText, Table.QuickFilterActionListener, Table.RefreshThread, Table.RendererManager, Table.TxtFileFilter
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.JToggleButton bAllNotices
          Button to see all the received notices
protected  javax.swing.JButton bCheckRead
          Button to mark the selected notices as read
static java.lang.String[] booleanColumns
           
protected  javax.swing.JButton bRemoveNotices
          Button to mark the selected messages as deleted
static java.lang.String[] bundleColumns
           
protected  javax.swing.JToggleButton bUnreadNotices
          Button to filter the message and see only the new ones (not read)
protected  boolean checkAsReadAutomatic
          If this is true all the selected messages as marked as read when they are selected
static java.lang.String[] dateColumns
           
protected  javax.swing.ButtonGroup group
          Group with the filter buttons, using a group only one of the buttons can be selected at the same time
protected static BooleanCellRenderer innerBooleanCellRenderer
           
static BundleCellRenderer innerBundleCellRenderer
           
protected static DateCellRenderer innerDateCellRenderer
           
protected static java.lang.String RECEIVED_NOTICES
          This is read at the beginning to check if this is a table with the received notices or the sent notices.
protected  boolean receiveTable
           
protected  boolean sendRequestWithoutAsk
          This parameter configures the automatic confirmation of notices.
 
Fields inherited from class com.ontimize.util.notice.Table2Forms
insertForm, insertFormName, queryForm, queryFormName
 
Fields inherited from class com.ontimize.gui.table.Table
actButtonsModelListener, activatedFilter, addButtons, addComponents, addRecordListener, allowDelete, allowOpenInNewWindow, allowSetupVisibleColumns, attributes, attributesToFix, attributeTable, AUTO_ADJUST_HEADER, autoFixHead, AVERAGE_es_ES, BACKGROUND_FORM_BUILDER, backgroundDetailFormBuilder, BAR, BAR_3D, borderbuttons, BUTTON_CALCULATED_COL, BUTTON_CHANGEVIEW, BUTTON_CHART, BUTTON_COPY, BUTTON_DEFAULT_CHART, BUTTON_DELETE, BUTTON_EXCEL_EXPORT, BUTTON_HTML_EXPORT, BUTTON_PIVOTTABLE, BUTTON_PLUS, BUTTON_PRINTING, BUTTON_REFRESH, BUTTON_REPORT, BUTTON_SAVE_FILTER_ORDER_SETUP, BUTTON_SUM_ROW_SETUP, BUTTON_VISIBLE_COLS_SETUP, buttonCalculatedColumns, buttonChangeView, buttonChart, buttonCopy, buttonDefaultChart, buttonDelete, buttonExcelExport, buttonHTMLExport, buttonIcons, buttonPivotTable, buttonPlus, buttonPlus2, buttonPrint, buttonRefresh, buttonReports, buttonSaveFilterOrderSetup, buttonSumRowSetup, buttonVisibleColsSetup, CALCULED_COLS, CALCULED_COLS_REQUIRED_FIELDS, calculedColumns, cellEditorManager, cellRendererColorManager, cellRendererFontManager, cellRendererManager, CHART_ENABLED, CHART_V1, chartGraphMenuItems, chartMenu, chartUtilities, CODS, codValues, colPress, COLS, columnsToOperate, columnsToSum, columnWidthListener, columnWidthSet, CONF_VISIBLE_COLS, CONTINUOUS, CONTROLS, CONTROLS_VISIBLE, controlsPanel, controlsVisible, COPY_CELL, COPY_CELL_es_ES, COPY_SELECTION, COPY_SELECTION_es_ES, COUNT_es_ES, createCalculatedButton, CURRENCY, currencyColumns, currencyRenderer, CUSTOM_CHARTS, DATABASE_INSERT, DATABASE_REMOVE, dataBaseInsert, dataBaseRemove, DEBUG_MEMORY, DEFAULT_BUTTONS, DEFAULT_NEW_WINDOW, DEFAULT_QUICK_FILTER, DEFAULT_RENDER_REPORT_VALUES, DEFAULT_VALUE_SET_HEIGHT_HEAD, DEFAULT_VALUE_SETUP_VISIBLE_COLS, DEFAULT_VISIBLE_COLS, defaultButtons, defaultChartsEnabled, defaultFilter, defaultPivotTableVisibility, defaultQuickFilterVisible, defaultShowGridValue, defaultTableBackgroundColor, defaultTableOpaque, defaultVisibleColumns, DELETE_BUTTON, DELETE_FILTER_COLUMN, DELETE_FILTER_es_ES, DELETE_GROUP_es_ES, deleteListener, deletePrefPivotTableItemListener, detailForm, detailFormBuilder, detailFormTitleKey, detailKey, dinamicFormClass, DISABLE_INSERT, disableInsert, DOWN_10, DOWN_100, DOWN_50, DOWN_ALL, dPivot, DYNAMIC, DYNAMIC_FORM, dynamicFormManager, dynamicTable, EDITABLE_COLUMNS, editableColumns, editableColumnsUpdateEntity, editionListeners, editKey, enabled, enabledDetail, enabledPermission, entity, ENTITY, EQUAL, eventPress, filter, FILTER_BY_VALUE_es_ES, FILTER_COLUMN_es_ES, FILTER_HEAD_TIP_COD, filterWindow, FIND_MESSAGE, FIX_ATTR, FONT_SIZE, fontSize, FORM, formBuilder, formName, GREATER, GREATER_EQUAL, GROUP_COLUMN_BY_DATE_es_ES, GROUP_COLUMN_BY_MONTH, GROUP_COLUMN_BY_QUARTER, GROUP_COLUMN_BY_QUARTER_YEAR, GROUP_COLUMN_BY_YEAR, GROUP_COLUMN_BY_YEAR_MONTH, GROUP_COLUMN_BY_YEAR_MONTH_DAY, GROUP_COLUMN_es_ES, GROUP_FUNCTION, HEAD_TIP_COD, hOnSetValueSetEquivalences, hOnSetValueSetFunction, HORIZONTAL_SCROLL, hourRenderColumns, hourRenderer, hParentkeyEquivalences, INSERT_TABLE, inserting, insertKey, insertPermission, insertTableInsertRowListenerList, installQuickFilter, IT_IS_SHOWED, IT_IS_SHOWED_es_ES, KEY, keyField, keyFields, KEYS, layout, LESS, LESS_EQUAL, LINE, lInfoFilter, listener, listenerHighlightButtons, listMouseListener, loadDefaultConfigurationKey, locale, locator, M_ERROR_PRINTING_TABLE, M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES, M_PRINTING_CANCELED, M_PRINTING_FINISHED, M_SELECTION_LESS_THAN_5_ROWS, M_SELECTION_ONLY_ONE_ROW_TO_OPEN_DETAIL_FORM, M_WOULD_YOU_LIKE_TO_DELETE_ROWS, M_WOULD_YOU_LIKE_TO_DELETE_THIS_CONFIGURATION_OF_FILTER, MAXIMUM_es_ES, MEMO_RENDER, memoRenderColumns, MEMORY_ENTITY, memoryEntity, menu, menuAvgFunction, menuChartItems, menuCopyCell, menuCopySelection, menuCountFunction, menuDefaultOrderSetup, menuDeleteColumnFilter, menuDeleteFilter, menuDeleteGroup, menuDetail, menuFilter, menuFilterByValue, menuGroup, menuGroupByMonth, menuGroupByQuarter, menuGroupByQuarterYear, menuGroupByYear, menuGroupByYearMonth, menuGroupDate, menuGroupFunction, menuGroupYearMonthDay, menuInsert, menuMaxFunction, menuMinFunction, menuOpenInNewWindow, menuOrderFilterSetup, menuPageableEnabled, menuPivotTableSetup, menuPrintSelection, menuRefresh, menuReportSetup, menuResetOrder, menuSave, menuSaveDefaultOrderConfiguration, menuSavePivot, menuShowHideControls, menuSumFunction, MIN_ROW_HEIGHT, MINIMUM_es_ES, minRowHeight, MINROWHEIGHT, MODIFIABLE_CALCULATED_COLUMNS, modifiableCalculatedColumns, modified, MONTH, NUM_ROWS_COLUMN, OF, ONSETVALUESET, onsetvaluesetAttributes, opaquebuttons, OPEN_NEW_WINDOW, openInNewWindowByDefault, openInNewWindowKey, OPERATION_PREFERENCE, operationInMemory, ORDER_COLS_BY_VISIBLE_COLS, orderEnabled, orderFilterSetupDeleteItemsListener, originalCalculatedColumns, originalVisibleColumns, OTHER_KEYS, otherParentKeys, packTable, PAGEABLE, pageFetcher, parameters, parentForm, parentFrame, parentKey, PARENTKEY, parentkeys, PERMIT_SAVE_FILTER_ORDER_CONFIGURATION, PIE, PIE_3D, PIVOT_BUTTON, popupListener, preferredSizeInRows, prefPivotTableItemListener, prefWidthAndPosApply, primaryKey, PRINT_START, PRINTING_SELECTION, PRINTING_SELECTION_es_ES, printingWindow, QUARTER, QUERY_ROWS, queryPermission, QUICK_FILTER, QUICK_FILTER_LABEL_KEY, QUICK_FILTER_PAGEABLE_MESSAGE_KEY, QUICK_FILTER_VISIBLE, quickFilterText, quickFilterVisible, RANGE, rBoolean, rDate, RECORDS, RECORDS_es_ES, recordsText, REFRESH, REFRESH_BUTTON, REFRESH_es_ES, refreshThread, rendererEditorConfigurationFile, renderReportValues, REPORT_COLS, reportCols, REQUIRED_COLS, requiredColumnsCalculedColumns, reserOrderListener, resetOrderKey, resourcesFile, restricted, rHead, rImagen, rMemo, rObject, rowPress, ROWS, rowsNumberToQuery, rReal, rRowHead, ru, SAVE_WIDTH_POSITION_COLUMNS, saveAsDefaultConfigurationKey, saveKey, scrollHorizontal, scrollPane, selectionListener, SELECTIONMODE, setPivotTableButton, setRefreshButton, SHOW_HIDE_CONTROLS, SHOW_HIDE_CONTROLS_es_ES, SHOW_OPEN_IN_NEW_WINDOW_MENU, showControls, SHOWGRID, showGridValue, shownText, SINGLE, SORT_HEAD_TIP_COD, sortFilterOrderItemListener, STACKED_3D, SUM_es_ES, SUM_ROW, sumRowSetupDialog, table, tableBackgroundColor, TABLEBGCOLOR, tableComponentPermission, tableOpaque, TABLEOPAQUE, tAux, TIME_RENDER, TIP_CALCULATED_COLUMNS, TIP_CHART_MENU, TIP_CHART_MENU_es_ES, TIP_CLIPBOARD_COPY, TIP_CLIPBOARD_COPY_es_ES, TIP_EXCEL_EXPORT, TIP_EXCEL_EXPORT_es_ES, TIP_FILTER_ORDEN_CONF, TIP_HTML_EXPORT, TIP_HTML_EXPORT_es_ES, TIP_INSERT_BUTTON, TIP_INSERT_BUTTON_es_ES, TIP_PIVOT_TABLE, TIP_PIVOT_TABLE_es_ES, TIP_PRINTING, TIP_PRINTING_es_ES, TIP_REPORT_PRINTING, TIP_REPORT_PRINTING_es_ES, TIP_SAVE_FILTER_ORDER_CONFIGURATION_es_ES, TIP_SUMROW_SETUP, TIP_VISIBLES_COLS_SETUP, TIP_VISIBLES_COLS_SETUP_es_ES, tipScroll, tipScrollEnabled, TITLE, TOTAL, TOTAL_es_ES, totalText, TRANSLATE_HEADER, translateHeader, UNGROUP_COLUMN_es_ES, UPDATE_ENTITY_EDITABLE_COLUMNS, userPrefs, VISIBLE_COLS, visibleColsSetupDialog, visibleColumns, visibleFieldKeyColumn, visiblePermission, visibleRowNumberColumn, vrequiredCols, vupdateEditableColumns, windowCache, XLS_EXPORT_CLASS, YEAR
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ontimize.gui.field.DataComponent
COMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2
 
Fields inherited from interface com.ontimize.gui.field.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface com.ontimize.gui.SecureElement
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP
 
Fields inherited from interface com.ontimize.gui.SelectCurrencyValues
EURO, PST
 
Fields inherited from interface com.ontimize.util.templates.ITemplateField
DATA_TYPE_FIELD, DATA_TYPE_FIELD_ATTR, DATA_TYPE_IMAGE, DATA_TYPE_IMAGE_ATTR, DATA_TYPE_TABLE, DATA_TYPE_TABLE_ATTR, TEMPLATE_DATA_TYPE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
NoticeTable(java.util.Hashtable params)
           
 
Method Summary
 void addDeleteButton()
           
 void addFilterControls()
          Add the buttons to filter the received notices
 void addRow(java.util.Hashtable arg0)
          Overrithe to ensure that the selected row does not change
 void checkRead(java.util.Vector readNoticesKeys, java.util.Vector requiredResponseRows, boolean refresh)
          Sets the notices as read and send the appropriate responses.
protected  void enabledButtonsRowsSelected()
           
protected static BooleanCellRenderer getBooleanCellRenderer()
           
protected static BundleCellRenderer getBundleCellRenderer()
           
protected static DateCellRenderer getDateCellRenderer(boolean conHora, boolean horaPrimero, boolean soloHora)
           
 boolean getSendRequestWithoutAsking()
           
protected  java.util.Hashtable getValueSelectedRow()
           
 void init(java.util.Hashtable params)
          Method that configures the component.
 void initFilterControls()
          Configure the table to see only the new notices
 boolean isCheckReadAutomatic()
           
 void refresh()
          Filter the results in function of the selected filter buttons
protected  void sendReceiptRequested(java.util.Hashtable originalNotices)
          Sends a response for the notice specified
 void setCheckReadAutomatic(boolean b)
           
 void setEnabled(boolean arg0)
          Enable the filter buttons as needed
 void setRenderers()
          Renderer date and boolean columns
protected  void setSelectedRow(java.util.Hashtable selectedValues)
           
 void setSendRequestWithoutAsking(boolean b)
           
protected  void updateNoticeWindow(boolean showWindow)
           
 
Methods inherited from class com.ontimize.util.notice.Table2Forms
openDetailForm, openInsertDetailForm
 
Methods inherited from class com.ontimize.gui.table.Table
addButtonToControls, addButtonToControls, addCalculatedColumn, addColumn, addComponentToControls, addInsertTableInsertRowListener, addRow, addRows, addRows, addTableEditorListener, addTableHeaderMouseListener, addTableHeaderRenderer, addTableRowHeader, applyColumnPositonAndPreferences, applyFilter, applyFilter, applyFilter, applyOperations, calculatePreferredRowHeights, changeButtonIcon, changeOpacity, changeToTableView, changeView, checkBoundRow, checkChartEnabled, checkComponentTablePermission, checkEnabledPermission, checkInsertingRowValue, checkInsertPermission, checkNumberColumnVisibility, checkQueryPermission, checkRefreshThread, checkVisiblePermission, configureButtons, configureCalculatedCols, configureChart, configureChartXDate, configureChartXDate, configureComponentsLocator, configureComponentsParentForm, configureControlButton, configureFilterOrder, configureInsertTable, configurePageable, configureQuickFilter, configureRenderEditor, convertRowIndexToModel, copyCell, copySelection, createChartUtilities, createColumnPositionAndWidthPreference, createDetailForm, createEJTable, createExtendedTableModel, createPopupMenu, createQuickFilter, createReportSetupMenu, createTable, createTableHeaderRenderer, createTableSorter, deleteCalculatedColumn, deleteColumn, deleteColumnFilter, deleteData, deleteEntityRow, deleteFilter, deleteGroup, deletePivotTableConfiguration, deleteRow, deleteRow, deleteRow, deleteRows, detail, deteleFilterOrderConfiguration, disableInsert, enableFiltering, enableInsert, enableSort, evaluateButtonsState, evaluateColumnsWidthAndPosition, evaluatePreferredRowsHeight, executeInsertRow, existsSumRow, finalize, fireEditingCancelled, fireEditingStopped, fireEditingWillStop, fireInsertTableInsertRowChange, fitColumnSize, free, getAllColumnEditors, getAllColumnRenderer, getAllPrimaryKeys, getAscendents, getAscending, getAttribute, getAttributeList, getAttributesAndKeysData, getButtonVisibleColsSetupIcon, getCalculatedColsPreferenceStringValue, getCalculatedColumns, getCalculatedColumnsConfPreferenceKey, getCalculatedRowData, getCellRenderedValue, getCellValueAsString, getColumnIndex, getColumnName, getColumnsPosAndOrderPreferenceKey, getConstraints, getCurrentColumns, getCurrentRowCount, getCustomReportPreferenceKey, getDebugInfo, getDefaultRenderers, getDetailForm, getDetailFormSizePreferenceKey, getDetailWindowParameters, getEditorForColumn, getEditorManager, getEnabledDetail, getEntityName, getExcelString, getFilterColumn, getFilterInfo, getFilterOrderConfigurationPreferenceKey, getFilterOrderConfPreferenceKey, getFormName, getGroupedRowData, getHelpIdString, getHTMLString, getInsertingData, getJScrollPane, getJTable, getKeyFieldName, getKeys, getLabelComponentText, getMinRowHeight, getOperationColumns, getOperationPreferenceKey, getOrderColumn, getOrderColumnName, getOrderColumns, getOriginalCalculatedColumns, getOriginallyVisibleColumns, getOriginalSumRowCols, getPageFetcher, getParameters, getParentForm, getParentkeyEquivalentValue, getParentKeyFieldName, getParentKeyList, getParentKeys, getParentKeys, getParentKeyValue, getParentKeyValues, getParentKeyValues, getPivotTablePreferenceKey, getPivotTablePreferenceKey, getPreferredColumnWidth, getPrimaryKeys, getPrintingData, getPrintingData, getPrintingFontSize, getQuickFilter, getRealColumns, getRealRecordsNumber, getRendererForColumn, getRendererManager, getReportColumns, getRequieredCols, getResizingColumn, getResourceBundle, getRowData, getRowDataForKeys, getRowForKeys, getRowKey, getRowKey, getRowKeys, getRowsForKeys, getRowText, getRowValue, getScrollText, getSelectedRow, getSelectedRowData, getSelectedRows, getSelectedRowsNumber, getShownValue, getShownValue, getSQLDataType, getSQLOrderList, getSumColumn, getTableComponentReference, getTableComponentReferences, getTableSorter, getTemplateDataType, getTemplateDataValue, getTextsToTranslate, getToolTipText, getUser, getValue, getValueToExport, getValueToExport, getValueToExport, getValueToReport, getViewOrderColumnIndex, getVisibleColumns, getVisibleColumnsPreferenceKey, getVisibleControlsPreferenceKey, hasForm, hasParentKeys, hasSumRow, hideTipScroll, initColumnsWidth, initColumnsWidth, initPermissions, initPreferences, initRendererEditors, initTableComponentPermissions, insertFilter, insertFilterByValue, insertGroup, insertGroup, installButtonsListener, installCalculedColsButton, installChartButton, installConfSumRowButton, installConfVisibleColsButtons, installDefaultChartsButton, installHelpId, installPivotTableButton, installReportButton, installScrollListener, isAscending, isChartEnabled, isColumnWidthFixed, isDataBaseInsert, isDetailFormCreated, isEmpty, isEnabled, isFiltered, isFiltered, isFilteringEnabled, isFrame, isGroup, isGrouped, isHidden, isInsertingEnabled, isModifiable, isModifiableCalculatedColumns, isModified, isRequired, isRestricted, isRowNumberColumnVisible, isSorted, isSumRow, isTranslateHeader, isVisibleColumn, loadFilterOrderConfiguration, loadPivotTableConfiguration, menuPivotTablePreferences, openInNewWindow, packTable, parseFunction, preferenceChanged, prepareEditor, prepareRenderer, print, printSelection, printSilent, refresh, refreshEDT, refreshEDT, refreshInThread, refreshRow, refreshRow, refreshRows, registerKeyListeners, removeAllCharts, removeButtonFromControls, removeChart, removeComponentFromControls, removeInsertTableInsertRowListener, removeTableEditorListener, resetFilter, resetFilter, resetGroup, resetOrder, retrieveOnSetValueData, saveColumnsPositionAndWith, saveFilterOrderConfiguration, saveOperations, saveOrderFilterConfiguration, savePivotTableConfiguration, saveVisibleControlsConfiguration, setAttributesToFix, setAutoFixHead, setButtonTips, setCellRendererColorManager, setCellRendererFontManager, setColumnEditor, setComponentLocale, setControlButtonsEnabled, setControlsVisible, setControlsVisible, setDefaultChartsEnabled, setDefaultFilter, setDynamicTableConfiguration, setEditable, setEditableColumn, setEditableColumn, setEditableColumn, setEditorManager, setEditors, setEnabledDetail, setFont, setFormBuilder, setHorizontalScroll, setImageRendererHeight, setInnerValue, setInnerValue, setInsertInDatabase, setInsertInDataBase, setLineRemark, setMemoryOperations, setMinRowHeight, setModifiable, setModified, setParentForm, setParentFrame, setPivotTablePreferences, setPreferredTableColumnWidths, setPreferredTableColumnWidths, setPreferredTableColumnWidths, setPreferredTableColumnWidths, setPreferredTableWidth, setQuickFilterValue, setReferenceLocator, setRemoveInDatabase, setRemoveInDataBase, setRendererForColumn, setRendererForColumnExp, setRendererManager, setReportColumns, setRequired, setResourceBundle, setRowNumberColumnVisible, setScrollTipEnabled, setScrollTooltipText, setSelectedRow, setSelectedRows, setTableComponentEnabled, setTableComponentVisible, setTextsMenu, setTip, setUpdateInDatabase, setValue, setValue, setVisible, setVisibleColsConfigurationAllowed, setVisibleColumns, setVisibleColumns, setVisibleColumns, setWidthAndPositionColumns, showCalculatorWindow, showChart, showChartMenu, showConfSumRowDialog, showCurrencyValue, showCustomReportsWindow, showCustomReportsWindow, showPopupMenu, showTipScroll, sortBy, sortByWithoutReset, toggleControls, update, updateFilterInfo, updateOnSetValueSetAttributes, updateRowData, updateRowData, updateRowData, updateTable, updateTable, updateTable, updateTable, updateUI
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

booleanColumns

public static final java.lang.String[] booleanColumns

dateColumns

public static final java.lang.String[] dateColumns

bundleColumns

public static final java.lang.String[] bundleColumns

bAllNotices

protected javax.swing.JToggleButton bAllNotices
Button to see all the received notices


bUnreadNotices

protected javax.swing.JToggleButton bUnreadNotices
Button to filter the message and see only the new ones (not read)


group

protected javax.swing.ButtonGroup group
Group with the filter buttons, using a group only one of the buttons can be selected at the same time


bCheckRead

protected javax.swing.JButton bCheckRead
Button to mark the selected notices as read


bRemoveNotices

protected javax.swing.JButton bRemoveNotices
Button to mark the selected messages as deleted


sendRequestWithoutAsk

protected boolean sendRequestWithoutAsk
This parameter configures the automatic confirmation of notices. If this is false the user sees a window to selectd between confirm or not


checkAsReadAutomatic

protected boolean checkAsReadAutomatic
If this is true all the selected messages as marked as read when they are selected


receiveTable

protected boolean receiveTable

RECEIVED_NOTICES

protected static java.lang.String RECEIVED_NOTICES
This is read at the beginning to check if this is a table with the received notices or the sent notices.


innerBooleanCellRenderer

protected static BooleanCellRenderer innerBooleanCellRenderer

innerDateCellRenderer

protected static DateCellRenderer innerDateCellRenderer

innerBundleCellRenderer

public static BundleCellRenderer innerBundleCellRenderer
Constructor Detail

NoticeTable

public NoticeTable(java.util.Hashtable params)
            throws java.lang.Exception
Method Detail

getBooleanCellRenderer

protected static BooleanCellRenderer getBooleanCellRenderer()

getDateCellRenderer

protected static DateCellRenderer getDateCellRenderer(boolean conHora,
                                                      boolean horaPrimero,
                                                      boolean soloHora)

getBundleCellRenderer

protected static BundleCellRenderer getBundleCellRenderer()

init

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

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

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

The attributes allowed are:

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

Specified by:
init in interface FormComponent
Overrides:
init in class Table2Forms
Throws:
java.lang.Exception

setRenderers

public void setRenderers()
Renderer date and boolean columns

Overrides:
setRenderers in class Table
See Also:
#JTable

isCheckReadAutomatic

public boolean isCheckReadAutomatic()

setCheckReadAutomatic

public void setCheckReadAutomatic(boolean b)

getSendRequestWithoutAsking

public boolean getSendRequestWithoutAsking()

setSendRequestWithoutAsking

public void setSendRequestWithoutAsking(boolean b)

setEnabled

public void setEnabled(boolean arg0)
Enable the filter buttons as needed

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

enabledButtonsRowsSelected

protected void enabledButtonsRowsSelected()

refresh

public void refresh()
Filter the results in function of the selected filter buttons

Overrides:
refresh in class Table

getValueSelectedRow

protected java.util.Hashtable getValueSelectedRow()

setSelectedRow

protected void setSelectedRow(java.util.Hashtable selectedValues)

addRow

public void addRow(java.util.Hashtable arg0)
Overrithe to ensure that the selected row does not change

Overrides:
addRow in class Table
Parameters:
arg0 - a #Hashtable containing the data to add
See Also:
TableSorter.addRow(java.util.Hashtable)

addFilterControls

public void addFilterControls()
                       throws java.lang.Exception
Add the buttons to filter the received notices

Throws:
java.lang.Exception

initFilterControls

public void initFilterControls()
Configure the table to see only the new notices


addDeleteButton

public void addDeleteButton()

sendReceiptRequested

protected void sendReceiptRequested(java.util.Hashtable originalNotices)
                             throws java.lang.Exception
Sends a response for the notice specified

Parameters:
originalNotices -
Throws:
java.lang.Exception

updateNoticeWindow

protected void updateNoticeWindow(boolean showWindow)

checkRead

public void checkRead(java.util.Vector readNoticesKeys,
                      java.util.Vector requiredResponseRows,
                      boolean refresh)
Sets the notices as read and send the appropriate responses.

Parameters:
readNoticesKeys -
requiredResponseRows -
refresh -

Ontimize