|
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
| 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 DetailForm |
insertForm
|
protected java.lang.String |
insertFormName
|
protected DetailForm |
queryForm
|
protected java.lang.String |
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 | |
Table2Forms(java.util.Hashtable arg0)
|
|
| Method Summary | |
void |
init(java.util.Hashtable arg0)
Method that configures the component. |
void |
openDetailForm(int rowIndex)
Opens the table DetailForm with the data related to the row passed
as parameter. |
void |
openInsertDetailForm()
Opens the table DetailForm from in Insert mode. |
| 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 |
protected java.lang.String insertFormName
protected DetailForm insertForm
protected java.lang.String queryFormName
protected DetailForm queryForm
| Constructor Detail |
public Table2Forms(java.util.Hashtable arg0)
throws java.lang.Exception
| Method Detail |
public void init(java.util.Hashtable arg0)
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 Tablejava.lang.Exceptionpublic void openInsertDetailForm()
TableDetailForm from in Insert mode. The user must have
permission to do that and the form must be specified.
openInsertDetailForm in class Tablepublic void openDetailForm(int rowIndex)
TableDetailForm 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.
openDetailForm in class TablerowIndex - the row which data will be shown in the form
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||