|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ontimize.gui.table.Table
com.ontimize.util.notice.Table2Forms
com.ontimize.util.notice.NoticeTable
| Nested Class Summary |
| 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 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 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 |
public static final java.lang.String[] booleanColumns
public static final java.lang.String[] dateColumns
public static final java.lang.String[] bundleColumns
protected javax.swing.JToggleButton bAllNotices
protected javax.swing.JToggleButton bUnreadNotices
protected javax.swing.ButtonGroup group
protected javax.swing.JButton bCheckRead
protected javax.swing.JButton bRemoveNotices
protected boolean sendRequestWithoutAsk
protected boolean checkAsReadAutomatic
protected boolean receiveTable
protected static java.lang.String RECEIVED_NOTICES
protected static BooleanCellRenderer innerBooleanCellRenderer
protected static DateCellRenderer innerDateCellRenderer
public static BundleCellRenderer innerBundleCellRenderer
| Constructor Detail |
public NoticeTable(java.util.Hashtable params)
throws java.lang.Exception
| Method Detail |
protected static BooleanCellRenderer getBooleanCellRenderer()
protected static DateCellRenderer getDateCellRenderer(boolean conHora,
boolean horaPrimero,
boolean soloHora)
protected static BundleCellRenderer getBundleCellRenderer()
public void init(java.util.Hashtable params)
throws java.lang.Exception
TableHashtable
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, |
|
| 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. |
|
| 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. | |
| 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. |
init in interface FormComponentinit in class Table2Formsjava.lang.Exceptionpublic void setRenderers()
setRenderers in class Table#JTablepublic boolean isCheckReadAutomatic()
public void setCheckReadAutomatic(boolean b)
public boolean getSendRequestWithoutAsking()
public void setSendRequestWithoutAsking(boolean b)
public void setEnabled(boolean arg0)
setEnabled in interface FormComponentsetEnabled in class Tablearg0 - true if this component should be enabled, false otherwiseprotected void enabledButtonsRowsSelected()
public void refresh()
refresh in class Tableprotected java.util.Hashtable getValueSelectedRow()
protected void setSelectedRow(java.util.Hashtable selectedValues)
public void addRow(java.util.Hashtable arg0)
addRow in class Tablearg0 - a #Hashtable containing the data to addTableSorter.addRow(java.util.Hashtable)
public void addFilterControls()
throws java.lang.Exception
java.lang.Exceptionpublic void initFilterControls()
public void addDeleteButton()
protected void sendReceiptRequested(java.util.Hashtable originalNotices)
throws java.lang.Exception
originalNotices -
java.lang.Exceptionprotected void updateNoticeWindow(boolean showWindow)
public void checkRead(java.util.Vector readNoticesKeys,
java.util.Vector requiredResponseRows,
boolean refresh)
readNoticesKeys - requiredResponseRows - refresh -
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||