public class DetailForm extends EJDialog implements Internationalization, DataNavigationListener, IDetailForm
| Modifier and Type | Class and Description |
|---|---|
protected class |
DetailForm.ActivationFormListener |
JDialog.AccessibleJDialogDialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected DetailForm.ActivationFormListener |
activedFormListener |
protected Hashtable |
cacheForms |
protected CardLayout |
cardLayout |
boolean |
checkDataBeforeClose |
protected Hashtable |
codValues |
protected Hashtable |
data |
protected boolean |
dataChangeEventProcessing |
protected Vector |
fieldsKey |
protected Form |
form |
static String |
M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES |
protected Hashtable |
otherParentKeys
Deprecated.
|
protected boolean |
packed |
protected String |
parentKeyName
Deprecated.
|
protected Hashtable |
parentkeys |
protected Object |
parentKeyValue
Deprecated.
|
protected Hashtable |
reverseCodValues |
protected Table |
table |
protected Hashtable |
tableKeys |
protected String |
title |
protected int |
vectorIndex |
actions, askQuestionEverOnClose, askQuestionOnEsc, autoPackOnOpen, changeLAF, closeQuestion, defaultValueAskQuestionOnClose, defaultValueAskQuestionOnEsc, focusSet, glassPanel, keys, keyStrokes, opaque, previousGlassPane, sizePositionPreferenceaccessibleContext, rootPane, rootPaneCheckingEnabledDEFAULT_MODALITY_TYPEBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
DetailForm(Dialog d,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentkeys)
Deprecated.
|
DetailForm(Dialog d,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentkeys,
Hashtable codValues)
Deprecated.
|
DetailForm(Dialog d,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentkeys) |
DetailForm(Dialog d,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentkeys,
Hashtable codValues) |
DetailForm(Frame f,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentkeys)
Deprecated.
|
DetailForm(Frame f,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentkeys,
Hashtable codValues)
Deprecated.
|
DetailForm(Frame f,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentkeys) |
DetailForm(Frame f,
String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentkeys,
Hashtable codValues) |
DetailForm(String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentKeys)
Deprecated.
|
DetailForm(String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentkeys,
Hashtable codValues)
Deprecated.
|
DetailForm(String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentKeys) |
DetailForm(String title,
boolean modal,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentkeys,
Hashtable codValues) |
| Modifier and Type | Method and Description |
|---|---|
void |
centerOnScreen() |
void |
changeDynamicForm(Hashtable dynamicFormData) |
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.
|
void |
forceUpdateMode() |
boolean |
getCheckDataBeforeClose() |
Form |
getForm() |
String |
getFormFieldName(Object name) |
protected String |
getFormFieldName(String name) |
String |
getParentKeyName()
Deprecated.
|
Object |
getParentKeyValue()
Deprecated.
|
protected int |
getRecordCount() |
Table |
getTable() |
String |
getTableFieldName(Object name) |
protected String |
getTableFieldName(String name) |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
void |
hideDetailForm() |
protected void |
init(String title,
Form form,
Hashtable tableKeys,
Vector keyFields,
Object parentkeyValue,
String parentkeyName,
Table sourceTable,
Hashtable otherParentkeys)
Deprecated.
|
protected void |
init(String title,
Form form,
Hashtable tableKeys,
Vector keyFields,
Table sourceTable,
Hashtable parentkeyValues) |
protected void |
initCodValues(Hashtable codValues) |
protected void |
installButtonsListeners() |
protected Vector |
listToForm(Vector list) |
protected void |
processKeyEvent(KeyEvent e) |
protected void |
processWindowEvent(WindowEvent e) |
protected EntityResult |
query(int index) |
protected void |
reload(Form f) |
void |
resetEntityName() |
void |
resetOthersParentKeys(Vector otherParentKeys)
Deprecated.
|
void |
resetParentkeys(List parentKeys) |
void |
setAttributeToFix(Object attribute,
Object value) |
void |
setCheckDataWhenClose(boolean v) |
void |
setComponentLocale(Locale l) |
void |
setEntityName(String name) |
void |
setInsertMode() |
void |
setKeys(Hashtable tableValues,
int index)
This method sets the keys in the table records.
|
void |
setOthersParentKeys(Hashtable otherKeys)
Deprecated.
|
void |
setParentKeyValue(Object value)
Deprecated.
|
void |
setParentKeyValues(Hashtable parentKeyValues) |
void |
setQueryInsertMode() |
void |
setQueryMode() |
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
void |
setUpdateMode() |
void |
showDetailForm() |
void |
showForm(String formName) |
void |
synchronize()
Clear the detail form data cache and set the primary keys of the table
again.
|
void |
updateDataCacheActualRecord() |
protected void |
updateFieldsOthersParentKeys()
Deprecated.
|
protected void |
updateFieldsParentkeys() |
protected void |
updateNavigationButtonState() |
void |
updateUI() |
Hashtable |
valuesToForm(Hashtable values) |
Hashtable |
valuesToTable(Hashtable values) |
askCloseQuestion, dispose, getSizePositionPreference, initWindowListener, isAskOnClose, isAskOnEsc, pack, registerKeyBindings, setAction, setActionForKey, setAskOnClose, setAskOnEsc, setAutoPackOnOpen, setInitialFocus, setSizePositionPreference, setVisible, transparentaddImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final String M_MODIFIED_DATA_CLOSE_AND_LOST_CHANGES
protected Hashtable tableKeys
protected Vector fieldsKey
protected int vectorIndex
protected Form form
protected Hashtable data
@Deprecated protected Object parentKeyValue
@Deprecated protected String parentKeyName
@Deprecated protected Hashtable otherParentKeys
protected Hashtable parentkeys
protected Table table
protected String title
protected CardLayout cardLayout
protected Hashtable cacheForms
protected boolean dataChangeEventProcessing
public boolean checkDataBeforeClose
protected DetailForm.ActivationFormListener activedFormListener
protected boolean packed
protected Hashtable codValues
protected Hashtable reverseCodValues
public DetailForm(Frame f, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentkeys)
public DetailForm(Frame f, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentkeys, Hashtable codValues)
public DetailForm(Dialog d, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentkeys)
public DetailForm(Dialog d, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentkeys, Hashtable codValues)
public DetailForm(String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentKeys)
public DetailForm(String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentkeys, Hashtable codValues)
@Deprecated public DetailForm(Frame f, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Object parentkeyValue, String parentkeyName, Table sourceTable, Hashtable otherParentkeys)
@Deprecated public DetailForm(Frame f, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Object parentkeyValue, String parentkeyName, Table sourceTable, Hashtable otherParentkeys, Hashtable codValues)
@Deprecated public DetailForm(Dialog d, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Object parentkeyValue, String parentkeyName, Table sourceTable, Hashtable otherParentkeys)
@Deprecated public DetailForm(Dialog d, String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Object parentkeyValue, String parentkeyName, Table sourceTable, Hashtable otherParentkeys, Hashtable codValues)
@Deprecated public DetailForm(String title, boolean modal, Form form, Hashtable tableKeys, Vector keyFields, Object parentkeyValue, String parentkeyName, Table sourceTable, Hashtable otherParentKeys)
protected void initCodValues(Hashtable codValues)
public String getFormFieldName(Object name)
getFormFieldName in interface IDetailFormpublic String getTableFieldName(Object name)
getTableFieldName in interface IDetailFormpublic Hashtable valuesToForm(Hashtable values)
valuesToForm in interface IDetailFormpublic Hashtable valuesToTable(Hashtable values)
valuesToTable in interface IDetailForm@Deprecated protected void init(String title, Form form, Hashtable tableKeys, Vector keyFields, Object parentkeyValue, String parentkeyName, Table sourceTable, Hashtable otherParentkeys)
protected void init(String title, Form form, Hashtable tableKeys, Vector keyFields, Table sourceTable, Hashtable parentkeyValues)
public void showDetailForm()
showDetailForm in interface IDetailFormpublic void hideDetailForm()
hideDetailForm in interface IDetailFormpublic Table getTable()
getTable in interface IDetailFormpublic void setKeys(Hashtable tableValues, int index)
setKeys in interface IDetailFormtableValues - index - protected EntityResult query(int index)
public void setInsertMode()
setInsertMode in interface IDetailFormpublic void setUpdateMode()
setUpdateMode in interface IDetailFormpublic void forceUpdateMode()
public void setQueryInsertMode()
setQueryInsertMode in interface IDetailFormpublic void setQueryMode()
setQueryMode in interface IDetailForm@Deprecated public String getParentKeyName()
@Deprecated public Object getParentKeyValue()
@Deprecated protected void updateFieldsOthersParentKeys()
@Deprecated public void resetOthersParentKeys(Vector otherParentKeys)
otherParentKeys - public void resetParentkeys(List parentKeys)
resetParentkeys in interface IDetailFormprotected void updateFieldsParentkeys()
public void setAttributeToFix(Object attribute, Object value)
setAttributeToFix in interface IDetailForm@Deprecated public void setOthersParentKeys(Hashtable otherKeys)
otherKeys - @Deprecated public void setParentKeyValue(Object value)
value - public void setParentKeyValues(Hashtable parentKeyValues)
setParentKeyValues in interface IDetailFormpublic void synchronize()
public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.public void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void updateUI()
public Form getForm()
getForm in interface IDetailFormprotected int getRecordCount()
protected void updateNavigationButtonState()
protected void installButtonsListeners()
protected void processWindowEvent(WindowEvent e)
processWindowEvent in class EJDialogprotected void processKeyEvent(KeyEvent e)
processKeyEvent in class EJDialogpublic void changeDynamicForm(Hashtable dynamicFormData)
public boolean dataWillChange(DataNavigationEvent e)
DataNavigationListenerdataWillChange in interface DataNavigationListenerpublic void dataChanged(DataNavigationEvent e)
DataNavigationListenerdataChanged in interface DataNavigationListenerpublic void updateDataCacheActualRecord()
public void centerOnScreen()
public void showForm(String formName)
protected void reload(Form f)
public void setEntityName(String name)
public void resetEntityName()
public void setCheckDataWhenClose(boolean v)
public boolean getCheckDataBeforeClose()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.