|
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.Form
The base class that is used for show a form that contains any set of components, data components, reference components. The base component where any component is displayed.
The Form can be added to form xml definition by using the
default XML label Form. The structure is as follows:
<Form {attribute=value} />
The attributes allowed can be found in the method
init(Hashtable params) where parameters contains the attributes
information.
| Nested Class Summary | |
protected class |
Form.Act
|
protected static class |
Form.ComponentConstraints
|
static class |
Form.FocusComparableComponent
|
static class |
Form.FormButton
|
protected class |
Form.FormTitleLabel
|
protected class |
Form.HelpPopup
|
protected class |
Form.PermissionAction
|
protected class |
Form.SelColumnsDialog
|
class |
Form.StatusBar
|
class |
Form.TableButton
|
protected static class |
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 | |
static java.lang.String |
acceptButtonKey
GUI text |
protected java.util.Vector |
accessFormComponentList
Component list that implement AccessForm interface. |
protected java.util.Vector |
additionalTableViewColumns
Column list that are added to default column list from table view. |
protected OTreeNode |
associatedNode
TreeNode associates with this form |
protected javax.swing.tree.TreePath |
associatedPath
Path associates with this form |
protected boolean |
attachment
|
static java.lang.String |
ATTACHMENT
Attribute name allowed in the XML. |
static java.lang.String |
ATTACHMENT_COLUMNS_KEYS
Constants used to form attachment |
static java.lang.String |
ATTACHMENT_DATE
Constants used to form attachment |
static java.lang.String |
ATTACHMENT_ENTITY_NAME
Constants used to form attachment |
static java.lang.String |
ATTACHMENT_ID
Constants used to form attachment |
static java.lang.String |
ATTACHMENT_KEYS
Constants used to form attachment |
static java.lang.String |
ATTACHMENT_SOURCE_TABLE
Constants used to form attachment |
ButtonSelectionInternationalization |
attachmentButton
Button that manage the attachment file |
protected Entity |
attachmentEntity
Deprecated. Use ((UtilReferenceLocator) locator).getAttachmentEntity(locator.getSessionId()) |
javax.swing.ImageIcon |
attachmentIcon
|
protected javax.swing.JPanel |
bodyPanel
Main panel where the form is contained in |
protected boolean |
borderbuttons
|
protected java.util.Hashtable |
buttonList
Button list that implement Button that are contained in the form.
|
javax.swing.JPanel |
buttonPanel
Panel where the buttons are contained in |
protected java.util.Hashtable |
buttonPanelObjects
|
protected boolean |
buttons
Establishes if the buttons are displayed in the form. |
static java.lang.String |
BUTTONS
Attribute name allowed in the XML. |
static java.lang.String |
cancelButtonKey
GUI text |
protected java.util.Vector |
checkModifiedFieldList
Modified field list |
javax.swing.JButton |
clearDataFieldButton
Button that clear all data field values |
protected static java.lang.String |
COLLAPSIBLE_KEY
|
static java.lang.String |
COLUMNS
Attribute name allowed in the XML. |
protected java.util.Vector |
componentList
Component list that are contained in the form. |
static int |
CONFIRMATION
|
static int |
CORRECT
Value returned in setCurrentDate(java.lang.String) when the operation was
successful. |
protected static java.awt.Color |
cTitleForeground
Color user to draw the title |
protected java.util.Vector |
currencyComponentsList
Component list that implement SelectCurrencyValues interface. |
protected int |
currentIndex
Index of current record |
protected java.lang.String |
currentTitle
|
static java.lang.String |
CUSTOMFOCUS
Attribute name allowed in the XML. |
static java.lang.String |
DATABASE_BUNDLE
Attribute name allowed in the XML to configure or not the database bundle configuration button. |
protected boolean |
databaseBundle
|
protected javax.swing.JButton |
databaseBundleButton
|
javax.swing.ImageIcon |
databaseBundleIcon
|
protected java.util.Hashtable |
dataComponentList
Hashtable where the components that implement DataComponent are
stored in. |
protected java.util.Vector |
dataNavigationListeners
List where the navigation listeners are stored in |
protected java.util.ArrayList |
dataRecordListeners
List where the record listeners are stored in |
static boolean |
DEFAULT_ATTACHMENT
Establishes the default value for the attachment button in all application. |
static boolean |
DEFAULT_DATABASE_BUNDLE
|
static java.awt.Insets |
DEFAULT_FORM_MARGIN
Establishes the default margin value for all application forms. |
static boolean |
DEFAULT_SCRIPT_ENABLED
|
static boolean |
DEFAULT_TABLEVIEW_MULTIPLEDATA
Established the default value for the behavior when a query with multiple results is done in each application form. |
static boolean |
DEFAULT_TEMPLATES
Established the default value for the template button in all application. |
static boolean |
defaultBorderButtons
|
protected static java.lang.String[] |
defaultButtonPanelPosition
The default order for Form buttons and StatusBar showed (from left to right): "help", "helpId", "controls", "table", "start", "previous", "print", "next", "end", "countlabel", "refresh", "clear", "status". |
static java.lang.String |
defaultButtonPosition
|
static int |
defaultFormButtonSize
llt size for status bar buttons (navigation, delete fields, ...). |
static boolean |
defaultOpaqueButtons
|
static boolean |
defaultPermissionButton
|
static java.lang.String |
defaultScriptButtonTip
|
static int |
defaultTableViewMinRowHeight
|
java.lang.String |
deleteButtonText
|
static java.lang.String |
descendentOrderKey
GUI text |
static java.lang.String |
DESCRIPTION_FILE
Constants used to form attachment |
protected DetailForm |
detailForm
reference where the form is contained in. |
protected javax.swing.JDialog |
dialog
Dialog window where the form is contained in. see putInModalDialog() |
protected DynamicFormManager |
dynamicFormManager
|
protected FormPermission |
enabledPermission
Enabled form permission |
javax.swing.JButton |
endButton
Navigation button |
java.awt.event.ActionListener |
endButtonListener
Navigation listener |
javax.swing.ImageIcon |
endIcon
|
static java.lang.String |
ENTITY
Attribute name allowed in the XML. |
protected java.lang.String |
entityName
Variable where the entity name is stored in. |
protected Entity |
ePrintingTemplate
Deprecated. Use ((UtilReferenceLocator) locator).getPrintingTemplateEntity(locator.getSessionId()) |
static int |
ERROR_MESSAGE
Used for error messages. |
protected java.lang.String |
f11Button
Key of the update button |
protected java.lang.String |
f12Button
Key of the delete button |
protected java.lang.String |
f7Button
Key of the query button |
protected java.lang.String |
f9Button
Key of the insert button |
static int |
FIELD_NOT_FOUND
Value returned in setCurrentDate(java.lang.String) method when the data field
hasn't been found. |
static java.lang.String |
FILE_NAME
Constants used to form attachment |
protected java.lang.String |
fileName
Form file name |
static java.lang.String |
FORM
The name of class. |
protected static java.lang.String |
FORM_DATA
|
static java.lang.String |
FORMBODYPANEL
The name of class. |
protected FormBuilder |
formBuilder
FormBuilder reference that will be used by all components that
implement CreateForms interface. |
static java.lang.String |
FORMBUTTONPANEL
The name of class. |
protected FormManager |
formManager
Form manager reference where the form is contained in. |
protected Form.FormTitleLabel |
formTitleLabel
|
protected java.util.Hashtable |
groupDataComponentList
List where the group data component is stored in. |
static java.lang.String |
headButtonKey
GUI text |
static java.lang.String |
HELP_ID
Attribute name allowed in the XML. |
javax.swing.JButton |
helpButton
|
protected java.lang.String |
helpId
|
javax.swing.JButton |
helpIdButton
|
protected java.lang.String |
helpKey
|
static java.lang.String |
HELPKEY
Attribute name allowed in the XML. |
protected Form.HelpPopup |
helpPopup
|
static int |
INFORMATION_MESSAGE
Used for information messages. |
static int |
INPUT
|
protected InteractionManager |
interactionManager
InteractionManager class that this form has registered. |
protected java.util.Vector |
internationalizeList
Component list that implement Internationalization. |
protected java.util.Vector |
keys
|
static java.lang.String |
KEYS
Attribute name allowed in the XML. |
protected java.awt.event.MouseListener |
listenerHighlightButtons
|
protected java.util.Locale |
locale
|
protected static java.lang.String |
M_RELOAD_FORM
|
static int |
MESSAGE
|
static java.lang.String |
messageAddTemplate
GUI text |
static java.lang.String |
messageCreateOpenOfficeTemplate
GUI text |
static java.lang.String |
messageCreateWordTemplate
GUI text |
static java.lang.String |
messageDeletedTemplate
GUI text |
static java.lang.String |
messageEmptyTemplate
GUI text |
static java.lang.String |
messageErrorGeneratePDF
GUI text |
static java.lang.String |
messageErrorInsert
GUI text |
static java.lang.String |
messageHelpTemplate
GUI text |
static java.lang.String |
messageInfoTemplate
GUI text |
static java.lang.String |
messageInsertionSucessful
GUI text |
static java.lang.String |
messageNameFieldTemplate
GUI text |
static java.lang.String |
messageQueryDeleted
GUI text |
protected javax.swing.JDialog |
messageWindow
|
protected java.lang.String |
modalDialogTitleKey
|
static java.lang.String |
MULTIPLE_DATA
Attribute name allowed in the XML. |
protected boolean |
multipleData
|
protected javax.swing.JPanel |
newButtonPanel
Panel where the new buttons are contained in |
javax.swing.JButton |
nextButton
Navigation button |
java.awt.event.ActionListener |
nextButtonListener
Navigation listener |
javax.swing.ImageIcon |
nextIcon
|
static int |
NO
|
static int |
NOT_DATEDATAFIELD
Value returned in setCurrentDate(java.lang.String) when the data field isn't a
DateDataField. |
protected boolean |
opaquebuttons
|
static java.lang.String |
orderAscendingKey
GUI text |
javax.swing.ImageIcon |
orderIcon
|
static java.lang.String |
orderWindowTitleKey
GUI text |
static java.lang.String |
ORIGINAL_FILE_NAME
Constants used to form attachment |
static java.lang.String |
originalButtonPosition
|
protected java.lang.String |
originalTitle
|
static java.lang.String |
PARENT_KEYS
Attribute name allowed in the XML. |
protected java.awt.Frame |
parentFrame
Variable where the Frame of this Form is stored in |
protected java.util.Vector |
parentKeys
|
protected java.lang.Object |
parentKeyValue
|
static java.lang.String |
PERMISSION_BUTTON
|
protected javax.swing.JButton |
permissionButton
Button that show the permission component |
protected ApplicationPermission |
permissionButtonApplicationPermission
ApplicationPermission reference used to check the permission of
permissionButton |
protected boolean |
permissionButtonEnabled
|
javax.swing.JButton |
previousButton
Navigation button |
java.awt.event.ActionListener |
previousButtonListener
Navigation listener |
javax.swing.ImageIcon |
previousIcon
|
static java.lang.String |
PRINTABLE
Attribute name allowed in the XML. |
javax.swing.JButton |
printButton
Button that print used the default printing xml template |
javax.swing.ImageIcon |
printIcon
|
protected java.lang.String |
printingTemplateName
Variable where the printing template name is stored in |
protected java.awt.event.ActionListener |
printListener
Listener of the printButton |
ButtonSelectionInternationalization |
printTemplateButton
Button that manage the printing template |
static java.lang.String |
PRIVATE_ATTACHMENT
Constants used to form attachment |
static int |
QUESTION_MESSAGE
Used for questions. |
javax.swing.JButton |
refreshButton
|
com.ontimize.gui.Form.FormAction |
refreshButtonListener
Refresh button listener |
javax.swing.ImageIcon |
refreshIcon
|
static boolean |
RELOAD_BUTTON_VISIBLE
Establishes if the reload button is created when the form is built. |
protected javax.swing.JButton |
reloadButton
|
static java.lang.String |
RESOURCES
Attribute name allowed in the XML. |
protected java.util.ResourceBundle |
resourcesFile
|
protected java.lang.String |
resourcesFileName
|
protected boolean |
restricted
|
javax.swing.JLabel |
resultCountLabel
Label where the total record number is drawn in |
static java.lang.String |
SCRIPT_ENABLED
|
protected javax.swing.JButton |
scriptButton
|
protected boolean |
scriptEnabled
|
javax.swing.ImageIcon |
scriptIcon
|
static java.lang.String |
SCROLL
Attribute name allowed in the XML. |
protected javax.swing.JScrollPane |
scrollPanel
Scroll Panel where the form is contained in. see init(java.util.Hashtable) |
protected Form.SelColumnsDialog |
selColumnsDialog
The dialog where the visible columns are selected in |
static java.lang.String |
SET_VALUE_ORDER
Attribute name allowed in the XML. |
protected java.util.Vector |
setValuesOrder
Component list that provides the order in which the field values are filled. |
static java.lang.String |
SIZE
Constants used to form attachment |
javax.swing.JButton |
startButton
Navigation button |
java.awt.event.ActionListener |
startButtonListener
Navigation listener |
javax.swing.ImageIcon |
startIcon
|
static java.lang.String |
STATUS
Attribute name allowed in the XML. |
protected static java.lang.String |
STATUS_KEY
|
protected Form.StatusBar |
statusBar
|
protected SubForm |
subForm
The SubForm where the form is contained in |
protected Table |
table
|
static java.lang.String |
TABLE_VIEW_SCROLL_H
Attribute name allowed in the XML. |
Form.TableButton |
tableButton
Table view button |
java.awt.event.ActionListener |
tableButtonListener
Table view button listener |
protected java.util.Vector |
tableViewColumns
Default column list that is shown in table view. |
protected int |
tableViewMinRowHeight
|
protected javax.swing.JDialog |
tableWindow
|
static java.lang.String |
tableWindowKey
GUI text |
protected javax.swing.JTabbedPane |
tabPane
Deprecated. |
static java.lang.String |
TEMPLATE
Attribute name allowed in the XML. |
static java.lang.String |
TEMPLATE_DEFAULT
Variable used to printing templates |
static java.lang.String |
TEMPLATE_FORM
Variable used to printing templates |
static java.lang.String |
TEMPLATE_ID
Variable used to printing templates |
static java.lang.String |
TEMPLATE_NAME
Variable used to printing templates |
static java.lang.String |
TEMPLATE_PRIVATE
Variable used to printing templates |
static java.lang.String |
TEMPLATE_USER
Variable used to printing templates |
static java.lang.String |
TEMPLATE_WAREHOUSE
Variable used to printing templates |
protected PopupPrintingTemplateList |
templateList
Popup component where the printing template list is shown in |
protected boolean |
templates
|
static java.lang.String |
TEMPLATES
Attribute name allowed in the XML. |
static java.lang.String |
TIP_TABLEVIEW_SAVEPREFERENCE
GUI text |
static java.lang.String |
TITLE
Attribute name allowed in the XML. |
static boolean |
TITLE_ON_TOP
Establishes where the title is situated in. |
protected static java.awt.Paint |
titleBackgroundPaint
Paint used to draw the title background |
protected java.util.Hashtable |
totalDataList
Total data list from this form |
static boolean |
toUppercaseTitle
|
protected boolean |
useModifiedFocusOrder
|
static boolean |
useOriginalButtonPosition
|
static java.lang.String |
USER
Constants used to form attachment |
protected int |
vectorSize
Total data list size |
protected FormPermission |
visiblePermission
Visible form permission |
static int |
WARNING_MESSAGE
Used for warning messages. |
static int |
WORD_TEMPLATES
Identifies the filling type will be used to fill the word templates. |
protected java.lang.String |
xmlEntityName
Variable where the entity name is stored in. |
static int |
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 | |
Form(java.util.Hashtable params)
Creates a Form instance with the parameters establishes in Hastable |
|
| Method Summary | |
void |
add(java.awt.Component component,
java.lang.Object constraints)
Appends the specified component to the end of this form. |
void |
addColumnsToTableView(java.util.Vector cols)
Appends the specified column list to the default column list of the table view. |
protected void |
addComponentsToButtonPanel(java.lang.String configuration)
|
void |
addComponentsToInternationalizeList(java.awt.Component component,
boolean setBundle)
Adds the component to the internationalizeList if the component implements Internationalization. |
void |
addControls(javax.swing.JComponent c)
Appends the specified component to the control panel. |
void |
addDataNavigationListener(DataNavigationListener listener)
Registers listener so that it will receive DataNavigationEvent when there are multiple records and the
current record is changed using the navigation buttons. |
void |
addDataRecordListener(DataRecordListener listener)
Registers listener so that it will receive DataRecordEvent
when a record has been modified correctly. |
protected boolean |
checkAccessPermission(java.lang.String attribute)
Checks if the attribute has any restriction by permissions. |
protected boolean |
checkApplicationBundleButton()
|
protected boolean |
checkApplicationPermissionButton()
Checks if the the permission button is restricted by application permissions. |
protected boolean |
checkApplicationScriptButton()
|
boolean |
checkModifiedData()
Checks if any fields have modified data. |
void |
clearNotQueriedTabs()
|
protected void |
configureButton(javax.swing.JButton button,
java.lang.String iconPath,
boolean border,
boolean opaque,
java.awt.event.MouseListener highlightListener)
|
void |
createLists()
Creates and updates the component list contains in this form. |
protected void |
createTableViewTable()
Creates the component used to show the table view. |
void |
deleteDataComponentList()
|
void |
deleteDataField(java.lang.String attribute)
Deletes data from form data component with this attribute |
void |
deleteDataFields()
Deletes data from all form data components. |
void |
deleteDataFields(boolean includeNonModif)
If parameter is true, data from all form data component will delete if not, only the modifiable components will delete. |
void |
deleteRecordFromFormCache(int index)
Deletes the record with this index from form cache |
void |
disableButton(java.lang.String key)
Disables the button with this key |
void |
disableButtons()
Disables all buttons from the form |
void |
disableDataField(java.lang.Object attr)
Disables the data field with this attribute |
void |
disableDataField(java.lang.String attribute)
Disables the data field with this attribute |
void |
disableDataFields()
Disables all data components from form |
void |
disableDataFields(java.lang.String except)
Disables all data components from form except the data component with this attribute |
void |
disableHyperlinkComponents()
Disables all hiperlink components |
void |
disableSubForms()
Disables all subforms from this form |
void |
disableTables()
Disables all tables from this form |
void |
enableButton(java.lang.String key)
Enables the button with this key |
void |
enableButtons()
Enables all buttons from this form. |
void |
enableDataField(java.lang.String attribute)
Enables the data component from this form with this attribute. |
void |
enableDataField(java.lang.String attribute,
boolean requestFocus)
Enables the data component from this form with this attribute and if the requestfocus is true the enabled data component requests the focus |
void |
enableDataFields()
Enables all data components from this form. |
void |
enableDataFields(boolean modifiable)
Enables all data components from this form. |
void |
enableHyperlinkComponents()
Enables all hiperlink components |
void |
enableTables()
Enables all tables from this form |
boolean |
existEmptyRequiredDataField()
Returns true if any required field is empty or false if all required fields have data. |
protected void |
fillDocComb(java.io.File file)
Fills a WORD Document using the form data. |
void |
fillDocSust(java.io.File file)
Fills a WORD Document using the form data. |
void |
fillODT(java.io.File inputFile)
|
void |
fillPDF(java.io.File inputFile,
java.io.File outputFile)
Fills a PDF Document using the form data. |
protected void |
finalize()
|
protected void |
findComponentInContainer(java.awt.Container container,
java.util.List result)
Finds all components into this Container and filles the
List with this components. |
protected boolean |
findComponentInTab(java.awt.Container container,
java.awt.Component component)
Checks whether this component is contained in this container. |
protected void |
findVisibleComponentInContainer(java.awt.Container container,
java.util.List result)
Finds visible components into this Container and filles the
List with this components. |
protected void |
fireDataChanged(DataNavigationEvent e)
Notifies all listeners that the current record may be changed due to a DataNavigationEvent is forwarded. |
void |
fireDataRecordChange(DataRecordEvent e)
Notifies all listeners that a record may have modified correctly. |
protected boolean |
fireDataWillChange(DataNavigationEvent e)
Notifies all listeners that the current record will be changed due to a DataNavigationEvent is forwarded. |
void |
free()
Makes the object to release the resources. |
java.lang.String |
getArchiveName()
Returns the form archive name |
OTreeNode |
getAssociatedNode()
Returns the tree node associated a this form. |
javax.swing.tree.TreePath |
getAssociatedTreePath()
Returns the tree path associated a this form |
protected java.lang.String |
getAttributeName(java.lang.Object attribute)
Get the string that identify an attribute. |
javax.swing.JPanel |
getBodyPanel()
|
Button |
getButton(java.lang.String key)
Returns a button reference that has the entry parameter as key |
javax.swing.JPanel |
getButtonPanel()
|
Button[] |
getButtons()
Returns a array of buttons with all buttons from the form. |
java.util.List |
getComponentList()
Returns the list of component references that contains the form. |
protected java.util.Vector |
getComponentsAndLabelsListInOrderTopDown()
Returns the list of component and label references that is contained in the form. |
java.util.List |
getComponentsInOrderFocus()
Returns the list of focusable component references that are contained in the form. |
protected java.util.List |
getComponentsInOrderFocusInBody()
Returns the list of focusable component references that are contained in the form body. |
java.lang.Object |
getConstraints(java.awt.LayoutManager parentLayout)
Description method to return the constraints component to
place correctly in parent container.
|
int |
getCurrentIndex()
Returns the record current index from form cache data |
javax.swing.JButton |
getDatabaseBundleButton()
|
java.util.Hashtable |
getDataComponentList()
|
java.util.Vector |
getDataComponents()
Returns the list of data component references that are contained in the form. |
java.util.Vector |
getDataFieldAttributeList()
Returns a list of data field attributes that are contained in the form |
DataComponent |
getDataFieldReference(java.lang.String attribute)
Returns the reference of the data component which has the entry parameter as attribute |
protected java.util.Hashtable |
getDataFieldTemplateValues()
Returns all form data field values in text format for being used in template filling. |
java.util.Hashtable |
getDataFieldText()
Return the text contained in every form data field. |
java.lang.String |
getDataFieldText(java.lang.String attribute)
Returns the data field text which has the entry parameter as attribute. |
java.util.Hashtable |
getDataFieldText(java.util.Vector attributeList)
Returns a text list from the data fields that are requested in the entry parameter |
java.lang.Object |
getDataFieldValue(java.lang.String attribute)
Returns the value of data component which has the entry parameter as attribute. |
java.lang.Object |
getDataFieldValueFromFormCache(java.lang.String attribute)
Returns the data component value which has the entry parameter as attribute. |
java.util.Hashtable |
getDataFieldValues(boolean tables)
Returns a Hashtable with the data field values from the form
that aren't empty. |
java.util.Hashtable |
getDataFieldValues(boolean tables,
boolean empty)
Returns a Hashtable with the data field values from the form
that aren't empty. |
java.util.Hashtable |
getDataList()
Returns the whole data list from the form |
static java.awt.Color |
getDefaultColorTitle()
|
static java.awt.Paint |
getDefaultTitlePaint()
|
java.lang.StringBuffer |
getDefaultXMLTemplate()
Returns the xml of the default template. |
java.lang.String |
getDeleteButtonKey()
Returns the key of the delete button. |
DetailForm |
getDetailComponent()
Returns a DetailForm if the form is contained in one of them. |
DynamicFormManager |
getDynamicFormManager()
Returns the DynamicFormManager object that is assigned to this
form. |
FormComponent |
getElementReference(java.lang.String attribute)
Returns a FormComponent reference. |
java.util.Vector |
getEmptyRequiredDataField()
Get the names (String) of all the empty required fields in the form |
java.lang.String |
getEntityName()
Returns the string with the entity name is associated with the form |
int |
getFormCacheSize()
Returns the size of the form data cache. |
FormManager |
getFormManager()
Returns a FormManager object that manages this form. |
java.lang.String |
getFormTitle()
|
DataComponentGroup |
getGroupReference(java.lang.String attribute)
Returns DataComponentGroup reference |
java.lang.String |
getHelpIdString()
|
int |
getIndex(java.util.Hashtable keyValues)
Returns the index of the record that has the entry parameter as key values |
java.lang.String |
getInsertButtonKey()
Returns the key of the insert button. |
InteractionManager |
getInteractionManager()
Returns the InteractionManager object that this form has
registered |
javax.swing.JDialog |
getJDialog()
Returns the JDialog object reference that has been created in
the call to method putInModalDialog(). |
java.util.Vector |
getKeys()
Returns the key list of this form |
java.awt.LayoutManager |
getLayout()
Gets the layout manager for the form body |
protected java.awt.Point |
getLocationInForm(java.awt.Component component)
Gets the location of this component in this form of a point specifying the component's top-left corner in the form's coordinate space. |
java.util.Vector |
getNotQueriedDataFieldAttributes()
Checks whether exist data fields that haven't been queried |
java.awt.Frame |
getParentFrame()
Gets the parent Frame object reference. |
java.util.Vector |
getParentKeys()
Returns a vector containing the parent key names, this is, the names set in the XML to the attributes 'parentkey' and 'otherkeys'. |
java.lang.Object |
getParentKeyValue()
Deprecated. |
java.util.Hashtable |
getParentKeyValues()
Returns the parent keys values |
javax.swing.JButton |
getPermissionButton()
Gets the permission button if exists |
java.lang.String |
getPrintingTemplateName()
Returns the printing template name. |
java.lang.String |
getQueryButtonKey()
Returns the key of the query button. |
java.util.ResourceBundle |
getResourceBundle()
Gets the resource bundle that contain locale-specific objects. |
java.lang.String |
getResourceFileName()
|
javax.swing.JButton |
getScriptButton()
|
javax.swing.JScrollPane |
getScrollPane()
Gets the JScrollPane object when the body form is contained
in. |
java.lang.String |
getSizeDialogPreferenceKey()
Returns the string used as key to store the dialog size in the preferences |
Form.StatusBar |
getStatusBar()
|
SubForm |
getSubForm()
Returns the SubForm component if this form is contained in one of
them |
Table |
getTableFromTableView()
Returns the table used to show the query result. |
protected java.lang.String |
getTableViewPreferenceKey()
Returns the string used as key to store the table view columns in the preferences |
java.util.Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated. |
protected java.util.Hashtable |
getTranslatedDataFieldLabel()
Returns a Hashtable where the attribute list and translated
text are stored in. |
java.lang.String |
getUpdateButtonKey()
Returns the key of the update button. |
protected java.util.ArrayList |
getVisibleDataComponentAttributes()
Returns a list of all visible components that are displayed in this form. |
boolean |
hasDataAllFields()
Returns true if all fields have data. |
void |
hideButton(java.lang.String key)
Hides the button which attribute is the entry parameter. |
void |
hideDataField(java.lang.Object attr)
Hides the data field which attribute is the entry parameter. |
void |
hideElement(java.lang.String attr)
Hides the element which attribute is the entry parameter. |
void |
init(java.util.Hashtable parameters)
Method that configures the component. |
void |
initPermissions()
|
void |
initPreferences(ApplicationPreferences ap,
java.lang.String user)
|
protected void |
installAttachmentButton()
Installs the attachment button for this form. |
protected void |
installDatabaseBundleButton()
|
void |
installHelpId()
|
protected void |
installPermissionButton()
Installs the permission button for this form. |
protected void |
installPrintingTemplatesButton()
Installs the printing template button for this form. |
protected void |
installScriptButton()
|
protected void |
isCreatedCheckModifiedFieldList()
Returns true if the modified data field list has been created. |
boolean |
isCustomFocusEnabled()
Returns whether is this Form should use a modified focus order. |
boolean |
isEmpty(java.lang.String attribute)
Returns whether the data field which attribute is the entry parameter hasn't data. |
boolean |
isFocusCycleRoot()
|
boolean |
isFocusTraversable()
|
boolean |
isRestricted()
|
protected java.util.Vector |
loadTableViewPreference(ApplicationPreferences prefs)
Loads the table view preferences.In this preference the column list that will be showed in the table view is stored. |
int |
message(java.awt.Dialog owner,
java.lang.String message,
int messageType)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Dialog owner,
java.lang.String message,
int messageType,
java.lang.String detail)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Dialog owner,
java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Frame owner,
java.lang.String message,
int messageType)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Frame owner,
java.lang.String message,
int messageType,
java.lang.String detail)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Frame f,
java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.lang.String message,
int messageType)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.lang.String message,
int messageType,
java.lang.String detail)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.lang.String message,
java.lang.Object[] args,
int messageType)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Window owner,
java.lang.String message,
int messageType)
Brings up a dialog that displays a message using a default icon determined by the messageType parameter. |
int |
message(java.awt.Window owner,
java.lang.String message,
int messageType,
java.lang.Object[] args)
Shows a MessageDialog with the information collects from entry
parameters |
int |
message(java.awt.Window owner,
java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
Shows a MessageDialog with the information collects from entry
parameters |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int page)
|
void |
printingFormWithDefaultTemplate()
Prints the default template with the data from the form data components. |
void |
printTemplate(java.lang.String templateURI,
java.lang.String entity,
java.lang.String title)
Prints the template which location is defined in templateURI parameter. |
void |
printTemplate(java.lang.String templateURI,
java.lang.String entity,
java.lang.String title,
boolean texts)
Prints the template which location is defined in templateURI parameter. |
protected void |
processCollapsibleButton(java.lang.String components,
boolean status,
int gridx)
|
javax.swing.JDialog |
putInModalDialog()
Deprecated. Uses putInModalDialog(Component parentComponent) |
javax.swing.JDialog |
putInModalDialog(java.awt.Component parentComponent)
Puts the form in a modal JDialog if it doesn't contain in any
window.
|
javax.swing.JDialog |
putInModalDialog(java.awt.Dialog owner)
Puts the form in a modal JDialog if it doesn't contain in any
window.
|
javax.swing.JDialog |
putInModalDialog(java.awt.Frame owner)
Puts the form in a modal JDialog if it doesn't contain in any
window.
|
javax.swing.JDialog |
putInModalDialog(java.lang.String title)
Deprecated. uses putInModalDialog(String, Component) |
javax.swing.JDialog |
putInModalDialog(java.lang.String title,
java.awt.Component parent)
Puts the form in a modal JDialog if it doesn't contain in any
window.
|
javax.swing.JDialog |
putInModalDialog(java.awt.Window window)
Puts the form in a modal JDialog if it doesn't contain in any
window.
|
EntityResult |
query(java.util.Hashtable keysValues,
java.util.Vector attributes)
Performs a query operation that return the set of data that matches the conditions specified by the keysValues parameter. |
protected EntityResult |
query(int index)
Performs a query for a record of the total data cache which index is the entry parameter. |
EntityResult |
query(int index,
java.util.Vector attributes)
Performs a query operation that return the set of data that matches the conditions specified by record index of total data cache. |
boolean |
question(java.awt.Dialog owner,
java.lang.String message)
Shows a MessageDialog where the message type is established with
QUESTION_MESSAGE in. |
boolean |
question(java.lang.String message)
Shows a MessageDialog where the message type is established with
QUESTION_MESSAGE 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. |
void |
registerApplicationPreferencesListener()
Registers all components that implement ApplicationPreferencesListener so that they will receive
PreferenceEvent when some preference change in the application. |
protected void |
registerKeyBindings()
Registers a keyboard action for default buttons. |
void |
remove(java.awt.Component component)
|
void |
removeDataRecordListener(DataRecordListener listener)
Unregisters listener so that it will no longer receive DataRecordEvent. |
boolean |
requestDefaultFocus()
|
boolean |
requestFocusForFirstComponent()
Dispatch the focus to first enabled data component starting by the top-left corner of the form. |
void |
resetEntityName()
|
void |
resetFocusOrder()
|
void |
resetTableViewColumns()
Delete all column that aren't default column from colum list of the table view |
protected void |
saveTableViewPreferenceForm(java.util.Vector columns)
Saves the table view preference.In this preference the column list that will be showed in the table view is stored. |
protected void |
scanComponents(java.awt.Container container,
boolean onlyReferenceDataFields)
Move across the tree with the form components |
void |
selectTableViewColumns()
Shows a dialog in where the user can select the visible columns from TableViewTable |
boolean |
setAdvancedQueryMode(java.lang.String attr,
boolean enable)
Enables/Disables the advanced query mode for the component which has the entry parameter as attribute. |
void |
setAdvancedQueryModeAll(boolean enable)
Enables/Disables the advanced query mode for all form component. |
void |
setAllModificable(boolean modif)
Establishes whether all data components are modifiable. |
void |
setAssociatedNode(OTreeNode node)
Set the node associated with the form. |
void |
setCheckModifiedData(boolean check)
|
void |
setCheckModifiedDataField(java.lang.String attr,
boolean enable)
Established if a data field, which attribute is the entry parameter, has enabled the data modified checking. |
void |
setComponentLocale(java.util.Locale l)
|
int |
setCurrentDate(java.lang.String attribute)
Method to set the current date in a DateDataField. |
void |
setCurrentIndex(int index)
|
void |
setDataFieldValue(java.lang.Object attribute,
java.lang.Object value)
Set the value to the form component with the attribute specified in attribute parameter. |
void |
setDataFieldValues(java.util.Hashtable values)
Established the values in each form data field that is passed in the entry parameter. |
void |
setDataFieldValueToFormCache(java.lang.Object attr,
java.lang.Object value)
|
static void |
setDefaultColorTitle(java.awt.Color c)
Sets the color of the title text |
static void |
setDefaultTitlePaint(java.awt.Paint paint)
Sets the Paint attribute for the Graphics2D context of the Title component |
void |
setDetailForm(DetailForm detailForm)
Sets the DetailForm for this form |
void |
setDynamicFormManager(DynamicFormManager dynamicfm)
Sets the DynamicFormManager object for this form. |
void |
setEntityName(java.lang.String name)
Sets the entity name associated with this form |
void |
setFileName(java.lang.String archiveName)
Sets the file name which is stored the form xml description |
void |
setFormBuilder(FormBuilder builder)
Establishes the FormBuilder that will be used by the
components of this Form that implement CreateForms
interface |
void |
setFormManager(FormManager formManager)
Sets the form manager for this form |
void |
setFormTitle(java.lang.String title)
|
protected void |
setFormValues(java.util.Hashtable data)
Establishes the values in each form data field that are obtained from entry parameter. |
void |
setInteractionManager(InteractionManager formInteractionManager)
|
void |
setLinkedTreePath(javax.swing.tree.TreePath path)
Set the tree path associated with the form |
void |
setModifiable(java.lang.String attribute,
boolean modifiable)
Sets a data component as modifiable or not modifiable |
protected void |
setNormalConfiguration()
|
void |
setParentFrame(java.awt.Frame parentFrame)
This method is called from Form for each component that implements this interface. |
void |
setParentKeyValue(java.lang.String attribute,
java.lang.Object value)
Deprecated. |
void |
setParentKeyValues(java.util.Hashtable values)
Establishes the values in the data field that theirs attributes is into the parent key list Sets to parent keys values |
void |
setRequired(java.lang.Object attributes,
boolean required)
Establishes whether data field which attributes is the entry parameter is required. |
void |
setResourceBundle(java.util.ResourceBundle resources)
Sets the language resource bundle. |
void |
setStatusBarText(java.lang.String text,
int timeMillis)
Set the text of the status bar. |
void |
setStatusBarText(java.lang.String text,
int timeMillis,
boolean translate)
|
void |
setTabEnabled(int index,
boolean enabled)
Deprecated. |
void |
setTabEnabled(java.lang.String title,
boolean enabled)
Deprecated. |
void |
setTabVisible(int index)
Deprecated. |
void |
setTabVisible(java.lang.String title)
Deprecated. |
java.awt.Font |
showAvaliableFonts(boolean supportingEuro)
Shows the available fonts in the system. |
void |
showButton(java.lang.String key)
Shows the button which key is the entry parameter. |
void |
showCurrencyValue(int idCurrency)
|
void |
showDataField(java.lang.Object attr)
Shows the data field which attribute is the entry parameter. |
void |
showElement(java.lang.String attr)
Shows the element which attribute is the entry parameter. |
void |
showMe(java.awt.Component c)
Deprecated. |
void |
showTableView()
Shows the table view. |
static boolean |
supportsEuroSymbol(java.awt.Font font)
Check if the Font support the Euro character |
protected void |
unregisterKeyBindings()
|
protected void |
updateDataFieldNavegationButton(int index)
|
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. |
void |
updateDataFields(int index)
Updates the form data field using the values stored in total data cache. |
protected void |
updateDataFieldsEDTh(java.util.Hashtable data)
|
void |
updateDataListDataCurrentRecord(java.util.Hashtable attributesValues)
|
void |
updateDataListDataCurrentRecord(java.util.Hashtable attributesValues,
boolean dataFieldRefresh)
|
void |
updateReferencesLocator()
Update the reference locator for all the reference data fields |
void |
useFont(java.awt.Font font)
Set the font to use by the object |
| 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 |
public static final java.lang.String FORM
public static final java.lang.String FORMBODYPANEL
public static final java.lang.String FORMBUTTONPANEL
public static int defaultTableViewMinRowHeight
public static int defaultFormButtonSize
protected int tableViewMinRowHeight
protected java.awt.event.MouseListener listenerHighlightButtons
public static boolean defaultBorderButtons
protected boolean borderbuttons
public static boolean defaultOpaqueButtons
protected boolean opaquebuttons
public static final java.lang.String MULTIPLE_DATA
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String TEMPLATES
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String ATTACHMENT
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String DATABASE_BUNDLE
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String SCRIPT_ENABLED
public static final java.lang.String PERMISSION_BUTTON
public static java.lang.String defaultScriptButtonTip
public static final java.lang.String TITLE
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String TEMPLATE
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String PRINTABLE
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String ENTITY
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String SET_VALUE_ORDER
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String SCROLL
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String CUSTOMFOCUS
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String HELPKEY
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String STATUS
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String BUTTONS
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String RESOURCES
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String PARENT_KEYS
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String KEYS
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String HELP_ID
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String TABLE_VIEW_SCROLL_H
init(java.util.Hashtable),
Constant Field Valuespublic static final java.lang.String COLUMNS
init(java.util.Hashtable),
Constant Field Valuesprotected static final java.lang.String M_RELOAD_FORM
public static int WORD_TEMPLATES
protected static final java.lang.String FORM_DATA
public static boolean TITLE_ON_TOP
public static java.awt.Insets DEFAULT_FORM_MARGIN
public static boolean RELOAD_BUTTON_VISIBLE
public static boolean DEFAULT_ATTACHMENT
public static boolean DEFAULT_DATABASE_BUNDLE
public static boolean defaultPermissionButton
public static boolean DEFAULT_SCRIPT_ENABLED
public static boolean DEFAULT_TEMPLATES
public static boolean DEFAULT_TABLEVIEW_MULTIPLEDATA
public static java.lang.String TEMPLATE_ID
public static java.lang.String TEMPLATE_WAREHOUSE
public static java.lang.String TEMPLATE_FORM
public static java.lang.String TEMPLATE_DEFAULT
public static java.lang.String TEMPLATE_USER
public static java.lang.String TEMPLATE_PRIVATE
public static java.lang.String TEMPLATE_NAME
public static final java.lang.String ATTACHMENT_ID
public static final java.lang.String ATTACHMENT_KEYS
public static final java.lang.String ATTACHMENT_COLUMNS_KEYS
public static final java.lang.String ATTACHMENT_SOURCE_TABLE
public static final java.lang.String ATTACHMENT_DATE
public static final java.lang.String PRIVATE_ATTACHMENT
public static final java.lang.String USER
public static final java.lang.String DESCRIPTION_FILE
public static final java.lang.String SIZE
public static final java.lang.String ORIGINAL_FILE_NAME
public static final java.lang.String FILE_NAME
public static final java.lang.String ATTACHMENT_ENTITY_NAME
public static java.lang.String messageAddTemplate
public static java.lang.String messageCreateWordTemplate
public static java.lang.String messageCreateOpenOfficeTemplate
public static java.lang.String messageHelpTemplate
public static java.lang.String messageNameFieldTemplate
public static java.lang.String messageEmptyTemplate
public static java.lang.String messageInfoTemplate
public static java.lang.String messageDeletedTemplate
public static java.lang.String messageQueryDeleted
public static java.lang.String messageInsertionSucessful
public static java.lang.String messageErrorInsert
public static java.lang.String messageErrorGeneratePDF
public static final int CONFIRMATION
public static final int INPUT
public static final int MESSAGE
public static final int YES
public static final int NO
public static final int INFORMATION_MESSAGE
public static final int ERROR_MESSAGE
public static final int WARNING_MESSAGE
public static final int QUESTION_MESSAGE
public static final int FIELD_NOT_FOUND
setCurrentDate(java.lang.String) method when the data field
hasn't been found.
public static final int NOT_DATEDATAFIELD
setCurrentDate(java.lang.String) when the data field isn't a
DateDataField.
public static final int CORRECT
setCurrentDate(java.lang.String) when the operation was
successful.
protected java.lang.String f7Button
protected java.lang.String f9Button
protected java.lang.String f11Button
protected java.lang.String f12Button
public static java.lang.String orderWindowTitleKey
public static java.lang.String orderAscendingKey
public static java.lang.String descendentOrderKey
public static java.lang.String acceptButtonKey
public static java.lang.String cancelButtonKey
public static java.lang.String headButtonKey
public static java.lang.String tableWindowKey
public static final java.lang.String TIP_TABLEVIEW_SAVEPREFERENCE
protected java.lang.String helpId
protected java.util.Locale locale
protected java.util.Vector dataNavigationListeners
protected java.util.ArrayList dataRecordListeners
protected FormPermission visiblePermission
protected FormPermission enabledPermission
protected java.util.Vector tableViewColumns
init(java.util.Hashtable)
protected java.util.Vector additionalTableViewColumns
protected javax.swing.JDialog dialog
putInModalDialog()
protected javax.swing.JScrollPane scrollPanel
init(java.util.Hashtable)
protected javax.swing.JPanel bodyPanel
protected javax.swing.JTabbedPane tabPane
protected java.lang.String printingTemplateName
protected java.lang.String helpKey
protected Form.HelpPopup helpPopup
protected java.lang.String fileName
protected boolean attachment
protected boolean databaseBundle
protected boolean permissionButtonEnabled
protected boolean scriptEnabled
protected boolean templates
protected PopupPrintingTemplateList templateList
protected DynamicFormManager dynamicFormManager
protected java.util.Vector checkModifiedFieldList
protected boolean useModifiedFocusOrder
protected static java.awt.Paint titleBackgroundPaint
protected static java.awt.Color cTitleForeground
public static boolean toUppercaseTitle
protected java.lang.String originalTitle
protected java.lang.String currentTitle
protected Form.StatusBar statusBar
protected Form.FormTitleLabel formTitleLabel
protected java.util.Hashtable dataComponentList
DataComponent are
stored in. This variable provides a reference of each
DataComponent that is contained in the form. This variable is
filled when the createLists() method is called and this method must
only be called when all components have been added to the form.
protected java.lang.String entityName
protected java.lang.String xmlEntityName
protected java.util.Hashtable groupDataComponentList
protected FormManager formManager
{@link FormManager}protected java.awt.Frame parentFrame
Form is stored in
{@link FormManager}protected InteractionManager interactionManager
InteractionManager class that this form has registered.
protected java.util.Hashtable buttonList
Button that are contained in the form.
This list is filled in the createLists() method.
protected java.util.Vector internationalizeList
Internationalization.
protected javax.swing.JDialog messageWindow
protected java.util.Vector componentList
protected java.util.Vector accessFormComponentList
AccessForm interface.
protected java.util.Vector currencyComponentsList
SelectCurrencyValues interface.
protected FormBuilder formBuilder
FormBuilder reference that will be used by all components that
implement CreateForms interface.
protected DetailForm detailForm
reference where the form is contained in.
protected boolean multipleData
protected boolean buttons
{@link #init}public javax.swing.JButton nextButton
public javax.swing.JButton previousButton
public javax.swing.JButton endButton
public javax.swing.JButton startButton
public javax.swing.JButton refreshButton
public javax.swing.JButton helpButton
public javax.swing.JButton helpIdButton
public Form.TableButton tableButton
public javax.swing.JButton clearDataFieldButton
protected javax.swing.JButton reloadButton
public javax.swing.JLabel resultCountLabel
public javax.swing.JPanel buttonPanel
protected static final java.lang.String STATUS_KEY
protected static final java.lang.String COLLAPSIBLE_KEY
protected static java.lang.String[] defaultButtonPanelPosition
public static java.lang.String originalButtonPosition
public static java.lang.String defaultButtonPosition
public static boolean useOriginalButtonPosition
protected java.util.Hashtable buttonPanelObjects
protected javax.swing.JPanel newButtonPanel
{@link #addControls}public javax.swing.ImageIcon nextIcon
public javax.swing.ImageIcon previousIcon
public javax.swing.ImageIcon endIcon
public javax.swing.ImageIcon startIcon
public javax.swing.ImageIcon orderIcon
public javax.swing.ImageIcon printIcon
public javax.swing.ImageIcon refreshIcon
public javax.swing.ImageIcon attachmentIcon
public javax.swing.ImageIcon databaseBundleIcon
public javax.swing.ImageIcon scriptIcon
public java.lang.String deleteButtonText
public javax.swing.JButton printButton
public ButtonSelectionInternationalization printTemplateButton
protected java.awt.event.ActionListener printListener
public ButtonSelectionInternationalization attachmentButton
protected javax.swing.JButton permissionButton
protected javax.swing.JButton databaseBundleButton
protected javax.swing.JButton scriptButton
protected ApplicationPermission permissionButtonApplicationPermission
ApplicationPermission reference used to check the permission of
permissionButton
protected Entity attachmentEntity
protected Entity ePrintingTemplate
protected java.util.Hashtable totalDataList
protected int currentIndex
protected java.lang.Object parentKeyValue
protected java.util.Vector setValuesOrder
protected int vectorSize
protected java.lang.String resourcesFileName
protected java.util.ResourceBundle resourcesFile
public java.awt.event.ActionListener previousButtonListener
public java.awt.event.ActionListener nextButtonListener
public java.awt.event.ActionListener startButtonListener
public java.awt.event.ActionListener endButtonListener
public com.ontimize.gui.Form.FormAction refreshButtonListener
public java.awt.event.ActionListener tableButtonListener
protected OTreeNode associatedNode
protected javax.swing.tree.TreePath associatedPath
protected Table table
protected javax.swing.JDialog tableWindow
protected java.util.Vector keys
protected java.util.Vector parentKeys
protected java.lang.String modalDialogTitleKey
protected boolean restricted
protected Form.SelColumnsDialog selColumnsDialog
protected SubForm subForm
SubForm where the form is contained in
| Constructor Detail |
public Form(java.util.Hashtable params)
Hastable
params - | Method Detail |
public static void setDefaultTitlePaint(java.awt.Paint paint)
paint - the Paint object to be used to generate color during the
rendering process, or nullpublic static java.awt.Paint getDefaultTitlePaint()
public static void setDefaultColorTitle(java.awt.Color c)
c - the desired Colorpublic static java.awt.Color getDefaultColorTitle()
public void setFormTitle(java.lang.String title)
public java.lang.String getFormTitle()
public java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container reference
public void init(java.util.Hashtable parameters)
Hashtable contains
the values set in the XML in which the Form is placed.
| attribute | values | default | required | meaning |
| attachment | yes/no | yes | If form attachments are implemented in the application, this parameter allows to hide the attachment button | |
| buttons | yes/no | yes | Establishes if the data navigation buttons are visible. | |
| columns | attr1;attr2;..;attrN | Establishes the list of attributes that are showed in the table view | ||
| customfocus | yes/no/attr1;attr2;...;attrn/QUERY{attr1;attr2...}-INSERT{attr1;attr2...}-UPDATE{attr1;attr2...} | yes | Establishes the focus traversal policy used. The last option sets the order in which the focus moves down the components of the form for each action(QUERY,INSERT,UPDATE). For the other components of the form that aren't included into the brackets the focus order is from left to right and top to bottom. In this option only one mode can be parameterized(e.g. QUERY{attr1;attr2} if it is wished. Into other modes the behavior is the previously described. If it is wanted that this order is setted for all actions the name of the attributes are inserted into brackets. | |
| entity | Name of the entity related to the Form | |||
| helpid | Establishes help key uses for identify the help section dedicates a this form | |||
| helpkey | If this parameter exists the help button is displayed into the form. The parameter value is used as key for searching the resource text. | |||
| keys | List of names of the entity primary key. | |||
| multipledata | yes/no | yes | When a query with multiple results is done the table view with all results is showed if this parameter is established a true. | |
| parentkeys | colname1;colname2;..;colnameN | List of foreign key column names. | ||
| permissionbutton | yes/no | yes | no | (since 5.2067EN) Allows to hide permission button for each form individually (By default, this button appears always when permissionComponent library is included in classpath) |
| printable | true/false | true | Establishes if the form can be printed | |
| resources | Resources file name that this form going to use. Example: If you have a specific bundle file for this form with path com/app/client/formA/resources/bundle_en_US.properties. You must specify the parameter: resources=com/app/client/formA/resources/bundle |
|||
| scroll | yes/no | yes | Establishes if the form body will show the scrollbars when the components don't have enough space | |
| setvalueorder | attr1;attr2;..attrN | The form doesn't guarantee the order in which the fields will be filled. If a field value is required by another one (as a parentKey of a ReferenceDataField), an error could be produced. In principle, the default filler should be right in most cases, but with this parameter the filler order can be established. It isn't necessary to establish every field attribute. The attributes specified in this parameter are filled first. | ||
| status | yes/no | yes | Establishes if the form has a status bar (Part that shows the title in the top of form) | |
| tableviewscrollh | yes/no | no | Establishes if the table view has a horizontal scroll | |
| template | Establishes the file name of template used to print the form data | |||
| templates | yes/no | yes | If form templates are implemented in the application, this parameter allows to hide the template printing button | |
| title | Establishes the value of the form title (placed in status container) that is displayed in the top of the form | |||
| bgcolor | A color name defined in the ColorConstants or a RGB value (like 0;0;0) | The default look and feel background color | no | Sets the color to use in the form background |
| bgimage | A image resource | no | The background image | |
| nextbuttonicon | no | Path to this form icon | ||
| previousbuttonicon | no | Path to this form icon | ||
| endbuttonicon | no | Path to this form icon | ||
| startbuttonicon | no | Path to this form icon | ||
| printbuttonicon | no | Path to this form icon | ||
| refreshbuttonicon | no | Path to this form icon | ||
| attachbuttonicon | no | Path to this form icon | ||
| tablebuttonicon | no | Path to this form icon | ||
| cleardatafieldbuttonicon | no | Path to this form icon | ||
| borderbuttons | default/none/raised/lowered or a color defined in
ColorConstants. Moreover, it is also allowed a border defined in
#BorderManager |
no | The border for buttons in Form | |
| highlightbuttons | yes/no | no | no | Sets the highlight in button property when mouse is entered. See
AbstractButton#setContentAreaFilled(boolean)). This parameter
requires opaque='no'. |
| opaquebuttons | yes/no | no | no | Data field opacity condition for Form buttons |
| resultcountfont | A string like : 'Arial-BOLD-18' (See #Font.decode()) | Font for result count label that show the number of records in Form | ||
| resultcountfg | Color for foreground that shows the result count label. | |||
| statusborder | Border for status (title of form). | |||
| buttonpanelcolor | Color for button panel. | |||
| statusfont | A string like : 'Arial-BOLD-18' (See #Font.decode()) | Font for status bar (title of form) | ||
| buttonposition | button1;button2;status;...;collapsible(button3;button4);...;buttonn | Keys for buttons and status. Allow to define the both Form buttons and status(title) order. | ||
| tableviewminrowheight | 8 | no | The minimum row height for each row in table that is showed when user presses twice to Query Button. | |
| margin | no | Indicates the Form margin. |
init in interface FormComponentparameters - the hashtable with pairs (Key,Value). For example:
| Key | Value |
| align | center |
| attr | attribute |
| ... | ... |
protected void addComponentsToButtonPanel(java.lang.String configuration)
protected void processCollapsibleButton(java.lang.String components,
boolean status,
int gridx)
protected void setNormalConfiguration()
protected void configureButton(javax.swing.JButton button,
java.lang.String iconPath,
boolean border,
boolean opaque,
java.awt.event.MouseListener highlightListener)
public java.lang.String getPrintingTemplateName()
null
String with the printing template name.public void setFormBuilder(FormBuilder builder)
FormBuilder that will be used by the
components of this Form that implement CreateForms
interface
setFormBuilder in interface CreateForms
public void add(java.awt.Component component,
java.lang.Object constraints)
component - the component to be addedconstraints - an object expressing layout constraints for this componentpublic void remove(java.awt.Component component)
public javax.swing.JPanel getBodyPanel()
public java.util.Hashtable getDataComponentList()
public void deleteDataComponentList()
public void createLists()
protected void scanComponents(java.awt.Container container,
boolean onlyReferenceDataFields)
container - onlyReferenceDataFields - public void updateReferencesLocator()
public Button getButton(java.lang.String key)
key - the key of the button requested
Button with this keypublic java.lang.Object getDataFieldValue(java.lang.String attribute)
attribute - the data field attribute to be obtained the value
Object with the data field value.public java.lang.Object getDataFieldValueFromFormCache(java.lang.String attribute)
For example, in a form with data, if a user changes a data field the new
value will be in form data field but the old value is stored in form data
cache until the form is update with the call to method
updateDataFields(java.util.Hashtable)
attribute - the data field attribute where the value is obtained from
Object with the data field value from the form
data cachepublic DataComponentGroup getGroupReference(java.lang.String attribute)
DataComponentGroup reference
attribute - DataComponentGroup attribute to be obtained the
reference
DataComponentGroup referencepublic FormComponent getElementReference(java.lang.String attribute)
FormComponent reference. To find a component in a form
is necessary that the component implements IdentifiedElement
attribute - the data field attribute to be obtained the reference
public DataComponent getDataFieldReference(java.lang.String attribute)
attribute -
DataComponent referenceprotected java.lang.String getAttributeName(java.lang.Object attribute)
attribute -
public void updateDataFields(java.util.Hashtable data)
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.
data - protected void updateDataFieldsEDTh(java.util.Hashtable data)
public void updateDataFields(java.util.Hashtable data,
int currentIndex)
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.
data - currentIndex - protected void setFormValues(java.util.Hashtable data)
data - a Hashtable with the values for establish.public void updateDataFields(int index)
index - a index of the data record for update.protected void updateDataFields_Internal(int index)
index - a index of the data record for update.protected void updateDataFieldNavegationButton(int index)
public void deleteDataFields()
public void deleteDataFields(boolean includeNonModif)
includeNonModif - false if only the modifiable components should be deletedpublic java.lang.Object getParentKeyValue()
This method must only be used internally by the detail form when the form is opened from a table. This method considers that only a simple parent key can exist. If the parent key is formed by multiple columns, this method will only return one of theirs values.
getParentKeyValues()public java.util.Hashtable getParentKeyValues()
public void setParentKeyValue(java.lang.String attribute,
java.lang.Object value)
This method must only be used internally by the detail form when the form
is opened from a table. This method considers that only a simple parent
key can exist. If multiple parent keys values are established by this
method, only the last call to this method will be stored internally and
will be returned in the getParentKeyValue
getParentKeyValues()public void setParentKeyValues(java.util.Hashtable values)
values - a Hashtablepublic void enableDataField(java.lang.String attribute)
attribute - data component attribute to be enabled
public void enableDataField(java.lang.String attribute,
boolean requestFocus)
attribute - data component attribute to be enabledrequestFocus - true data component should request the focuspublic void disableDataField(java.lang.String attribute)
attribute - attribute of data field to be disabled
public void setModifiable(java.lang.String attribute,
boolean modifiable)
attribute - modifiable - public void enableDataFields()
public void enableDataFields(boolean modifiable)
modifiable - false if the modifiable components should not be enabledpublic void disableDataFields()
public void disableDataFields(java.lang.String except)
except - the attribute of data component that isn't disabledpublic java.util.Vector getDataFieldAttributeList()
Vector with the data field attribute list from the
formprotected java.util.Hashtable getTranslatedDataFieldLabel()
Hashtable where the attribute list and translated
text are stored in. The key of each record of the Hashtable
is the data field attribute and the value is the translated text.
Hashtable
public int message(java.lang.String message,
int messageType)
MessageDialog with the information collects from entry
parameters
message - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGE
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.lang.String message,
java.lang.Object[] args,
int messageType)
MessageDialog with the information collects from entry
parameters
message - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEargs - a extra information list is used to create the message text. The
message text is created passing the message and the args through
the resource bundle.
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Dialog owner,
java.lang.String message,
int messageType)
MessageDialog with the information collects from entry
parameters
owner - the non-null Dialog from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGE
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.lang.String message,
int messageType,
java.lang.String detail)
MessageDialog with the information collects from entry
parameters
message - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shown
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
MessageDialog with the information collects from entry
parameters
message - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shownargs - a extra information list is used to create the message text. The
message text is created passing the message and the args through
the resource bundle.
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Dialog owner,
java.lang.String message,
int messageType,
java.lang.String detail)
MessageDialog with the information collects from entry
parameters
owner - the non-null Dialog from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shown
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Dialog owner,
java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
MessageDialog with the information collects from entry
parameters
owner - the non-null Dialog from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shownargs - a extra information list is used to create the message text. The
message text is created passing the message and the args through
the resource bundle.
CLOSED_OPTION if the user closed the dialogMessageDialogpublic boolean question(java.lang.String message)
MessageDialog where the message type is established with
QUESTION_MESSAGE in.
message - the text to be shown in the MessageDialog
public boolean question(java.awt.Dialog owner,
java.lang.String message)
MessageDialog where the message type is established with
QUESTION_MESSAGE in.
message - the text to be shown in the MessageDialogowner - the non-null Dialog from which the MessageDialog is
displayed
public void setFormManager(FormManager formManager)
formManager - public FormManager getFormManager()
FormManager object that manages this form.
FormManager objectpublic java.lang.String getEntityName()
String with the entity namepublic java.awt.Frame getParentFrame()
Frame object reference. If this form is
displayed in the main frame else returns null
Frame objectpublic void setParentFrame(java.awt.Frame parentFrame)
OpenDialog
setParentFrame in interface OpenDialogparentFrame - the framepublic void enableTables()
public void enableButtons()
public void disableButtons()
public void enableButton(java.lang.String key)
key - key of the button to be enabledpublic void disableButton(java.lang.String key)
key - key of the button to be disabledpublic boolean hasDataAllFields()
public boolean existEmptyRequiredDataField()
public java.util.Vector getEmptyRequiredDataField()
public java.util.Hashtable getDataFieldValues(boolean tables)
Hashtable with the data field values from the form
that aren't empty. The keys of the Hashtable are the data
field attributes. If the entry parameter is true, the table values will be
returned too.
tables - true the table values are returned
Hashtable with the data field values
public java.util.Hashtable getDataFieldValues(boolean tables,
boolean empty)
Hashtable with the data field values from the form
that aren't empty. The keys of the Hashtable are the data
field attributes.
If the first entry parameter is true, the table values will be returned
too. If the second entry parameter is true, the empty data field will be
returned with a NullValue value
tables - true the table values are returnedempty - true the empty data field are returned with a NullValue
value
Hashtable with all data field values
public void setDataFieldValue(java.lang.Object attribute,
java.lang.Object value)
attribute parameter.
attribute - value - public java.util.Vector getTextsToTranslate()
Internationalization
getTextsToTranslate in interface Internationalizationpublic void setResourceBundle(java.util.ResourceBundle resources)
Internationalization
setResourceBundle in interface Internationalizationresources - the new language bundle.public int getCurrentIndex()
public java.util.Hashtable getDataList()
Hashtable with the whole form data.public int getIndex(java.util.Hashtable keyValues)
keyValues - the key values of the record
public boolean isEmpty(java.lang.String attribute)
attribute -
public void setInteractionManager(InteractionManager formInteractionManager)
public InteractionManager getInteractionManager()
InteractionManager object that this form has
registered
InteractionManager registered in this formpublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface Internationalizationpublic java.lang.String getDataFieldText(java.lang.String attribute)
attribute -
String with the text of the form data fieldpublic java.util.Hashtable getDataFieldText()
Hashtable with the text of all data fields.public java.util.Hashtable getDataFieldText(java.util.Vector attributeList)
attributeList - attribute list of the requested data fields to obtain their text
value
Hashtable with the values of all data fields. The
keys are the attributes of the data fields and the values are the
data field text valuespublic void setCurrentIndex(int index)
public void setStatusBarText(java.lang.String text,
int timeMillis)
timeMillis parameter. If this time is 0 then the text will
show until the next change.
text - timeMillis -
public void setStatusBarText(java.lang.String text,
int timeMillis,
boolean translate)
public DetailForm getDetailComponent()
DetailForm if the form is contained in one of them. This
happens if this form is a detail form from a . In other
case this method returns null
- Returns:
- a
DetailForm where the form is contained in
public void setDetailForm(DetailForm detailForm)
DetailForm for this form
detailForm -
public void free()
throws java.lang.Exception
Freeable
free in interface Freeablejava.lang.Exception
protected void finalize()
throws java.lang.Throwable
java.lang.Throwablepublic java.util.ResourceBundle getResourceBundle()
ResourceBundlepublic java.lang.String getResourceFileName()
public int setCurrentDate(java.lang.String attribute)
attribute -
public void setCheckModifiedData(boolean check)
public boolean checkModifiedData()
DataComponent.isModified() method.
public void deleteDataField(java.lang.String attribute)
attribute - data component attribute to be deletedpublic void setTabVisible(int index)
public void setTabEnabled(int index,
boolean enabled)
public void setTabEnabled(java.lang.String title,
boolean enabled)
public void setTabVisible(java.lang.String title)
public void showCurrencyValue(int idCurrency)
showCurrencyValue in interface SelectCurrencyValuespublic java.awt.Font showAvaliableFonts(boolean supportingEuro)
FontAndEncodingSelector
showAvaliableFonts in interface FontAndEncodingSelectorpublic static boolean supportsEuroSymbol(java.awt.Font font)
Font support the Euro character
font -
public void useFont(java.awt.Font font)
FontAndEncodingSelector
useFont in interface FontAndEncodingSelectorpublic void showMe(java.awt.Component c)
protected boolean findComponentInTab(java.awt.Container container,
java.awt.Component component)
container - the container in which the components are foundcomponent - the component to find
public void setAssociatedNode(OTreeNode node)
node - public void setLinkedTreePath(javax.swing.tree.TreePath path)
path - public OTreeNode getAssociatedNode()
public javax.swing.tree.TreePath getAssociatedTreePath()
TreePath associates a this form or null if the tree don't existpublic java.util.Vector getDataComponents()
Vector with a data component listpublic javax.swing.JDialog putInModalDialog()
putInModalDialog(Component parentComponent)
JDialog if it doesn't contain in any
window.
The dialog parent is the frame that has been established in the form
manager for this form. A JDialog reference is stored in the
form
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}public java.lang.String getSizeDialogPreferenceKey()
public javax.swing.JDialog putInModalDialog(java.awt.Frame owner)
JDialog if it doesn't contain in any
window.
A JDialog reference is stored in the form
owner - the parent Frame for the dialog
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}public javax.swing.JDialog putInModalDialog(java.awt.Window window)
JDialog if it doesn't contain in any
window.
A JDialog reference is stored in the form
window - the parent Window for the dialog
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}public javax.swing.JDialog putInModalDialog(java.awt.Component parentComponent)
JDialog if it doesn't contain in any
window.
A JDialog reference is stored in the form
parentComponent - the parent Component for the dialog
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}public javax.swing.JDialog putInModalDialog(java.awt.Dialog owner)
JDialog if it doesn't contain in any
window.
A JDialog reference is stored in the form
owner - the parent Dialog for the dialog
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}public javax.swing.JDialog putInModalDialog(java.lang.String title)
putInModalDialog(String, Component)
JDialog if it doesn't contain in any
window.
The dialog parent is the frame that has been established in the form
manager for this form. A JDialog reference is stored in the
form
title - a String with the dialog title.
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}
public javax.swing.JDialog putInModalDialog(java.lang.String title,
java.awt.Component parent)
JDialog if it doesn't contain in any
window.
A JDialog reference is stored in the form
title - a String with the dialog title.parent - the parent Component for the dialog
JDialog where the form is contained in or null if
the form is contained in a window.{@link #getJDialog}public javax.swing.JDialog getJDialog()
JDialog object reference that has been created in
the call to method putInModalDialog().
JDialog object reference
public boolean setAdvancedQueryMode(java.lang.String attr,
boolean enable)
attr - The component attribute to be change the advanced query modeenable - true to make the advancedQuery mode enable ; false to make it
disable
public void setAdvancedQueryModeAll(boolean enable)
enable - true to make the advancedQuery mode enable ; false to make it
disable
protected void createTableViewTable()
public void addComponentsToInternationalizeList(java.awt.Component component,
boolean setBundle)
Internationalization. If the component is a container
then adds all the components inside it that implements
Internationalization too
component - Component to add to the listsetBundle - When true set the bundle to the componentpublic void showTableView()
public Table getTableFromTableView()
Table where the result query are stored ininit(java.util.Hashtable)public java.awt.LayoutManager getLayout()
public void initPermissions()
initPermissions in interface SecureElementpublic void setFileName(java.lang.String archiveName)
archiveName - the file namepublic java.lang.String getArchiveName()
protected boolean checkAccessPermission(java.lang.String attribute)
attribute - the String of the attribute to be checked
- Returns:
- true if there aren't restrictions
public java.util.Vector getKeys()
Vector with the list of keyspublic java.util.Vector getParentKeys()
init(java.util.Hashtable)protected void registerKeyBindings()
In the form, the keyboard action that is registered by default is the refresh button action. The action is registered in 'F5' key.
protected void unregisterKeyBindings()
public void disableTables()
public void disableSubForms()
public void addDataRecordListener(DataRecordListener listener)
DataRecordEvent
when a record has been modified correctly.
listener - the DataRecordListener to registerpublic void removeDataRecordListener(DataRecordListener listener)
DataRecordEvent.
listener - the DataRecordListener to be removedpublic void fireDataRecordChange(DataRecordEvent e)
e - the event to be forwardedpublic void addDataNavigationListener(DataNavigationListener listener)
DataNavigationEvent when there are multiple records and the
current record is changed using the navigation buttons.
listener - the DataNavigationListener to registerprotected boolean fireDataWillChange(DataNavigationEvent e)
DataNavigationEvent is forwarded.
e - the event to be forwardedprotected void fireDataChanged(DataNavigationEvent e)
DataNavigationEvent is forwarded.
e - the event to be forwardedpublic int getFormCacheSize()
public void deleteRecordFromFormCache(int index)
index - index of the record to be deletedpublic boolean requestFocusForFirstComponent()
protected java.awt.Point getLocationInForm(java.awt.Component component)
component - the Component
Point with the location of the component's top-left
cornerpublic boolean isFocusTraversable()
public boolean requestDefaultFocus()
protected EntityResult query(int index)
index -
EntityResult resulting of the query.
public int message(java.awt.Window owner,
java.lang.String message,
int messageType)
owner - the non-null Window from which the MessageDialog is
displayedmessage - a String with the text to showmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGE
CLOSED_OPTION if the user closed the dialog
public int message(java.awt.Window owner,
java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
MessageDialog with the information collects from entry
parameters
owner - the non-null Window from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shownargs - a extra information list is used to create the message text. The
message text is created passing the message and the args through
the resource bundle.
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Window owner,
java.lang.String message,
int messageType,
java.lang.Object[] args)
MessageDialog with the information collects from entry
parameters
owner - the non-null Window from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEargs - a extra information list is used to create the message text. The
message text is created passing the message and the args through
the resource bundle.
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Frame owner,
java.lang.String message,
int messageType)
MessageDialog with the information collects from entry
parameters
owner - the non-null Frame from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGE
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Frame owner,
java.lang.String message,
int messageType,
java.lang.String detail)
MessageDialog with the information collects from entry
parameters
owner - the non-null Frame from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shown
CLOSED_OPTION if the user closed the dialogMessageDialog
public int message(java.awt.Frame f,
java.lang.String message,
int messageType,
java.lang.String detail,
java.lang.Object[] args)
MessageDialog with the information collects from entry
parameters
f - the non-null Frame from which the MessageDialog is
displayedmessage - a String with the text to show in the
MessageDialogmessageType - the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE,
QUESTION_MESSAGE, or PLAIN_MESSAGEdetail - a String with more detailed information that can be
shown in the MessageDialog to press a detail
button. If detail parameter is null, the detail button will not
be shownargs - a extra information list is used to create the message text.
CLOSED_OPTION if the user closed the dialogMessageDialog
public EntityResult query(java.util.Hashtable keysValues,
java.util.Vector attributes)
keysValues parameter. The
attributes defines which attributes must be recovered, and
keysValues specifies which set of records must be recovered.
keysValues - a Hashtable specifying conditions that must comply the set of
records returned. Cannot be null.attributes - a list of columns or attributes that must be recovered for each
record returned. Cannot be null. If empty, all attributes should
be returned.
public EntityResult query(int index,
java.util.Vector attributes)
attributes defines which attributes must be recovered, and
index specifies the record of the total data cache that will
be used as query condition.
index - a int that specify the record of the total data
cache.attributes - a list of columns or attributes that must be recovered for each
record returned. Cannot be null. If empty, all attributes should
be returned.
public void refreshCurrentDataRecord()
protected void isCreatedCheckModifiedFieldList()
public void setCheckModifiedDataField(java.lang.String attr,
boolean enable)
attr - data component attribute to be established the data modified
checking.enable - true to make the checking enable; false to make it disablepublic void setDataFieldValues(java.util.Hashtable values)
values - a Hashtable with the values to be established. The
keys of the Hashtable are the attributes of each
data field and the values of the Hashtable are the
value of each data field.public DynamicFormManager getDynamicFormManager()
DynamicFormManager object that is assigned to this
form.
public void setDynamicFormManager(DynamicFormManager dynamicfm)
DynamicFormManager object for this form.
dynamicfm - public void registerApplicationPreferencesListener()
ApplicationPreferencesListener so that they will receive
PreferenceEvent when some preference change in the application.
protected java.util.Vector loadTableViewPreference(ApplicationPreferences prefs)
prefs - a ApplicationPreferences instance that manager the
application preferences
Vector with the column list to table view table.protected void saveTableViewPreferenceForm(java.util.Vector columns)
columns - a Vector with the column list to table view table.protected java.lang.String getTableViewPreferenceKey()
public void initPreferences(ApplicationPreferences ap,
java.lang.String user)
initPreferences in interface HasPreferenceComponentprotected java.util.Hashtable getDataFieldTemplateValues()
Hashtable with the values of all data fields. The
keys are the attributes of the data fields and the values are the
data in text format
public void fillODT(java.io.File inputFile)
throws java.lang.Exception
java.lang.Exception
public void fillPDF(java.io.File inputFile,
java.io.File outputFile)
throws java.lang.Exception
inputFile - the PDF file to be filledoutputFile - the filled PDF file
java.lang.Exception
protected void fillDocComb(java.io.File file)
throws java.lang.Exception
file - the WORD file to be filled
java.lang.Exception
public void fillDocSust(java.io.File file)
throws java.lang.Exception
file - the WORD file to be filled
java.lang.Exceptionprotected void installPrintingTemplatesButton()
protected void installDatabaseBundleButton()
protected boolean checkApplicationBundleButton()
protected boolean checkApplicationPermissionButton()
protected void installPermissionButton()
protected void installAttachmentButton()
protected boolean checkApplicationScriptButton()
protected void installScriptButton()
public void setDataFieldValueToFormCache(java.lang.Object attr,
java.lang.Object value)
public void updateDataListDataCurrentRecord(java.util.Hashtable attributesValues)
public void updateDataListDataCurrentRecord(java.util.Hashtable attributesValues,
boolean dataFieldRefresh)
public void disableDataField(java.lang.Object attr)
attr - attribute of data field to be disabledpublic void hideDataField(java.lang.Object attr)
attr - a Object with the data field attribute that will be
hiddenpublic void showDataField(java.lang.Object attr)
attr - a Object with the data field attribute that will be
shownpublic void showButton(java.lang.String key)
key - a String with the button key that will be shownpublic void hideButton(java.lang.String key)
key - a String with the button key that will be hiddenpublic void hideElement(java.lang.String attr)
attr - a String with the form component attribute that will be hiddenpublic void showElement(java.lang.String attr)
attr - a String with form component attribute that will be hidden
public void setRequired(java.lang.Object attributes,
boolean required)
attributes - a Object with the data field attributerequired - true if the data field is required.public void setAllModificable(boolean modif)
modif - true if all data components are modifiable.
public int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int page)
print in interface java.awt.print.Printablepublic java.lang.String getHelpIdString()
getHelpIdString in interface HasHelpIdComponentpublic void installHelpId()
installHelpId in interface HasHelpIdComponentpublic void resetFocusOrder()
protected void findComponentInContainer(java.awt.Container container,
java.util.List result)
Container and filles the
List with this components.
container - Container where the components are foundresult - List in which the components are stored
protected void findVisibleComponentInContainer(java.awt.Container container,
java.util.List result)
Container and filles the
List with this components.
container - Container where the components are foundresult - List in which the components are storedpublic boolean isFocusCycleRoot()
protected java.util.List getComponentsInOrderFocusInBody()
Vector with the focusable component references from
the form body.public java.util.List getComponentsInOrderFocus()
Vector with the focusable component references from
the form.protected java.util.Vector getComponentsAndLabelsListInOrderTopDown()
Vector with the component references from the form.
public void printingFormWithDefaultTemplate()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.StringBuffer getDefaultXMLTemplate()
This method is used when the template parameter isn't defined and then the form needs create its xml template.
StringBuffer with the template xmlpublic boolean isRestricted()
isRestricted in interface SecureElementpublic java.lang.String getQueryButtonKey()
String with the key of the query buttonpublic java.lang.String getInsertButtonKey()
String with the key of the insert buttonpublic java.lang.String getUpdateButtonKey()
String with the key of the update buttonpublic java.lang.String getDeleteButtonKey()
String with the key of the delete buttonpublic void setEntityName(java.lang.String name)
name - a String with the entity namepublic void resetEntityName()
public void addColumnsToTableView(java.util.Vector cols)
cols - the column list to be addedpublic void resetTableViewColumns()
public Button[] getButtons()
public void disableHyperlinkComponents()
public void enableHyperlinkComponents()
public void addControls(javax.swing.JComponent c)
c - the component to be addedpublic java.util.List getComponentList()
List with the component references from the form.public boolean isCustomFocusEnabled()
public void printTemplate(java.lang.String templateURI,
java.lang.String entity,
java.lang.String title)
throws java.lang.Exception
templateURI - URI in where the template isentity - entity name of the table to print; null if there isn't table to
printtitle -
java.lang.Exception
public void printTemplate(java.lang.String templateURI,
java.lang.String entity,
java.lang.String title,
boolean texts)
throws java.lang.Exception
templateURI - URI in where the template isentity - entity name of the table to print; null if there isn't table to
printtitle - texts - true use the getDataFieldText(java.lang.String) method for obtain the
data; false use the getDataFieldValues(boolean) method.
java.lang.Exceptionpublic javax.swing.JScrollPane getScrollPane()
JScrollPane object when the body form is contained
in. If the 'scroll' parameter in the xml description is established to
'no' the scrollbars are never showed
init(java.util.Hashtable)public void selectTableViewColumns()
protected java.util.ArrayList getVisibleDataComponentAttributes()
ArrayList with all visible componentspublic SubForm getSubForm()
SubForm component if this form is contained in one of
them
SubForm objectpublic javax.swing.JButton getPermissionButton()
public javax.swing.JButton getDatabaseBundleButton()
public javax.swing.JButton getScriptButton()
public Form.StatusBar getStatusBar()
public javax.swing.JPanel getButtonPanel()
public java.util.Vector getNotQueriedDataFieldAttributes()
public void clearNotQueriedTabs()
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||