public class Form extends JPanel implements FormComponent, CreateForms, OpenDialog, Freeable, SelectCurrencyValues, FontAndEncodingSelector, SecureElement, HasPreferenceComponent, Printable, HasHelpIdComponent
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.
| Modifier and Type | Class and Description |
|---|---|
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 |
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static String |
acceptButtonKey
GUI text
|
protected Vector |
accessFormComponentList
Component list that implement
AccessForm interface. |
protected Vector |
additionalTableViewColumns
Column list that are added to default column list from table view.
|
protected OTreeNode |
associatedNode
TreeNode associates with this form
|
protected TreePath |
associatedPath
Path associates with this form
|
protected boolean |
attachment |
static String |
ATTACHMENT
Attribute name allowed in the XML.
|
static String |
ATTACHMENT_COLUMNS_KEYS
Constants used to form attachment
|
static String |
ATTACHMENT_DATE
Constants used to form attachment
|
static String |
ATTACHMENT_ENTITY_NAME
Constants used to form attachment
|
static String |
ATTACHMENT_ID
Constants used to form attachment
|
static String |
ATTACHMENT_KEYS
Constants used to form attachment
|
static 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())
|
ImageIcon |
attachmentIcon |
protected JPanel |
bodyPanel
Main panel where the form is contained in
|
protected boolean |
borderbuttons |
protected Hashtable |
buttonList
Button list that implement
Button that are contained in the form. |
JPanel |
buttonPanel
Panel where the buttons are contained in
|
protected Hashtable |
buttonPanelObjects |
protected boolean |
buttons
Establishes if the buttons are displayed in the form.
|
static String |
BUTTONS
Attribute name allowed in the XML.
|
static String |
cancelButtonKey
GUI text
|
protected Vector |
checkModifiedFieldList
Modified field list
|
JButton |
clearDataFieldButton
Button that clear all data field values
|
protected static String |
COLLAPSIBLE_KEY |
static String |
COLUMNS
Attribute name allowed in the XML.
|
protected 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 Color |
cTitleForeground
Color user to draw the title
|
protected Vector |
currencyComponentsList
Component list that implement
SelectCurrencyValues interface. |
protected int |
currentIndex
Index of current record
|
protected String |
currentTitle |
static String |
CUSTOMFOCUS
Attribute name allowed in the XML.
|
static String |
DATABASE_BUNDLE
Attribute name allowed in the XML to configure or not the database bundle
configuration button.
|
protected boolean |
databaseBundle |
protected JButton |
databaseBundleButton |
ImageIcon |
databaseBundleIcon |
protected Hashtable |
dataComponentList
Hashtable where the components that implement
DataComponent are
stored in. |
protected Vector |
dataNavigationListeners
List where the navigation listeners are stored in
|
protected 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 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 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 String |
defaultButtonPosition |
static int |
defaultFormButtonSize
llt size for status bar buttons (navigation, delete fields, ...).
|
static boolean |
defaultOpaqueButtons |
static boolean |
defaultPermissionButton |
static String |
defaultScriptButtonTip |
static int |
defaultTableViewMinRowHeight |
String |
deleteButtonText |
static String |
descendentOrderKey
GUI text
|
static String |
DESCRIPTION_FILE
Constants used to form attachment
|
protected IDetailForm |
detailForm
reference where the form is contained in. |
protected JDialog |
dialog
Dialog window where the form is contained in. see
putInModalDialog() |
static int |
DOCX_TEMPLATES
Identifies the filling type will be used to fill the word templates.
|
protected DynamicFormManager |
dynamicFormManager |
protected FormPermission |
enabledPermission
Enabled form permission
|
JButton |
endButton
Navigation button
|
ActionListener |
endButtonListener
Navigation listener
|
ImageIcon |
endIcon |
static String |
ENTITY
Attribute name allowed in the XML.
|
protected 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 String |
f11Button
Key of the update button
|
protected String |
f12Button
Key of the delete button
|
protected String |
f7Button
Key of the query button
|
protected 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 String |
FILE_NAME
Constants used to form attachment
|
protected String |
fileName
Form file name
|
static String |
FORM
The name of class.
|
protected static String |
FORM_DATA |
static String |
FORMBODYPANEL
The name of class.
|
protected FormBuilder |
formBuilder
FormBuilder reference that will be used by all components that
implement CreateForms interface. |
static String |
FORMBUTTONPANEL
The name of class.
|
protected IFormManager |
formManager
Form manager reference where the form is contained in.
|
static String |
FORMSCROLLPANE
The name of class.
|
protected Form.FormTitleLabel |
formTitleLabel |
protected Hashtable |
groupDataComponentList
List where the group data component is stored in.
|
static String |
headButtonKey
GUI text
|
static String |
HELP_ID
Attribute name allowed in the XML.
|
JButton |
helpButton |
protected String |
helpId |
JButton |
helpIdButton |
protected String |
helpKey |
static 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 Vector |
internationalizeList
Component list that implement
Internationalization. |
protected Vector |
keys |
static String |
KEYS
Attribute name allowed in the XML.
|
protected MouseListener |
listenerHighlightButtons |
protected Locale |
locale |
protected static String |
M_RELOAD_FORM |
static int |
MESSAGE |
static String |
messageAddTemplate
GUI text
|
static String |
messageCreateDocxTemplate
GUI text
|
static String |
messageCreateOpenOfficeTemplate
GUI text
|
static String |
messageCreateWordTemplate
GUI text
|
static String |
messageDeletedTemplate
GUI text
|
static String |
messageEmptyTemplate
GUI text
|
static String |
messageErrorGeneratePDF
GUI text
|
static String |
messageErrorInsert
GUI text
|
static String |
messageHelpTemplate
GUI text
|
static String |
messageInfoTemplate
GUI text
|
static String |
messageInsertionSucessful
GUI text
|
static String |
messageNameFieldTemplate
GUI text
|
static String |
messageQueryDeleted
GUI text
|
protected JDialog |
messageWindow |
protected String |
modalDialogTitleKey |
static String |
MULTIPLE_DATA
Attribute name allowed in the XML.
|
protected boolean |
multipleData |
protected JPanel |
newButtonPanel
Panel where the new buttons are contained in
|
JButton |
nextButton
Navigation button
|
ActionListener |
nextButtonListener
Navigation listener
|
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 String |
orderAscendingKey
GUI text
|
ImageIcon |
orderIcon |
static String |
orderWindowTitleKey
GUI text
|
static String |
ORIGINAL_FILE_NAME
Constants used to form attachment
|
static String |
originalButtonPosition |
protected String |
originalTitle |
static String |
PARENT_KEYS
Attribute name allowed in the XML.
|
protected Frame |
parentFrame
Variable where the Frame of this
Form is stored in |
protected Vector |
parentKeys |
protected Object |
parentKeyValue |
static String |
PERMISSION_BUTTON |
protected JButton |
permissionButton
Button that show the permission component
|
protected ApplicationPermission |
permissionButtonApplicationPermission
ApplicationPermission reference used to check the permission of
permissionButton |
protected boolean |
permissionButtonEnabled |
JButton |
previousButton
Navigation button
|
ActionListener |
previousButtonListener
Navigation listener
|
ImageIcon |
previousIcon |
static String |
PRINTABLE
Attribute name allowed in the XML.
|
JButton |
printButton
Button that print used the default printing xml template
|
ImageIcon |
printIcon |
protected String |
printingTemplateName
Variable where the printing template name is stored in
|
protected ActionListener |
printListener
Listener of the printButton
|
ButtonSelectionInternationalization |
printTemplateButton
Button that manage the printing template
|
static String |
PRIVATE_ATTACHMENT
Constants used to form attachment
|
static int |
QUESTION_MESSAGE
Used for questions.
|
JButton |
refreshButton |
com.ontimize.gui.Form.FormAction |
refreshButtonListener
Refresh button listener
|
ImageIcon |
refreshIcon |
static boolean |
RELOAD_BUTTON_VISIBLE
Establishes if the reload button is created when the form is built.
|
protected JButton |
reloadButton |
static String |
RESOURCES
Attribute name allowed in the XML.
|
protected ResourceBundle |
resourcesFile |
protected String |
resourcesFileName |
protected boolean |
restricted |
JLabel |
resultCountLabel
Label where the total record number is drawn in
|
static String |
SCRIPT_ENABLED |
protected JButton |
scriptButton |
protected boolean |
scriptEnabled |
ImageIcon |
scriptIcon |
static String |
SCROLL
Attribute name allowed in the XML.
|
protected 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 String |
SET_VALUE_ORDER
Attribute name allowed in the XML.
|
protected Vector |
setValuesOrder
Component list that provides the order in which the field values are
filled.
|
static String |
SIZE
Constants used to form attachment
|
JButton |
startButton
Navigation button
|
ActionListener |
startButtonListener
Navigation listener
|
ImageIcon |
startIcon |
static String |
STATUS
Attribute name allowed in the XML.
|
protected static String |
STATUS_KEY |
protected Form.StatusBar |
statusBar |
protected SubForm |
subForm
The
SubForm where the form is contained in |
protected Table |
table |
static String |
TABLE_VIEW_SCROLL_H
Attribute name allowed in the XML.
|
Form.TableButton |
tableButton
Table view button
|
ActionListener |
tableButtonListener
Table view button listener
|
protected Vector |
tableViewColumns
Default column list that is shown in table view.
|
protected int |
tableViewMinRowHeight |
protected JDialog |
tableWindow |
static String |
tableWindowKey
GUI text
|
protected JTabbedPane |
tabPane
Deprecated.
|
static String |
TEMPLATE
Attribute name allowed in the XML.
|
static String |
TEMPLATE_DEFAULT
Variable used to printing templates
|
static String |
TEMPLATE_FORM
Variable used to printing templates
|
static String |
TEMPLATE_ID
Variable used to printing templates
|
static String |
TEMPLATE_NAME
Variable used to printing templates
|
static String |
TEMPLATE_PRIVATE
Variable used to printing templates
|
static String |
TEMPLATE_USER
Variable used to printing templates
|
static 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 String |
TEMPLATES
Attribute name allowed in the XML.
|
static String |
TIP_TABLEVIEW_SAVEPREFERENCE
GUI text
|
static String |
TITLE
Attribute name allowed in the XML.
|
static boolean |
TITLE_ON_TOP
Establishes where the title is situated in.
|
protected static Paint |
titleBackgroundPaint
Paint used to draw the title background
|
protected Hashtable |
totalDataList
Total data list from this form
|
static boolean |
toUppercaseTitle |
protected boolean |
useModifiedFocusOrder |
static boolean |
useOriginalButtonPosition |
static 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 String |
xmlEntityName
Variable where the entity name is stored in.
|
static int |
YES |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEEURO, PSTDESACTIVATE_COMPONENT_BY_PERMISSION_TIPNO_SUCH_PAGE, PAGE_EXISTSABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
Form(Hashtable params)
Creates a Form instance with the parameters establishes in
Hastable |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component component,
Object constraints)
Appends the specified component to the end of this form.
|
void |
addColumnsToTableView(Vector cols)
Appends the specified column list to the default column list of the table
view.
|
protected void |
addComponentsToButtonPanel(String configuration) |
void |
addComponentsToInternationalizeList(Component component,
boolean setBundle)
Adds the component to the internationalizeList if the component
implements
Internationalization. |
void |
addControls(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(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(JButton button,
String iconPath,
boolean border,
boolean opaque,
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(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(String key)
Disables the button with this key
|
void |
disableButtons()
Disables all buttons from the form
|
void |
disableDataField(Object attr)
Disables the data field with this attribute
|
void |
disableDataField(String attribute)
Disables the data field with this attribute
|
void |
disableDataFields()
Disables all data components from form
|
void |
disableDataFields(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(String key)
Enables the button with this key
|
void |
enableButtons()
Enables all buttons from this form.
|
void |
enableDataField(String attribute)
Enables the data component from this form with this attribute.
|
void |
enableDataField(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(File file)
Fills a WORD Document using the form data.
|
void |
fillDocSust(File file)
Fills a WORD Document using the form data.
|
void |
fillODT(File inputFile) |
void |
fillPDF(File inputFile,
File outputFile)
Fills a PDF Document using the form data.
|
protected void |
finalize() |
protected void |
findComponentInContainer(Container container,
List result)
Finds all components into this
Container and filles the
List with this components. |
protected boolean |
findComponentInTab(Container container,
Component component)
Checks whether this component is contained in this container.
|
protected void |
findVisibleComponentInContainer(Container container,
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.
|
String |
getArchiveName()
Returns the form archive name
|
OTreeNode |
getAssociatedNode()
Returns the tree node associated a this form.
|
TreePath |
getAssociatedTreePath()
Returns the tree path associated a this form
|
protected String |
getAttributeName(Object attribute)
Get the string that identify an attribute.
|
JPanel |
getBodyPanel() |
Button |
getButton(String key)
Returns a button reference that has the entry parameter as key
|
Hashtable |
getButtonList() |
JPanel |
getButtonPanel() |
Button[] |
getButtons()
Returns a array of buttons with all buttons from the form.
|
List |
getComponentList()
Returns the list of component references that contains the form.
|
protected Vector |
getComponentsAndLabelsListInOrderTopDown()
Returns the list of component and label references that is contained in
the form.
|
List |
getComponentsInOrderFocus()
Returns the list of focusable component references that are contained in
the form.
|
protected List |
getComponentsInOrderFocusInBody()
Returns the list of focusable component references that are contained in
the form body.
|
Object |
getConstraints(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
|
JButton |
getDatabaseBundleButton() |
Hashtable |
getDataComponentList() |
Vector |
getDataComponents()
Returns the list of data component references that are contained in the
form.
|
Vector |
getDataFieldAttributeList()
Returns a list of data field attributes that are contained in the form
|
DataComponent |
getDataFieldReference(String attribute)
Returns the reference of the data component which has the entry parameter
as attribute
|
protected Hashtable |
getDataFieldTemplateValues()
Returns all form data field values in text format for being used in
template filling.
|
Hashtable |
getDataFieldText()
Return the text contained in every form data field.
|
String |
getDataFieldText(String attribute)
Returns the data field text which has the entry parameter as attribute.
|
Hashtable |
getDataFieldText(Vector attributeList)
Returns a text list from the data fields that are requested in the entry
parameter
|
Object |
getDataFieldValue(String attribute)
Returns the value of data component which has the entry parameter as
attribute.
|
Object |
getDataFieldValueFromFormCache(String attribute)
Returns the data component value which has the entry parameter as
attribute.
|
Hashtable |
getDataFieldValues(boolean tables)
Returns a
Hashtable with the data field values from the form
that aren't empty. |
Hashtable |
getDataFieldValues(boolean tables,
boolean empty)
Returns a
Hashtable with the data field values from the form
that aren't empty. |
Hashtable |
getDataList()
Returns the whole data list from the form
|
static Color |
getDefaultColorTitle() |
static Paint |
getDefaultTitlePaint() |
StringBuffer |
getDefaultXMLTemplate()
Returns the xml of the default template.
|
String |
getDeleteButtonKey()
Returns the key of the delete button.
|
IDetailForm |
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(String attribute)
Returns a
FormComponent reference. |
Vector |
getEmptyRequiredDataField()
Get the names (String) of all the empty required fields in the form
|
String |
getEntityName()
Returns the string with the entity name is associated with the form
|
int |
getFormCacheSize()
Returns the size of the form data cache.
|
IFormManager |
getFormManager()
Returns a
IFormManager object that manages this form. |
String |
getFormTitle() |
DataComponentGroup |
getGroupReference(String attribute)
Returns
DataComponentGroup reference |
String |
getHelpIdString() |
int |
getIndex(Hashtable keyValues)
Returns the index of the record that has the entry parameter as key
values
|
String |
getInsertButtonKey()
Returns the key of the insert button.
|
InteractionManager |
getInteractionManager()
Returns the
InteractionManager object that this form has
registered |
JDialog |
getJDialog()
Returns the
JDialog object reference that has been created
in the call to method putInModalDialog(). |
Vector |
getKeys()
Returns the key list of this form
|
LayoutManager |
getLayout()
Gets the layout manager for the form body
|
protected Point |
getLocationInForm(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.
|
Vector |
getNotQueriedDataFieldAttributes()
Checks whether exist data fields that haven't been queried
|
Frame |
getParentFrame()
Gets the parent
Frame object reference. |
Vector |
getParentKeys()
Returns a vector containing the parent key names, this is, the names set
in the XML to the attributes 'parentkey' and 'otherkeys'.
|
Object |
getParentKeyValue()
Deprecated.
|
Hashtable |
getParentKeyValues()
Returns the parent keys values
|
JButton |
getPermissionButton()
Gets the permission button if exists
|
String |
getPrintingTemplateName()
Returns the printing template name.
|
String |
getQueryButtonKey()
Returns the key of the query button.
|
ResourceBundle |
getResourceBundle()
Gets the resource bundle that contain locale-specific objects.
|
String |
getResourceFileName() |
JButton |
getScriptButton() |
JScrollPane |
getScrollPane()
Gets the
JScrollPane object when the body form is contained
in. |
Vector |
getSetValuesOrder() |
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 String |
getTableViewPreferenceKey()
Returns the string used as key to store the table view columns in the
preferences
|
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
protected Hashtable |
getTranslatedDataFieldLabel()
Returns a
Hashtable where the attribute list and translated
text are stored in. |
String |
getUpdateButtonKey()
Returns the key of the update button.
|
protected 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(String key)
Hides the button which attribute is the entry parameter.
|
void |
hideDataField(Object attr)
Hides the data field which attribute is the entry parameter.
|
void |
hideElement(String attr)
Hides the element which attribute is the entry parameter.
|
void |
init(Hashtable parameters)
Method that configures the component.
|
void |
initPermissions() |
void |
initPreferences(ApplicationPreferences ap,
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(String attribute)
Returns whether the data field which attribute is the entry parameter
hasn't data.
|
boolean |
isFocusCycleRoot() |
boolean |
isFocusTraversable() |
boolean |
isRestricted() |
protected 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(Dialog owner,
String message,
int messageType)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Dialog owner,
String message,
int messageType,
String detail)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Dialog owner,
String message,
int messageType,
String detail,
Object[] args)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Frame owner,
String message,
int messageType)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Frame owner,
String message,
int messageType,
String detail)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Frame f,
String message,
int messageType,
String detail,
Object[] args)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(String message,
int messageType)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(String message,
int messageType,
String detail)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(String message,
int messageType,
String detail,
Object[] args)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(String message,
int messageType,
Throwable exception)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(String message,
Object[] args,
int messageType)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Window owner,
String message,
int messageType)
Brings up a dialog that displays a message using a default icon
determined by the messageType parameter.
|
int |
message(Window owner,
String message,
int messageType,
Object[] args)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
message(Window owner,
String message,
int messageType,
Object[] args,
Throwable exception) |
int |
message(Window owner,
String message,
int messageType,
String detail,
Object[] args)
Shows a
MessageDialog with the information collects from entry
parameters |
int |
print(Graphics g,
PageFormat pf,
int page) |
void |
printingFormWithDefaultTemplate()
Prints the default template with the data from the form data components.
|
void |
printTemplate(String templateURI,
String entity,
String title)
Prints the template which location is defined in templateURI parameter.
|
void |
printTemplate(String templateURI,
String entity,
String title,
boolean texts)
Prints the template which location is defined in templateURI parameter.
|
protected void |
processCollapsibleButton(String components,
boolean status,
int gridx) |
JDialog |
putInModalDialog()
Deprecated.
Uses
putInModalDialog(Component parentComponent) |
JDialog |
putInModalDialog(Component parentComponent)
Puts the form in a modal
JDialog if it doesn't contain in
any window. |
JDialog |
putInModalDialog(Dialog owner)
Puts the form in a modal
JDialog if it doesn't contain in
any window. |
JDialog |
putInModalDialog(Frame owner)
Puts the form in a modal
JDialog if it doesn't contain in
any window. |
JDialog |
putInModalDialog(String title)
Deprecated.
|
JDialog |
putInModalDialog(String title,
Component parent)
Puts the form in a modal
JDialog if it doesn't contain in
any window. |
JDialog |
putInModalDialog(Window window)
Puts the form in a modal
JDialog if it doesn't contain in
any window. |
EntityResult |
query(Hashtable keysValues,
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,
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(Dialog owner,
String message)
Shows a
MessageDialog where the message type is established with
QUESTION_MESSAGE in. |
boolean |
question(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(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(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(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(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(String attr,
boolean enable)
Established if a data field, which attribute is the entry parameter, has
enabled the data modified checking.
|
void |
setComponentLocale(Locale l) |
int |
setCurrentDate(String attribute)
Method to set the current date in a DateDataField.
|
void |
setCurrentIndex(int index) |
void |
setDataFieldValue(Object attribute,
Object value)
Set the value to the form component with the attribute specified in
attribute parameter. |
void |
setDataFieldValues(Hashtable values)
Established the values in each form data field that is passed in the
entry parameter.
|
void |
setDataFieldValueToFormCache(Object attr,
Object value) |
static void |
setDefaultColorTitle(Color c)
Sets the color of the title text
|
static void |
setDefaultTitlePaint(Paint paint)
Sets the Paint attribute for the Graphics2D context of the Title
component
|
void |
setDetailForm(IDetailForm detailForm)
Sets the
DetailForm for this form |
void |
setDynamicFormManager(DynamicFormManager dynamicfm)
Sets the
DynamicFormManager object for this form. |
void |
setEntityName(String name)
Sets the entity name associated with this form
|
void |
setFileName(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(IFormManager formManager)
Sets the form manager for this form
|
void |
setFormTitle(String title) |
protected void |
setFormValues(Hashtable data)
Deprecated.
|
void |
setInteractionManager(InteractionManager formInteractionManager) |
void |
setLinkedTreePath(TreePath path)
Set the tree path associated with the form
|
void |
setModifiable(String attribute,
boolean modifiable)
Sets a data component as modifiable or not modifiable
|
protected void |
setNormalConfiguration() |
void |
setParentFrame(Frame parentFrame)
This method is called from Form for each component that implements this
interface.
|
void |
setParentKeys(Vector parentKeys)
Sets programmatically the filter fields for Form.
|
void |
setParentKeyValue(String attribute,
Object value)
Deprecated.
|
void |
setParentKeyValues(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(Object attributes,
boolean required)
Establishes whether data field which attributes is the entry parameter is
required.
|
void |
setResourceBundle(ResourceBundle resources)
Sets the language resource bundle.
|
void |
setStatusBarText(String text,
int timeMillis)
Set the text of the status bar.
|
void |
setStatusBarText(String text,
int timeMillis,
boolean translate) |
void |
setTabEnabled(int index,
boolean enabled)
Deprecated.
|
void |
setTabEnabled(String title,
boolean enabled)
Deprecated.
|
void |
setTabVisible(int index)
Deprecated.
|
void |
setTabVisible(String title)
Deprecated.
|
Font |
showAvaliableFonts(boolean supportingEuro)
Shows the available fonts in the system.
|
void |
showButton(String key)
Shows the button which key is the entry parameter.
|
void |
showCurrencyValue(String currencySymbol) |
void |
showDataField(Object attr)
Shows the data field which attribute is the entry parameter.
|
void |
showElement(String attr)
Shows the element which attribute is the entry parameter.
|
void |
showMe(Component c)
Deprecated.
|
void |
showTableView()
Shows the table view.
|
static boolean |
supportsEuroSymbol(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(Hashtable data)
Updates the values of each form data field and the values of the total
data cache with the entry parameter.
|
void |
updateDataFields(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(Hashtable data) |
void |
updateDataListDataCurrentRecord(Hashtable attributesValues) |
void |
updateDataListDataCurrentRecord(Hashtable attributesValues,
boolean dataFieldRefresh) |
void |
updateReferencesLocator()
Update the reference locator for all the reference data fields
|
void |
useFont(Font font)
Set the font to use by the object
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabled, setEnabled, setVisiblepublic static final String FORM
public static final String FORMBODYPANEL
public static final String FORMSCROLLPANE
public static final String FORMBUTTONPANEL
public static int defaultTableViewMinRowHeight
public static int defaultFormButtonSize
protected int tableViewMinRowHeight
protected MouseListener listenerHighlightButtons
public static boolean defaultBorderButtons
protected boolean borderbuttons
public static boolean defaultOpaqueButtons
protected boolean opaquebuttons
public static final String MULTIPLE_DATA
public static final String TEMPLATES
public static final String ATTACHMENT
public static final String DATABASE_BUNDLE
public static final String SCRIPT_ENABLED
public static final String PERMISSION_BUTTON
public static String defaultScriptButtonTip
public static final String TITLE
public static final String TEMPLATE
public static final String PRINTABLE
public static final String ENTITY
public static final String SET_VALUE_ORDER
public static final String SCROLL
public static final String CUSTOMFOCUS
public static final String HELPKEY
public static final String STATUS
public static final String BUTTONS
public static final String RESOURCES
public static final String PARENT_KEYS
public static final String KEYS
public static final String HELP_ID
public static final String TABLE_VIEW_SCROLL_H
public static final String COLUMNS
protected static final String M_RELOAD_FORM
public static int WORD_TEMPLATES
public static int DOCX_TEMPLATES
protected static final String FORM_DATA
public static boolean TITLE_ON_TOP
public static 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 String TEMPLATE_ID
public static String TEMPLATE_WAREHOUSE
public static String TEMPLATE_FORM
public static String TEMPLATE_DEFAULT
public static String TEMPLATE_USER
public static String TEMPLATE_PRIVATE
public static String TEMPLATE_NAME
public static final String ATTACHMENT_ID
public static final String ATTACHMENT_KEYS
public static final String ATTACHMENT_COLUMNS_KEYS
public static final String ATTACHMENT_SOURCE_TABLE
public static final String ATTACHMENT_DATE
public static final String PRIVATE_ATTACHMENT
public static final String USER
public static final String DESCRIPTION_FILE
public static final String SIZE
public static final String ORIGINAL_FILE_NAME
public static final String FILE_NAME
public static final String ATTACHMENT_ENTITY_NAME
public static String messageAddTemplate
public static String messageCreateWordTemplate
public static String messageCreateDocxTemplate
public static String messageCreateOpenOfficeTemplate
public static String messageHelpTemplate
public static String messageNameFieldTemplate
public static String messageEmptyTemplate
public static String messageInfoTemplate
public static String messageDeletedTemplate
public static String messageQueryDeleted
public static String messageInsertionSucessful
public static String messageErrorInsert
public static 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 String f7Button
protected String f9Button
protected String f11Button
protected String f12Button
public static String orderWindowTitleKey
public static String orderAscendingKey
public static String descendentOrderKey
public static String acceptButtonKey
public static String cancelButtonKey
public static String headButtonKey
public static String tableWindowKey
public static final String TIP_TABLEVIEW_SAVEPREFERENCE
protected String helpId
protected Locale locale
protected Vector dataNavigationListeners
protected ArrayList dataRecordListeners
protected FormPermission visiblePermission
protected FormPermission enabledPermission
protected Vector tableViewColumns
init(java.util.Hashtable)protected Vector additionalTableViewColumns
protected JDialog dialog
putInModalDialog()protected JScrollPane scrollPanel
init(java.util.Hashtable)protected JPanel bodyPanel
@Deprecated protected JTabbedPane tabPane
protected String printingTemplateName
protected String helpKey
protected Form.HelpPopup helpPopup
protected String fileName
protected boolean attachment
protected boolean databaseBundle
protected boolean permissionButtonEnabled
protected boolean scriptEnabled
protected boolean templates
protected PopupPrintingTemplateList templateList
protected DynamicFormManager dynamicFormManager
protected Vector checkModifiedFieldList
protected boolean useModifiedFocusOrder
protected static Paint titleBackgroundPaint
protected static Color cTitleForeground
public static boolean toUppercaseTitle
protected String originalTitle
protected String currentTitle
protected Form.StatusBar statusBar
protected Form.FormTitleLabel formTitleLabel
protected 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 String entityName
protected String xmlEntityName
protected Hashtable groupDataComponentList
protected IFormManager formManager
IFormManager}protected Frame parentFrame
Form is stored inIFormManager}protected InteractionManager interactionManager
InteractionManager class that this form has registered.protected Hashtable buttonList
Button that are contained in the form.
This list is filled in the createLists() method.protected Vector internationalizeList
Internationalization.protected JDialog messageWindow
protected Vector componentList
protected Vector accessFormComponentList
AccessForm interface.protected Vector currencyComponentsList
SelectCurrencyValues interface.protected FormBuilder formBuilder
FormBuilder reference that will be used by all components that
implement CreateForms interface.protected IDetailForm detailForm
reference where the form is contained in.protected boolean multipleData
protected boolean buttons
#init}public JButton nextButton
public JButton previousButton
public JButton endButton
public JButton startButton
public JButton refreshButton
public JButton helpButton
public JButton helpIdButton
public Form.TableButton tableButton
public JButton clearDataFieldButton
protected JButton reloadButton
public JLabel resultCountLabel
public JPanel buttonPanel
protected static final String STATUS_KEY
protected static final String COLLAPSIBLE_KEY
protected static String[] defaultButtonPanelPosition
public static String originalButtonPosition
public static String defaultButtonPosition
public static boolean useOriginalButtonPosition
protected Hashtable buttonPanelObjects
protected JPanel newButtonPanel
#addControls}public ImageIcon nextIcon
public ImageIcon previousIcon
public ImageIcon endIcon
public ImageIcon startIcon
public ImageIcon orderIcon
public ImageIcon printIcon
public ImageIcon refreshIcon
public ImageIcon attachmentIcon
public ImageIcon databaseBundleIcon
public ImageIcon scriptIcon
public String deleteButtonText
public JButton printButton
public ButtonSelectionInternationalization printTemplateButton
protected ActionListener printListener
public ButtonSelectionInternationalization attachmentButton
protected JButton permissionButton
protected JButton databaseBundleButton
protected JButton scriptButton
protected ApplicationPermission permissionButtonApplicationPermission
ApplicationPermission reference used to check the permission of
permissionButton@Deprecated protected Entity attachmentEntity
@Deprecated protected Entity ePrintingTemplate
protected Hashtable totalDataList
protected int currentIndex
protected Object parentKeyValue
protected Vector setValuesOrder
protected int vectorSize
protected String resourcesFileName
protected ResourceBundle resourcesFile
public ActionListener previousButtonListener
public ActionListener nextButtonListener
public ActionListener startButtonListener
public ActionListener endButtonListener
public com.ontimize.gui.Form.FormAction refreshButtonListener
public ActionListener tableButtonListener
protected OTreeNode associatedNode
protected TreePath associatedPath
protected Table table
protected JDialog tableWindow
protected Vector keys
protected Vector parentKeys
protected String modalDialogTitleKey
protected boolean restricted
protected Form.SelColumnsDialog selColumnsDialog
public Form(Hashtable params)
Hastableparams - public static void setDefaultTitlePaint(Paint paint)
paint - the Paint object to be used to generate color during the
rendering process, or nullpublic static Paint getDefaultTitlePaint()
public static void setDefaultColorTitle(Color c)
c - the desired Colorpublic static Color getDefaultColorTitle()
public void setFormTitle(String title)
public String getFormTitle()
public Object getConstraints(LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container referencepublic void init(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(String configuration)
protected void processCollapsibleButton(String components, boolean status, int gridx)
protected void setNormalConfiguration()
protected void configureButton(JButton button, String iconPath, boolean border, boolean opaque, MouseListener highlightListener)
public String getPrintingTemplateName()
nullString with the printing template name.public Vector getSetValuesOrder()
public void setFormBuilder(FormBuilder builder)
FormBuilder that will be used by the
components of this Form that implement CreateForms
interfacesetFormBuilder in interface CreateFormspublic void add(Component component, Object constraints)
public JPanel getBodyPanel()
public Hashtable getDataComponentList()
public void deleteDataComponentList()
public void createLists()
protected void scanComponents(Container container, boolean onlyReferenceDataFields)
container - onlyReferenceDataFields - public void updateReferencesLocator()
public Button getButton(String key)
key - the key of the button requestedButton with this keypublic Hashtable getButtonList()
public Object getDataFieldValue(String attribute)
attribute - the data field attribute to be obtained the valueObject with the data field value.public Object getDataFieldValueFromFormCache(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 fromObject with the data field value from the form
data cachepublic DataComponentGroup getGroupReference(String attribute)
DataComponentGroup referenceattribute - DataComponentGroup attribute to be obtained the
referenceDataComponentGroup referencepublic FormComponent getElementReference(String attribute)
FormComponent reference. To find a component in a form
is necessary that the component implements IdentifiedElementattribute - the data field attribute to be obtained the referencepublic DataComponent getDataFieldReference(String attribute)
attribute - DataComponent referenceprotected String getAttributeName(Object attribute)
attribute - public void updateDataFields(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(Hashtable data)
public void updateDataFields(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 - @Deprecated protected void setFormValues(Hashtable data)
updateDataFields(Hashtable)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 deleted@Deprecated public 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 Hashtable getParentKeyValues()
@Deprecated public void setParentKeyValue(String attribute, 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(Hashtable values)
values - a Hashtablepublic void enableDataField(String attribute)
attribute - data component attribute to be enabledpublic void enableDataField(String attribute, boolean requestFocus)
attribute - data component attribute to be enabledrequestFocus - true data component should request the focuspublic void disableDataField(String attribute)
attribute - attribute of data field to be disabledpublic void setModifiable(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(String except)
except - the attribute of data component that isn't disabledpublic Vector getDataFieldAttributeList()
Vector with the data field attribute list from the
formprotected 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.Hashtablepublic int message(String message, int messageType)
MessageDialog with the information collects from entry
parametersmessage - 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_MESSAGECLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(String message, Object[] args, int messageType)
MessageDialog with the information collects from entry
parametersmessage - 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 dialogMessageDialogpublic int message(Dialog owner, String message, int messageType)
MessageDialog with the information collects from entry
parametersowner - 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_MESSAGECLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(String message, int messageType, Throwable exception)
MessageDialog with the information collects from entry
parametersmessage - 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 shownCLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(String message, int messageType, String detail)
MessageDialog with the information collects from entry
parametersmessage - 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 shownCLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(String message, int messageType, String detail, Object[] args)
MessageDialog with the information collects from entry
parametersmessage - 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 int message(Dialog owner, String message, int messageType, String detail)
MessageDialog with the information collects from entry
parametersowner - 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 shownCLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(Dialog owner, String message, int messageType, String detail, Object[] args)
MessageDialog with the information collects from entry
parametersowner - 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(String message)
MessageDialog where the message type is established with
QUESTION_MESSAGE in.message - the text to be shown in the MessageDialogpublic boolean question(Dialog owner, 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 displayedpublic void setFormManager(IFormManager formManager)
formManager - public IFormManager getFormManager()
IFormManager object that manages this form.IFormManager objectpublic String getEntityName()
String with the entity namepublic Frame getParentFrame()
Frame object reference. If this form is
displayed in the main frame else returns nullFrame objectpublic void setParentFrame(Frame parentFrame)
OpenDialogsetParentFrame in interface OpenDialogparentFrame - the framepublic void enableTables()
public void enableButtons()
public void disableButtons()
public void enableButton(String key)
key - key of the button to be enabledpublic void disableButton(String key)
key - key of the button to be disabledpublic boolean hasDataAllFields()
public boolean existEmptyRequiredDataField()
public Vector getEmptyRequiredDataField()
public 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 returnedHashtable with the data field valuespublic 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 valueHashtable with all data field valuespublic void setDataFieldValue(Object attribute, Object value)
attribute parameter.attribute - value - public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle resources)
InternationalizationsetResourceBundle in interface Internationalizationresources - the new language bundle.public int getCurrentIndex()
public Hashtable getDataList()
Hashtable with the whole form data.public int getIndex(Hashtable keyValues)
keyValues - the key values of the recordpublic boolean isEmpty(String attribute)
attribute - public void setInteractionManager(InteractionManager formInteractionManager)
public InteractionManager getInteractionManager()
InteractionManager object that this form has
registeredInteractionManager registered in this formpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic String getDataFieldText(String attribute)
attribute - String with the text of the form data fieldpublic Hashtable getDataFieldText()
Hashtable with the text of all data fields.public Hashtable getDataFieldText(Vector attributeList)
attributeList - attribute list of the requested data fields to obtain their
text valueHashtable 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(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(String text, int timeMillis, boolean translate)
public IDetailForm 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 nullDetailForm where the form is contained inpublic void setDetailForm(IDetailForm detailForm)
DetailForm for this formdetailForm - public void free()
throws Exception
Freeableprotected void finalize()
throws Throwable
public ResourceBundle getResourceBundle()
ResourceBundlepublic String getResourceFileName()
public int setCurrentDate(String attribute)
attribute - public void setCheckModifiedData(boolean check)
public boolean checkModifiedData()
DataComponent.isModified() method.public void deleteDataField(String attribute)
attribute - data component attribute to be deleted@Deprecated public void setTabVisible(int index)
@Deprecated public void setTabEnabled(int index, boolean enabled)
@Deprecated public void setTabEnabled(String title, boolean enabled)
@Deprecated public void setTabVisible(String title)
public void showCurrencyValue(String currencySymbol)
showCurrencyValue in interface SelectCurrencyValuespublic Font showAvaliableFonts(boolean supportingEuro)
FontAndEncodingSelectorshowAvaliableFonts in interface FontAndEncodingSelectorpublic static boolean supportsEuroSymbol(Font font)
Font support the Euro characterfont - public void useFont(Font font)
FontAndEncodingSelectoruseFont in interface FontAndEncodingSelector@Deprecated public void showMe(Component c)
protected boolean findComponentInTab(Container container, Component component)
container - the container in which the components are foundcomponent - the component to findpublic void setAssociatedNode(OTreeNode node)
node - public void setLinkedTreePath(TreePath path)
path - public OTreeNode getAssociatedNode()
public TreePath getAssociatedTreePath()
TreePath associates a this form or null if the tree don't existpublic Vector getDataComponents()
Vector with a data component list@Deprecated public 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.#getJDialog}public String getSizeDialogPreferenceKey()
public JDialog putInModalDialog(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 dialogJDialog where the form is contained in or null if
the form is contained in a window.#getJDialog}public JDialog putInModalDialog(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 dialogJDialog where the form is contained in or null if
the form is contained in a window.#getJDialog}public JDialog putInModalDialog(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 dialogJDialog where the form is contained in or null if
the form is contained in a window.#getJDialog}public JDialog putInModalDialog(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 dialogJDialog where the form is contained in or null if
the form is contained in a window.#getJDialog}@Deprecated public JDialog putInModalDialog(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.#getJDialog}public JDialog putInModalDialog(String title, 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 dialogJDialog where the form is contained in or null if
the form is contained in a window.#getJDialog}public JDialog getJDialog()
JDialog object reference that has been created
in the call to method putInModalDialog().JDialog object referencepublic boolean setAdvancedQueryMode(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
disablepublic void setAdvancedQueryModeAll(boolean enable)
enable - true to make the advancedQuery mode enable ; false to make it
disableprotected void createTableViewTable()
public void addComponentsToInternationalizeList(Component component, boolean setBundle)
Internationalization. If the component is
a container then adds all the components inside it that implements
Internationalization toocomponent - 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 LayoutManager getLayout()
public void initPermissions()
initPermissions in interface SecureElementpublic void setFileName(String archiveName)
archiveName - the file namepublic String getArchiveName()
protected boolean checkAccessPermission(String attribute)
attribute - the String of the attribute to be checkedpublic Vector getKeys()
Vector with the list of keyspublic void setParentKeys(Vector parentKeys)
parentKeys - the parent key attributes to fixinit(java.util.Hashtable)public 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 Point getLocationInForm(Component component)
component - the ComponentPoint with the location of the component's
top-left cornerpublic boolean isFocusTraversable()
isFocusTraversable in class Componentpublic boolean requestDefaultFocus()
requestDefaultFocus in class JComponentprotected EntityResult query(int index)
index - EntityResult resulting of the query.public int message(Window owner, 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_MESSAGECLOSED_OPTION if the user closed the dialogpublic int message(Window owner, String message, int messageType, String detail, Object[] args)
MessageDialog with the information collects from entry
parametersowner - 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 dialogMessageDialogpublic int message(Window owner, String message, int messageType, Object[] args)
MessageDialog with the information collects from entry
parametersowner - 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 dialogMessageDialogpublic int message(Window owner, String message, int messageType, Object[] args, Throwable exception)
public int message(Frame owner, String message, int messageType)
MessageDialog with the information collects from entry
parametersowner - 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_MESSAGECLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(Frame owner, String message, int messageType, String detail)
MessageDialog with the information collects from entry
parametersowner - 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 shownCLOSED_OPTION if the user closed the dialogMessageDialogpublic int message(Frame f, String message, int messageType, String detail, Object[] args)
MessageDialog with the information collects from entry
parametersf - 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 dialogMessageDialogpublic EntityResult query(Hashtable keysValues, 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, 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(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(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 Vector loadTableViewPreference(ApplicationPreferences prefs)
prefs - a ApplicationPreferences instance that manager the
application preferencesVector with the column list to table view table.protected void saveTableViewPreferenceForm(Vector columns)
columns - a Vector with the column list to table view
table.protected String getTableViewPreferenceKey()
public void initPreferences(ApplicationPreferences ap, String user)
initPreferences in interface HasPreferenceComponentprotected 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 formatpublic void fillPDF(File inputFile, File outputFile) throws Exception
inputFile - the PDF file to be filledoutputFile - the filled PDF fileExceptionprotected void fillDocComb(File file) throws Exception
file - the WORD file to be filledExceptionpublic void fillDocSust(File file) throws Exception
file - the WORD file to be filledExceptionprotected 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 updateDataListDataCurrentRecord(Hashtable attributesValues)
public void updateDataListDataCurrentRecord(Hashtable attributesValues, boolean dataFieldRefresh)
public void disableDataField(Object attr)
attr - attribute of data field to be disabledpublic void hideDataField(Object attr)
attr - a Object with the data field attribute that will
be hiddenpublic void showDataField(Object attr)
attr - a Object with the data field attribute that will
be shownpublic void showButton(String key)
key - a String with the button key that will be shownpublic void hideButton(String key)
key - a String with the button key that will be hiddenpublic void hideElement(String attr)
attr - a String with the form component attribute that
will be hiddenpublic void showElement(String attr)
attr - a String with form component attribute that will
be hiddenpublic void setRequired(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(Graphics g, PageFormat pf, int page)
public String getHelpIdString()
getHelpIdString in interface HasHelpIdComponentpublic void installHelpId()
installHelpId in interface HasHelpIdComponentpublic void resetFocusOrder()
protected void findComponentInContainer(Container container, List result)
Container and filles the
List with this components.container - Container where the components are foundresult - List in which the components are storedprotected void findVisibleComponentInContainer(Container container, 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()
isFocusCycleRoot in class Containerprotected List getComponentsInOrderFocusInBody()
Vector with the focusable component references
from the form body.public List getComponentsInOrderFocus()
Vector with the focusable component references
from the form.protected Vector getComponentsAndLabelsListInOrderTopDown()
Vector with the component references from the
form.public void printingFormWithDefaultTemplate()
throws Exception
Exceptionpublic 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 String getQueryButtonKey()
String with the key of the query buttonpublic String getInsertButtonKey()
String with the key of the insert buttonpublic String getUpdateButtonKey()
String with the key of the update buttonpublic String getDeleteButtonKey()
String with the key of the delete buttonpublic void setEntityName(String name)
name - a String with the entity namepublic void resetEntityName()
public void addColumnsToTableView(Vector cols)
cols - the column list to be addedpublic void resetTableViewColumns()
public Button[] getButtons()
public void disableHyperlinkComponents()
public void enableHyperlinkComponents()
public void addControls(JComponent c)
c - the component to be addedpublic List getComponentList()
List with the component references from the form.public boolean isCustomFocusEnabled()
public void printTemplate(String templateURI, String entity, String title) throws Exception
templateURI - URI in where the template isentity - entity name of the table to print; null if there isn't table
to printtitle - Exceptionpublic void printTemplate(String templateURI, String entity, String title, boolean texts) throws 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.Exceptionpublic 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 showedinit(java.util.Hashtable)public void selectTableViewColumns()
protected ArrayList getVisibleDataComponentAttributes()
ArrayList with all visible componentspublic SubForm getSubForm()
SubForm component if this form is contained in one of
themSubForm objectpublic JButton getPermissionButton()
public JButton getDatabaseBundleButton()
public JButton getScriptButton()
public Form.StatusBar getStatusBar()
public JPanel getButtonPanel()
public Vector getNotQueriedDataFieldAttributes()
public void clearNotQueriedTabs()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.