public abstract class BaseFormManager extends JPanel implements IFormManager
FormManager is used to create, register and manage a group
of form.JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Application |
application
Application reference
|
protected Frame |
applicationFrame
Application frame reference.
|
protected ApplicationPreferences |
aPreferences
The
ApplicationPreferences reference |
protected JPanel |
auxPanel |
protected String |
baseCP
Base Classpath used whether the useClasspath condition is setted to true
|
protected boolean |
checkModifiedDataForms |
protected String |
currentForm
The form name that is visible in this
FormManager |
static String |
defaultInteractionManagerLoader |
protected boolean |
delayedLoad
If this condition is setted to true,this
FormManager will
not be loaded when is instanced, that is, the initial Form
class, InteractionManager class, and Tree class
will not be instanced until the FormManager is called for
first time. |
protected String |
dynamicFormClass |
protected FormBuilder |
formBuilder
FormBuilder reference
|
protected DynamicFormManager |
formDynamicManager |
protected Hashtable |
formInteractionManagerActionList
A
Hashtable with the interaction manager class name assigned
to each action handler. |
protected Hashtable<String,String> |
formInteractionManagerClassNameList
A
Hashtable with the interaction manager class name assigned
to each form. |
protected Hashtable |
formManagerForms |
protected Hashtable |
formModifiableFields |
protected Hashtable<String,Form> |
formReferenceList
A
Hashtable with a form list where the key is the form name
and the value a Form class instance. |
protected Vector |
formRegisteredDataNavigationListener
A list formed by the forms where this
FormManager has been
registered as a DataNavigationListener in. |
protected Hashtable |
formRules
The
Hashtable key is the form name and the
Hashtable value is the RuleEngine XML
definition location. |
protected String |
icon |
protected String |
id
A
String with the identifier of this
FormManager |
protected InteractionManagerLoader |
iManagerLoader |
protected String |
initialForm
The
Form name that will be shown at first |
protected InteractionManager |
initialInteractionManager
The
InteractionManager reference of the form that will be
shown at first |
protected Hashtable<String,InteractionManager> |
interactionManagerList
A
Hashtable with the interaction manager to be registered. |
protected String |
interactionManagerLoader |
protected Vector |
interactionManagers |
protected boolean |
loadedForm
If this condition is true, the
FormManager will be loaded. |
protected List<String> |
loadedList
Form list that are loaded and layout
|
protected Locale |
locale
Locale
|
protected EntityReferenceLocator |
locator
Entity reference locator reference
|
static String |
M_MODIFIED_DATA
GUI Text
|
static String |
M_NOT_DATA_IT_IS_POSSIBLE_THAT_RECORD_HAS_BEEN_DELETE
GUI Text
|
protected JPanel |
panelTop
Panel used to add new buttons at
FormManager |
protected Container |
parent
Container where is stored this component in
|
protected boolean |
preferenceListenersRegistered
Condition used to register the preference listener only one time
|
protected boolean |
processDataChangeEvents
The FormManager will dispatch the DataNavigationEvent if this is true
|
protected ResourceBundle |
resourceFile
ResourceBundle reference
|
protected String |
resourceFileName
ResourceBundle file name
|
protected boolean |
restricted |
protected RuleEngine |
ruleEngine |
protected RuleEngineLoader |
ruleEngineLoader |
protected String |
rules
The complete path for rule file for initial form.
|
protected boolean |
setResourceBundleOnLoad |
protected boolean |
showFrame |
protected String |
uRIBase
Base URI used to obtain the form file.
|
protected boolean |
useClasspath
Condition that determine whether the 'form' attribute value specified a
location relative to the classpath.
|
protected FMPermission |
visiblePermission |
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_ALIGNMENTACTION, APPLICATION, CONTAINER, DELAYED_LOAD, DETAIL, DYNAMIC_FORM, FORM, FORM_BUILDER, FRAME, ICON, ID, IM_LOADER, INTERACTION_MANAGER, LOAD, LOCATOR, RESOURCES, RULE_LOADER, RULES, SHOW_FRAME, USE_CLASS_PATHDEBUG_LANGUAGEDESACTIVATE_COMPONENT_BY_PERMISSION_TIPEURO, PSTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
BaseFormManager(Frame frame,
Container container,
FormBuilder builder,
String formURI,
InteractionManager interactionManager,
ResourceBundle resource,
boolean northPanel)
Builds a
FormManager |
BaseFormManager(Frame frame,
Container container,
FormBuilder builder,
String formURI,
ResourceBundle resource)
Builds a
FormManager |
BaseFormManager(Frame frame,
Container container,
FormBuilder builder,
String formURI,
ResourceBundle resource,
boolean northPanel)
Builds a
FormManager |
BaseFormManager(Hashtable parameters)
Creates a FormManager instance with the parameters establishes in
Hastable. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addFormToContainer(JPanel panelForm,
String formName) |
void |
addTopComponent(Component component)
Adds the component that is passed as entry parameter to
IFormManager#panelTop |
protected void |
applyInteractionManager(String interactionManagerClass,
String formName)
Creates the
InteractionManager class instance and call the
setInteractionManager(InteractionManager, String) |
protected boolean |
checkVisiblePermission(String id)
Checks if this
FormManager is restricted with visible
permissions |
protected void |
configureRules(String formFileName) |
protected abstract JComponent |
createCenterPanel() |
protected void |
createLayout(Frame frame,
Container container,
FormBuilder builder,
String formURI,
InteractionManager interactionManager,
ResourceBundle resource,
boolean northPanel) |
void |
dataChanged(DataNavigationEvent e)
Notifies that the data in the form has changed.
|
boolean |
dataWillChange(DataNavigationEvent e)
Called when a form is going to change the status.
|
protected void |
finalize() |
void |
free()
Makes the object to release the resources.
|
Form |
getActiveForm()
Returns the active
Form reference. |
Application |
getApplication()
Gets the
Application reference. |
protected Object |
getAttributeValue(Object attribute,
OTreeNode node)
Gets the attribute value into the
OTreeNode that is passed
as entry parameter. |
Container |
getContainer()
Gets the container where the
FormManager is layered out in. |
String |
getCurrentForm()
Gets the
Form name that is currently visible. |
boolean |
getDelayedLoad()
Gets the delayed load condition
|
FormBuilder |
getFormBuilder() |
Form |
getFormCopy(String formName)
Gets a
Form instance copy which form name is passed as entry
parameter. |
Form |
getFormCopy(String formName,
Container container)
Gets a
Form instance copy which form name is passed as entry
parameter. |
Form |
getFormCopy(String formResourceName,
String imQualifiedName)
Gets a
Form instance copy which form resource name is passed
as entry parameter. |
Form |
getFormCopyInEDTh(String formName) |
protected Form |
getFormCopyInEDTh(String formName,
Container container)
Gets a
Form instance copy which form name is passed as entry
parameter. |
protected Form |
getFormCopyInEDTh(String formResourceName,
String imQualifiedName)
Gets a
Form instance copy which form resource name is passed
as entry parameter. |
Form |
getFormCopyWithoutInteractionManager(String formName)
Gets a
Form instance copy which form name is passed as entry
parameter. |
Form |
getFormCopyWithoutInteractionManager(String formName,
Container container)
Gets a
Form instance copy which form name is passed as entry
parameter. |
Form |
getFormCopyWithoutInteractionManagerInEDTh(String formName,
Container container)
Gets a
Form instance copy which form name is passed as entry
parameter. |
Form |
getFormReference(String form)
Gets a
Form reference which name is passed as entry
parameter. |
Form |
getFormReference(String formName,
boolean loadIfNecessary)
Gets the form reference which name is passed as entry parameter.
|
String |
getIcon()
Determines the icon that should be shown in a new Frame
|
String |
getId()
Gets the unique identifier for this
FormManager |
InteractionManager |
getInteractionManager(String formName) |
String |
getLabelFileURI() |
EntityReferenceLocator |
getReferenceLocator()
Gets the
EntityReferenceLocator reference that is stored
inside. |
ResourceBundle |
getResourceBundle()
Gets the
ResourceBundle reference stored in this
FormManager |
String |
getResourceFileName()
Gets the
ResourceBundle name stored in this
FormManager |
RuleEngine |
getRuleEngine() |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
URL |
getURL(String formName)
Gets the Form URL which name is passed as entry parameter.
|
void |
init(Hashtable parameters) |
void |
initPermissions() |
boolean |
isLoaded() |
boolean |
isRestricted() |
void |
load()
Loads the
FormManager.The initial Form, initial
InteractionManager and Tree are instanced and
are layered out in container to be shown. |
protected void |
loadForm(String fileName) |
protected void |
loadFormInEDTh(String formFileName)
Loads the Form which file name is passed as entry parameter.
|
void |
loadForms(List<String> formList)
Loads the form list from
Vector instance that are passed as
entry parameter. |
void |
loadInEDTh()
Loads the
FormManager. |
void |
reload(Form form)
Reload the
Form that is passed as entry parameter. |
void |
saveTextsToTranslate(String file,
boolean append,
Vector keys,
Properties importProp)
Stores in the file which name is passed as entry parameters all texts in
the
FormManager that must be translated. |
void |
setActiveForm(Form f) |
void |
setApplication(Application application)
Sets the
Application reference. |
void |
setApplicationPreferences(ApplicationPreferences ap) |
void |
setCheckModifiedFormData(boolean check)
Enables/disables the check of modified form data
|
void |
setComponentLocale(Locale l) |
void |
setFormManagerToForm(String formName,
String formManagerId)
Stores in the
formManagerForms variable the
FormManager unique identifier and the Form name
that are passed as entry parameter. |
void |
setId(String id)
Sets the unique identifier for this
FormManager |
void |
setInteractionManager(InteractionManager interactionManager,
String formName)
Registers the
InteractionManager which is passed as entry
parameter to the Form which name is passed as entry parameter as well. |
void |
setInteractionManager(String interactionManagerClass,
String formName)
Sets the
InteractionManager for a
Form |
protected void |
setQueryInsertMode(Form form) |
void |
setReferenceLocator(EntityReferenceLocator locator)
Sets the
EntityReferenceLocator reference used in this
FormManager |
protected void |
setResourceBundle_internal() |
void |
setResourceBundle(ResourceBundle resources)
Sets the language resource bundle.
|
void |
setRuleEngine(RuleEngine ruleEngine) |
protected void |
setUpdateMode(Form form) |
Font |
showAvaliableFonts(boolean supportingEuro)
Shows the available fonts in the system.
|
void |
showCurrencyValue(String currencySymbol) |
boolean |
showForm(String formName)
Shows the form which file name is passed as entry parameter If this form
isn't loaded, this method will load the form.
|
boolean |
showFrame()
Determines whether this FormManager should be shown in a new Frame.
|
static boolean |
supportsEuroSymbol(Font font)
Checks if the euro symbol can be displayed by the
Font that
is passed as entry parameter. |
protected void |
updateInteractionDynamicFormMode(Form form) |
void |
useFont(Font f)
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, requestDefaultFocus, 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, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, 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, isFocusTraversable, 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, waitgetLocale, showFormInEDThpublic static String M_NOT_DATA_IT_IS_POSSIBLE_THAT_RECORD_HAS_BEEN_DELETE
public static String M_MODIFIED_DATA
protected Frame applicationFrame
protected JPanel panelTop
FormManagerprotected Container parent
protected Locale locale
protected Hashtable<String,Form> formReferenceList
Hashtable with a form list where the key is the form name
and the value a Form class instance.protected String uRIBase
protected boolean useClasspath
protected String baseCP
protected EntityReferenceLocator locator
protected Hashtable<String,InteractionManager> interactionManagerList
Hashtable with the interaction manager to be registered.
The Hashtable key is the form name and the
Hashtable value is the InteractionManager class
instance.protected Hashtable<String,String> formInteractionManagerClassNameList
Hashtable with the interaction manager class name assigned
to each form. The Hashtable key is the form name and the
Hashtable value is the InteractionManager class
name.protected Hashtable formInteractionManagerActionList
Hashtable with the interaction manager class name assigned
to each action handler. The Hashtable key is the form name
and the Hashtable value is the
InteractionManagerAction XML definition location.protected Hashtable formRules
Hashtable key is the form name and the
Hashtable value is the RuleEngine XML
definition location.protected String currentForm
FormManagerprotected String resourceFileName
protected ResourceBundle resourceFile
protected FormBuilder formBuilder
protected JPanel auxPanel
protected Vector interactionManagers
protected boolean checkModifiedDataForms
protected FMPermission visiblePermission
protected String id
String with the identifier of this
FormManagerprotected RuleEngine ruleEngine
protected Application application
protected Vector formRegisteredDataNavigationListener
FormManager has been
registered as a DataNavigationListener in.protected boolean processDataChangeEvents
protected ApplicationPreferences aPreferences
ApplicationPreferences referenceprotected boolean preferenceListenersRegistered
protected String dynamicFormClass
protected DynamicFormManager formDynamicManager
protected boolean loadedForm
FormManager will be loaded.protected String initialForm
Form name that will be shown at firstprotected String rules
protected InteractionManager initialInteractionManager
InteractionManager reference of the form that will be
shown at firstprotected boolean setResourceBundleOnLoad
protected boolean delayedLoad
FormManager will
not be loaded when is instanced, that is, the initial Form
class, InteractionManager class, and Tree class
will not be instanced until the FormManager is called for
first time. The condition value is established with the
IFormManager.DELAYED_LOAD attribute,by default is false.#FormManager(Hashtable)}public static String defaultInteractionManagerLoader
protected String interactionManagerLoader
protected InteractionManagerLoader iManagerLoader
protected RuleEngineLoader ruleEngineLoader
protected Hashtable formModifiableFields
protected boolean showFrame
protected String icon
protected boolean restricted
protected Hashtable formManagerForms
public BaseFormManager(Hashtable parameters) throws Exception
Hastable. This constructor is called from
ApplicationBuilder
The parameters
Hashtable contains
the attribute values set in the Application XML.
attribute
values
default
required
meaning
id
yes
Establishes the unique identifier for this FormManager
useclasspath
yes/no
no
no
Establishes if the form files are loaded using a location relative to
the classpath.
locator
no
A
EntityReferenceLocator reference.
application
no
An
Application reference.
formbuilder
yes
A
FormBuilder reference.
treebuilder
yes
A
TreeBuilder reference.
tree
no
Established the path of tree xml description file.
treeclass
no
Established the class name that will be instanced for create a
Tree
frame
yes
Established the application
Frame reference.
container
yes
Established container where this
FormManager will be
layered out in.
form
yes
Established the initial
Form that will be loaded at
first.
imanager
no
Established the
InteractionManager that will be
registered to initial Form
imloader
no
Established the
InteractionManagerLoader that will be
registered
resources
no
Established the
ResourceBundle that will be used in this
FormManager
dynamicform
no
Established the
DynamicFormManager class name that will
be used.
delayedload
yes/no/background
no
no
Established the
delayedLoad condition.
Exceptionpublic BaseFormManager(Frame frame, Container container, FormBuilder builder, String formURI, ResourceBundle resource, boolean northPanel)
FormManagerframe - the Application Framecontainer - Container where is layered out the
FormManagerin.builder - FormBuilder used to create the Form
instances.formURI - URI where is stored the xml description in.resource - ResourceBundle where is the language resources in.northPanel - true if new components can be added in
FormManager using the addTopComponent(java.awt.Component)
method.public BaseFormManager(Frame frame, Container container, FormBuilder builder, String formURI, InteractionManager interactionManager, ResourceBundle resource, boolean northPanel)
FormManagerframe - the Application Framecontainer - Container where is layered out the
FormManagerin.builder - FormBuilder used to create the Form
instances.formURI - URI where is stored the xml description in.interactionManager - InteractionManager reference.resource - ResourceBundle where is the language resources in.northPanel - true if new components can be added in
FormManager using the addTopComponent(java.awt.Component)
method.public BaseFormManager(Frame frame, Container container, FormBuilder builder, String formURI, ResourceBundle resource)
FormManagerframe - the Application Framecontainer - Container where is layered out the
FormManagerin.builder - FormBuilder used to create the Form
instances.formURI - URI where is stored the xml description in.resource - ResourceBundle where is the language resources in.public void load()
FormManager.The initial Form, initial
InteractionManager and Tree are instanced and
are layered out in container to be shown. All this operations are
performed in EventDispatchThread.load in interface IFormManagerpublic void loadInEDTh()
FormManager. This method must be called from
EventDispatchThread.loadInEDTh in interface IFormManagerload()protected abstract JComponent createCenterPanel()
protected void createLayout(Frame frame, Container container, FormBuilder builder, String formURI, InteractionManager interactionManager, ResourceBundle resource, boolean northPanel)
public void loadForms(List<String> formList)
Vector instance that are passed as
entry parameter. For each form from Vector, this method will
call the IFormManager#loadFormInEDTh method.formList - List of Form to be loadedprotected void configureRules(String formFileName)
public boolean showForm(String formName)
IFormManagerIFormManager.showFormInEDTh(java.lang.String) from EventDispatchThread.showForm in interface IFormManagerformName - a String with the file name.protected void loadForm(String fileName)
public abstract void addFormToContainer(JPanel panelForm, String formName)
addFormToContainer in interface IFormManagerprotected void loadFormInEDTh(String formFileName)
XMLFormProvider. If this remote reference doesn't existformFileName - public Form getFormReference(String formName, boolean loadIfNecessary)
load() if is necessary and the loadIfNecessary
parameter is true.getFormReference in interface IFormManagerformName - a Form name.loadIfNecessary - true to be loaded the FormManagerpublic Form getFormReference(String form)
Form reference which name is passed as entry
parameter.getFormReference in interface IFormManagerForm reference; null if the Form hasn't been
loaded.public Form getFormCopy(String formName)
Form instance copy which form name is passed as entry
parameter.getFormCopy in interface IFormManagerformName - a String with the Form name.public Form getFormCopyWithoutInteractionManager(String formName)
Form instance copy which form name is passed as entry
parameter. The Form reference that will be returned doesn't
have registered any InteractionManagerformName - a String with the Form name.Form referencepublic Form getFormCopyWithoutInteractionManager(String formName, Container container)
Form instance copy which form name is passed as entry
parameter. This Form copy is layered out into the container
parameter. The Form reference that will be returned doesn't
have registered any InteractionManager. This method call the
getFormCopyWithoutInteractionManagerInEDTh(java.lang.String, java.awt.Container) method from
EventDispatchThread.formName - a String with the Form name.container - a Container where the Form will be
displayed in.Form reference.public Form getFormCopyWithoutInteractionManagerInEDTh(String formName, Container container)
Form instance copy which form name is passed as entry
parameter. This Form copy is layered out into the container
parameter. The Form reference that will be returned doesn't
have registered any InteractionManager.formName - a String with the Form name.container - a Container where the Form will be
displayed in.Form reference.public Form getFormCopy(String formName, Container container)
IFormManagerForm instance copy which form name is passed as entry
parameter. This Form copy is layered out into the container
parameter. The Form reference that will be returned have
registered the InteractionManager that has been defined in
application xml description. This method calls the
IFormManager.getFormCopyInEDTh(java.lang.String) method from EventDispatchThread.getFormCopy in interface IFormManagerformName - a String with the Form name.container - a Container where the Form will be
displayed in.Form reference.public Form getFormCopy(String formResourceName, String imQualifiedName)
Form instance copy which form resource name is passed
as entry parameter. This Form copy is layered out into the
container parameter. The Form reference that will be
returned have registered the InteractionManager that has
been passed as entry parameter. This method calls the
getFormCopyInEDTh(java.lang.String, java.lang.String) method from EventDispatchThread.getFormCopy in interface IFormManagerformResourceName - a String with the Form name.imQualifiedName - a String with the interaction manager qualified
class name.Form reference.public URL getURL(String formName)
baseCP variable.getURL in interface IFormManagerformName - a String with the Form file name.URL referenceprotected Form getFormCopyInEDTh(String formResourceName, String imQualifiedName)
Form instance copy which form resource name is passed
as entry parameter. This Form copy is layered out into the
container parameter. The Form reference that will be
returned have registered the InteractionManager that has
been passed as entry parameter. This method calls the
getFormCopyInEDTh(java.lang.String, java.lang.String) method from EventDispatchThread.formResourceName - a String with the Form name.imQualifiedName - a String with the interaction manager qualified
class name.Form reference.public Form getFormCopyInEDTh(String formName)
getFormCopyInEDTh in interface IFormManagerprotected Form getFormCopyInEDTh(String formName, Container container)
Form instance copy which form name is passed as entry
parameter. This Form copy is layered out into the container
parameter. The Form reference that will be returned have
registered the InteractionManager that has been defined in
application xml description.formName - a String with the Form name.container - a Container where the Form will be
displayed in.Form reference.public EntityReferenceLocator getReferenceLocator()
EntityReferenceLocator reference that is stored
inside.getReferenceLocator in interface IFormManagerEntityReferenceLocatorpublic void setReferenceLocator(EntityReferenceLocator locator)
EntityReferenceLocator reference used in this
FormManagersetReferenceLocator in interface IFormManagerlocator - public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void saveTextsToTranslate(String file, boolean append, Vector keys, Properties importProp)
FormManager that must be translated.file - the destiny fileappend - boolean if true, then the translate text will be
will be written to the end of the file rather than the
beginning.keys - Vector with the keys that has just been added.importProp - public void setResourceBundle(ResourceBundle resources)
InternationalizationsetResourceBundle in interface Internationalizationresources - the new language bundle.protected void setResourceBundle_internal()
public void showCurrencyValue(String currencySymbol)
showCurrencyValue in interface SelectCurrencyValuespublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void setInteractionManager(InteractionManager interactionManager, String formName)
InteractionManager which is passed as entry
parameter to the Form which name is passed as entry parameter as well. If
the Form has just been loaded, the InteractionManager is
registered else the Form name and the InteractionManager
instance are stored in interactionManagerList variable to be
registered when the Form is loaded.setInteractionManager in interface IFormManagerinteractionManager - InteractionManager reference where the
Form is registered in.formName - a String with the Form file name.public InteractionManager getInteractionManager(String formName)
getInteractionManager in interface IFormManagerpublic void setInteractionManager(String interactionManagerClass, String formName)
InteractionManager for a
Form which file name is passed as entry parameter.
The InteractionManager instance is loaded by reflection and
the class constructor mustn't have any parameter.setInteractionManager in interface IFormManagerinteractionManagerClass - String with the InteractionManager Class name.formName - String with the Form file name.protected void applyInteractionManager(String interactionManagerClass, String formName)
InteractionManager class instance and call the
setInteractionManager(InteractionManager, String)interactionManagerClass - a String with the InteractionManager
class name.formName - a String with the Form file name.public String getCurrentForm()
Form name that is currently visible.public void free()
throws Exception
Freeableprotected void finalize()
throws Throwable
public ResourceBundle getResourceBundle()
ResourceBundle reference stored in this
FormManagergetResourceBundle in interface IFormManagerResourceBundle referencepublic String getResourceFileName()
IFormManagerResourceBundle name stored in this
FormManagergetResourceFileName in interface IFormManagerString referencepublic Font showAvaliableFonts(boolean supportingEuro)
FontAndEncodingSelectorshowAvaliableFonts in interface FontAndEncodingSelectorpublic static boolean supportsEuroSymbol(Font font)
Font that
is passed as entry parameter.font - a Font that must display the euro symbol.public void useFont(Font f)
FontAndEncodingSelectoruseFont in interface FontAndEncodingSelectorpublic Container getContainer()
FormManager is layered out in.getContainer in interface IFormManagerContainer reference.public void addTopComponent(Component component)
IFormManager#panelTopcomponent - public void setId(String id)
FormManagerid - a String with the unique identifier.public String getId()
FormManagergetId in interface IFormManagerString with the unique identifier.public void initPermissions()
initPermissions in interface SecureElementpublic void setApplication(Application application)
Application reference.setApplication in interface IFormManagerapplication - public Application getApplication()
Application reference.getApplication in interface IFormManagerApplication referenceprotected boolean checkVisiblePermission(String id)
FormManager is restricted with visible
permissionsid - protected Object getAttributeValue(Object attribute, OTreeNode node)
OTreeNode that is passed
as entry parameter. This method search this attribute into the
OTreeNode and its parents.attribute - the attribute to be found.node - OTreeNode where the search of the attribute value
will start in.public void setCheckModifiedFormData(boolean check)
check - true the check of modifed form data is enabled.public String getLabelFileURI()
getLabelFileURI in interface IFormManagerpublic void setActiveForm(Form f)
setActiveForm in interface IFormManagerpublic Form getActiveForm()
Form reference. This method takes into
account both the forms displayed in container and the forms layered out
in DetailForms. Returns the Form reference
established in method setActiveForm(Form). If the
Form reference hasn't been established then this method
returns the Form reference that is visible into the
FormManager container.getActiveForm in interface IFormManagerpublic boolean dataWillChange(DataNavigationEvent e)
DataNavigationListenerdataWillChange in interface DataNavigationListenerpublic void dataChanged(DataNavigationEvent e)
DataNavigationListenerdataChanged in interface DataNavigationListenerpublic void setApplicationPreferences(ApplicationPreferences ap)
setApplicationPreferences in interface IFormManagerprotected void updateInteractionDynamicFormMode(Form form)
public void reload(Form form)
Form that is passed as entry parameter.reload in interface IFormManagerform - Form reference to be reloaded.public boolean isRestricted()
isRestricted in interface SecureElementpublic boolean getDelayedLoad()
public void setFormManagerToForm(String formName, String formManagerId)
formManagerForms variable the
FormManager unique identifier and the Form name
that are passed as entry parameter.formName - String with the form name.formManagerId - String with the unique identifier where is stored
the Form in.public boolean isLoaded()
isLoaded in interface IFormManagerprotected void setUpdateMode(Form form)
protected void setQueryInsertMode(Form form)
public FormBuilder getFormBuilder()
getFormBuilder in interface IFormManagerpublic RuleEngine getRuleEngine()
getRuleEngine in interface IFormManagerpublic void setRuleEngine(RuleEngine ruleEngine)
public boolean showFrame()
IFormManagershowFrame in interface IFormManagerpublic String getIcon()
IFormManagergetIcon in interface IFormManagerCopyright © 2016 Imatia Innovation S.L.. All rights reserved.