Ontimize 5.2072EN

com.ontimize.gui
Class FormExt

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ontimize.gui.Form
                      extended bycom.ontimize.gui.FormExt
All Implemented Interfaces:
javax.accessibility.Accessible, CreateForms, FontAndEncodingSelector, FormComponent, Freeable, HasHelpIdComponent, HasPreferenceComponent, java.awt.image.ImageObserver, Internationalization, java.awt.MenuContainer, OpenDialog, java.awt.print.Printable, SecureElement, SelectCurrencyValues, java.io.Serializable

public class FormExt
extends Form

See Also:
Serialized Form

Nested Class Summary
protected  class FormExt.PrintingSetupWindow
           
 
Nested classes inherited from class com.ontimize.gui.Form
Form.Act, Form.ComponentConstraints, Form.FocusComparableComponent, Form.FormButton, Form.FormTitleLabel, Form.HelpPopup, Form.PermissionAction, Form.SelColumnsDialog, Form.StatusBar, Form.TableButton, Form.TableButtonIcon
 
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  boolean fireNavigationEvents
          Conditions for dispatch the navigation events
static java.lang.String INFO_PRINTING_SETUP_WINDOW_KEY
          GUI Text
protected  java.util.Vector queryRecordIndex
          A list with the record indexes which has been queried
static java.lang.String TITLE_PRINTING_SETUP_WINDOW_KEY
          GUI Text
 
Fields inherited from class com.ontimize.gui.Form
acceptButtonKey, accessFormComponentList, additionalTableViewColumns, associatedNode, associatedPath, attachment, ATTACHMENT, ATTACHMENT_COLUMNS_KEYS, ATTACHMENT_DATE, ATTACHMENT_ENTITY_NAME, ATTACHMENT_ID, ATTACHMENT_KEYS, ATTACHMENT_SOURCE_TABLE, attachmentButton, attachmentEntity, attachmentIcon, bodyPanel, borderbuttons, buttonList, buttonPanel, buttonPanelObjects, buttons, BUTTONS, cancelButtonKey, checkModifiedFieldList, clearDataFieldButton, COLLAPSIBLE_KEY, COLUMNS, componentList, CONFIRMATION, CORRECT, cTitleForeground, currencyComponentsList, currentIndex, currentTitle, CUSTOMFOCUS, DATABASE_BUNDLE, databaseBundle, databaseBundleButton, databaseBundleIcon, dataComponentList, dataNavigationListeners, dataRecordListeners, DEFAULT_ATTACHMENT, DEFAULT_DATABASE_BUNDLE, DEFAULT_FORM_MARGIN, DEFAULT_SCRIPT_ENABLED, DEFAULT_TABLEVIEW_MULTIPLEDATA, DEFAULT_TEMPLATES, defaultBorderButtons, defaultButtonPanelPosition, defaultButtonPosition, defaultFormButtonSize, defaultOpaqueButtons, defaultPermissionButton, defaultScriptButtonTip, defaultTableViewMinRowHeight, deleteButtonText, descendentOrderKey, DESCRIPTION_FILE, detailForm, dialog, dynamicFormManager, enabledPermission, endButton, endButtonListener, endIcon, ENTITY, entityName, ePrintingTemplate, ERROR_MESSAGE, f11Button, f12Button, f7Button, f9Button, FIELD_NOT_FOUND, FILE_NAME, fileName, FORM, FORM_DATA, FORMBODYPANEL, formBuilder, FORMBUTTONPANEL, formManager, formTitleLabel, groupDataComponentList, headButtonKey, HELP_ID, helpButton, helpId, helpIdButton, helpKey, HELPKEY, helpPopup, INFORMATION_MESSAGE, INPUT, interactionManager, internationalizeList, keys, KEYS, listenerHighlightButtons, locale, M_RELOAD_FORM, MESSAGE, messageAddTemplate, messageCreateOpenOfficeTemplate, messageCreateWordTemplate, messageDeletedTemplate, messageEmptyTemplate, messageErrorGeneratePDF, messageErrorInsert, messageHelpTemplate, messageInfoTemplate, messageInsertionSucessful, messageNameFieldTemplate, messageQueryDeleted, messageWindow, modalDialogTitleKey, MULTIPLE_DATA, multipleData, newButtonPanel, nextButton, nextButtonListener, nextIcon, NO, NOT_DATEDATAFIELD, opaquebuttons, orderAscendingKey, orderIcon, orderWindowTitleKey, ORIGINAL_FILE_NAME, originalButtonPosition, originalTitle, PARENT_KEYS, parentFrame, parentKeys, parentKeyValue, PERMISSION_BUTTON, permissionButton, permissionButtonApplicationPermission, permissionButtonEnabled, previousButton, previousButtonListener, previousIcon, PRINTABLE, printButton, printIcon, printingTemplateName, printListener, printTemplateButton, PRIVATE_ATTACHMENT, QUESTION_MESSAGE, refreshButton, refreshButtonListener, refreshIcon, RELOAD_BUTTON_VISIBLE, reloadButton, RESOURCES, resourcesFile, resourcesFileName, restricted, resultCountLabel, SCRIPT_ENABLED, scriptButton, scriptEnabled, scriptIcon, SCROLL, scrollPanel, selColumnsDialog, SET_VALUE_ORDER, setValuesOrder, SIZE, startButton, startButtonListener, startIcon, STATUS, STATUS_KEY, statusBar, subForm, table, TABLE_VIEW_SCROLL_H, tableButton, tableButtonListener, tableViewColumns, tableViewMinRowHeight, tableWindow, tableWindowKey, tabPane, TEMPLATE, TEMPLATE_DEFAULT, TEMPLATE_FORM, TEMPLATE_ID, TEMPLATE_NAME, TEMPLATE_PRIVATE, TEMPLATE_USER, TEMPLATE_WAREHOUSE, templateList, templates, TEMPLATES, TIP_TABLEVIEW_SAVEPREFERENCE, TITLE, TITLE_ON_TOP, titleBackgroundPaint, totalDataList, toUppercaseTitle, useModifiedFocusOrder, useOriginalButtonPosition, USER, vectorSize, visiblePermission, WARNING_MESSAGE, WORD_TEMPLATES, xmlEntityName, YES
 
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.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface com.ontimize.gui.SelectCurrencyValues
EURO, PST
 
Fields inherited from interface com.ontimize.gui.SecureElement
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FormExt(java.util.Hashtable parameters)
          Creates a Form instance with the parameters establishes in Hastable
 
Method Summary
 void deleteRecordFromFormCache(int index)
          Deletes the record with this index from form cache
protected  boolean existNoQueriedDataField()
          Checks whether exist data fields that haven't been queried
protected  void freeFormCache()
           
 java.util.Vector getAttributesToQuery()
          Gets the attribute list that be used to perform the query.
protected  void installButtonListeners()
          Installs the navigation listeners
 void printMultipleRecords(java.util.Hashtable keysValues)
          Shows a window where the column list to print can be selected in.
 void refreshCurrentDataRecord()
          Refreshes the current data record that is displayed in the form, both the record of the total data cache and all values that are displayed in each data field.
protected  void updateDataFields_Internal(int index)
          Updates the form data field using the values stored in total data cache.
 void updateDataFields(java.util.Hashtable data)
          Updates the values of each form data field and the values of the total data cache with the entry parameter.
 void updateDataFields(java.util.Hashtable data, int currentIndex)
          Updates the values of each form data field and the values of the total data cache with the data entry parameter.
protected  void updateNavigationButtonState()
          Updates the navigation button state depending on the current record index and the total record count.
 
Methods inherited from class com.ontimize.gui.Form
add, addColumnsToTableView, addComponentsToButtonPanel, addComponentsToInternationalizeList, addControls, addDataNavigationListener, addDataRecordListener, checkAccessPermission, checkApplicationBundleButton, checkApplicationPermissionButton, checkApplicationScriptButton, checkModifiedData, clearNotQueriedTabs, configureButton, createLists, createTableViewTable, deleteDataComponentList, deleteDataField, deleteDataFields, deleteDataFields, disableButton, disableButtons, disableDataField, disableDataField, disableDataFields, disableDataFields, disableHyperlinkComponents, disableSubForms, disableTables, enableButton, enableButtons, enableDataField, enableDataField, enableDataFields, enableDataFields, enableHyperlinkComponents, enableTables, existEmptyRequiredDataField, fillDocComb, fillDocSust, fillODT, fillPDF, finalize, findComponentInContainer, findComponentInTab, findVisibleComponentInContainer, fireDataChanged, fireDataRecordChange, fireDataWillChange, free, getArchiveName, getAssociatedNode, getAssociatedTreePath, getAttributeName, getBodyPanel, getButton, getButtonPanel, getButtons, getComponentList, getComponentsAndLabelsListInOrderTopDown, getComponentsInOrderFocus, getComponentsInOrderFocusInBody, getConstraints, getCurrentIndex, getDatabaseBundleButton, getDataComponentList, getDataComponents, getDataFieldAttributeList, getDataFieldReference, getDataFieldTemplateValues, getDataFieldText, getDataFieldText, getDataFieldText, getDataFieldValue, getDataFieldValueFromFormCache, getDataFieldValues, getDataFieldValues, getDataList, getDefaultColorTitle, getDefaultTitlePaint, getDefaultXMLTemplate, getDeleteButtonKey, getDetailComponent, getDynamicFormManager, getElementReference, getEmptyRequiredDataField, getEntityName, getFormCacheSize, getFormManager, getFormTitle, getGroupReference, getHelpIdString, getIndex, getInsertButtonKey, getInteractionManager, getJDialog, getKeys, getLayout, getLocationInForm, getNotQueriedDataFieldAttributes, getParentFrame, getParentKeys, getParentKeyValue, getParentKeyValues, getPermissionButton, getPrintingTemplateName, getQueryButtonKey, getResourceBundle, getResourceFileName, getScriptButton, getScrollPane, getSizeDialogPreferenceKey, getStatusBar, getSubForm, getTableFromTableView, getTableViewPreferenceKey, getTextsToTranslate, getTranslatedDataFieldLabel, getUpdateButtonKey, getVisibleDataComponentAttributes, hasDataAllFields, hideButton, hideDataField, hideElement, init, initPermissions, initPreferences, installAttachmentButton, installDatabaseBundleButton, installHelpId, installPermissionButton, installPrintingTemplatesButton, installScriptButton, isCreatedCheckModifiedFieldList, isCustomFocusEnabled, isEmpty, isFocusCycleRoot, isFocusTraversable, isRestricted, loadTableViewPreference, message, message, message, message, message, message, message, message, message, message, message, message, message, print, printingFormWithDefaultTemplate, printTemplate, printTemplate, processCollapsibleButton, putInModalDialog, putInModalDialog, putInModalDialog, putInModalDialog, putInModalDialog, putInModalDialog, putInModalDialog, query, query, query, question, question, registerApplicationPreferencesListener, registerKeyBindings, remove, removeDataRecordListener, requestDefaultFocus, requestFocusForFirstComponent, resetEntityName, resetFocusOrder, resetTableViewColumns, saveTableViewPreferenceForm, scanComponents, selectTableViewColumns, setAdvancedQueryMode, setAdvancedQueryModeAll, setAllModificable, setAssociatedNode, setCheckModifiedData, setCheckModifiedDataField, setComponentLocale, setCurrentDate, setCurrentIndex, setDataFieldValue, setDataFieldValues, setDataFieldValueToFormCache, setDefaultColorTitle, setDefaultTitlePaint, setDetailForm, setDynamicFormManager, setEntityName, setFileName, setFormBuilder, setFormManager, setFormTitle, setFormValues, setInteractionManager, setLinkedTreePath, setModifiable, setNormalConfiguration, setParentFrame, setParentKeyValue, setParentKeyValues, setRequired, setResourceBundle, setStatusBarText, setStatusBarText, setTabEnabled, setTabEnabled, setTabVisible, setTabVisible, showAvaliableFonts, showButton, showCurrencyValue, showDataField, showElement, showMe, showTableView, supportsEuroSymbol, unregisterKeyBindings, updateDataFieldNavegationButton, updateDataFields, updateDataFieldsEDTh, updateDataListDataCurrentRecord, updateDataListDataCurrentRecord, updateReferencesLocator, useFont
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, 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, isEnabled, isFocusable, isFocusOwner, 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
 
Methods inherited from interface com.ontimize.gui.field.FormComponent
isEnabled, setEnabled, setVisible
 

Field Detail

TITLE_PRINTING_SETUP_WINDOW_KEY

public static final java.lang.String TITLE_PRINTING_SETUP_WINDOW_KEY
GUI Text

See Also:
Constant Field Values

INFO_PRINTING_SETUP_WINDOW_KEY

public static final java.lang.String INFO_PRINTING_SETUP_WINDOW_KEY
GUI Text

See Also:
Constant Field Values

fireNavigationEvents

protected boolean fireNavigationEvents
Conditions for dispatch the navigation events


queryRecordIndex

protected java.util.Vector queryRecordIndex
A list with the record indexes which has been queried

Constructor Detail

FormExt

public FormExt(java.util.Hashtable parameters)
        throws java.lang.Exception
Creates a Form instance with the parameters establishes in Hastable

Parameters:
parameters -
Throws:
java.lang.Exception
Method Detail

installButtonListeners

protected void installButtonListeners()
Installs the navigation listeners


freeFormCache

protected void freeFormCache()

updateNavigationButtonState

protected void updateNavigationButtonState()
Updates the navigation button state depending on the current record index and the total record count.


updateDataFields

public void updateDataFields(java.util.Hashtable data)
Description copied from class: Form
Updates the values of each form data field and the values of the total data cache with the entry parameter. The entry parameter is a Hashtable whose keys are the data field attributes and the values are a Vector with the data for this attribute. If the Vector has more than one record the first record will be displayed.

Overrides:
updateDataFields in class Form
Parameters:
data -

updateDataFields_Internal

protected void updateDataFields_Internal(int index)
Description copied from class: Form
Updates the form data field using the values stored in total data cache. Establishes the data field values from the record of the total data cache of which index is the entry parameter.

Overrides:
updateDataFields_Internal in class Form
Parameters:
index - a index of the data record for update.

getAttributesToQuery

public java.util.Vector getAttributesToQuery()
Gets the attribute list that be used to perform the query. This list is obtained from column list established in the 'column' xml parameter and the columns established by the user in table view.

Returns:
a with the attribute list.

existNoQueriedDataField

protected boolean existNoQueriedDataField()
Checks whether exist data fields that haven't been queried

Returns:
true exist not queried data fields; false otherwise.

refreshCurrentDataRecord

public void refreshCurrentDataRecord()
Description copied from class: Form
Refreshes the current data record that is displayed in the form, both the record of the total data cache and all values that are displayed in each data field.

Overrides:
refreshCurrentDataRecord in class Form

printMultipleRecords

public void printMultipleRecords(java.util.Hashtable keysValues)
Shows a window where the column list to print can be selected in.

Parameters:
keysValues - a Hashtable with the record keys to be printed.

updateDataFields

public void updateDataFields(java.util.Hashtable data,
                             int currentIndex)
Description copied from class: Form
Updates the values of each form data field and the values of the total data cache with the data entry parameter. The data entry parameter is a Hashtable of which keys are the data field attributes and the values are a Vector with the data for this attribute. If the Vector has more than one record the record with index as currentIndex will be displayed.

Overrides:
updateDataFields in class Form
Parameters:
data -
currentIndex -

deleteRecordFromFormCache

public void deleteRecordFromFormCache(int index)
Description copied from class: Form
Deletes the record with this index from form cache

Overrides:
deleteRecordFromFormCache in class Form
Parameters:
index - index of the record to be deleted

Ontimize