public class IMDetailScriptAction extends InteractionManager implements IDetailScriptAction, IScriptMessages
| Modifier and Type | Class and Description |
|---|---|
static class |
IMDetailScriptAction.LanguageComboCellRenderer |
InteractionManager.DeleteFieldsListener, InteractionManager.InteractionManagerAction, InteractionManager.PrintingThreadactionHandler, ADVANCED_QUERY_KEY, CHECK_MODIFIED_DATA_CHANGED_DEFAULT_VALUE, checkModifiedDataChangeEvent, currentMode, dataChangedEventProcessing, DELETE_KEY, deleteFieldsListener, f11Button, f12Button, f7Button, f9Button, formManager, HELP_KEY, INSERT, INSERT_KEY, interactionManagerModeListenerList, managedForm, modifiedFieldAttributes, NEWMODE, printThread, QUERY, QUERY_INSERT_KEY, QUERY_KEY, QUERYINSERT, selectionPrintingKey, setDefaultFocusEnabled, UPDATE, UPDATE_ALL, UPDATE_CHANGED, UPDATE_KEY, updateMethod, valueChangedListenerAttributes, valueChangeListenerEnabled, warningBirthdayMessageSCRIPT_ACTION_BUTTON_KEY_NOT_SELECTED, SCRIPT_ACTION_BUTTON_OPTIONS_NOT_SELECTED, SCRIPT_ACTION_ENTITY_METHOD_NOT_SELECTED, SCRIPT_ACTION_FIELD_ATTR_NOT_SELECTED, SCRIPT_ACTION_FIELD_OPTIONS_NOT_SELECTED, SCRIPT_ACTION_IM_METHOD_NOT_SELECTED, SCRIPT_ACTION_NO_ACTION_SELECTED, SCRIPT_ACTION_NO_ENTITY_SELECTED, SCRIPT_CODE_NOT_FOUND, SCRIPT_CREATED_OK, SCRIPT_LANGUAGE_NOT_FOUND, SCRIPT_MANAGER_NOT_DEFAULT_SCRIPT_MANAGER, SCRIPT_NOT_SELECTED, SCRIPT_TITLE_NOT_FOUND, SCRIPT_VALUES_NOT_FOUND| Constructor and Description |
|---|
IMDetailScriptAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept() |
protected void |
addRadioButtonToGroup(ButtonGroup group,
String buttonAttr)
Add the radio a radio button to a group
|
protected void |
cancel() |
protected void |
close() |
protected void |
configureButtonsCombo() |
protected void |
configureComboValues()
Insert the valid values in the TextComboDataField elements
|
protected void |
configureDataFieldsCombo() |
protected void |
configureEntityActionParameters(ScriptAction scriptAction)
Configure all the parameters of an entity script
|
protected void |
configureEntityActionsCombo() |
protected void |
configureEntityNamesCombo() |
protected void |
configureFormActionParameters(ScriptAction scriptAction)
Configure all the parameters of a form action in the
ScriptAction
object |
protected void |
configureInteractionManagerActionsCombo() |
protected void |
configureScriptLanguagesCombo() |
protected void |
configureScriptReferenceComboField() |
protected void |
configureScriptValues() |
protected void |
createNewScript() |
ScriptAction |
createScriptActionWithFormData() |
protected Script |
createScriptFromFormValues(DefaultScriptManager defaultScriptManager) |
protected Script |
createScriptFromReferenceField(DefaultScriptManager defaultScriptManager) |
protected void |
enabledFields(Object radioButtonAttr,
Object oSelected)
Enable or disable all the fields associated with a radio button
|
Object[] |
getAbstractButtons() |
protected String |
getComponentAttr(ScriptAction action) |
ScriptAction |
getScriptAction() |
protected boolean |
isEntityScriptAction()
Check if the selected action is an entity action or not
|
protected boolean |
isFormScriptAction()
Check if the selected action is a form action or not
|
protected boolean |
isRadioButtonSelected(String attr) |
void |
registerInteractionManager(Form form,
IFormManager formManager)
Registers the InteractionManager as form event listener.
|
protected void |
saveScript() |
void |
setInitialState()
Establishes the initial state of the managed form, and sets the form
states in QueryInsert mode that implies that by default the query button
and the insert button will be enables.
|
void |
setInsertMode(boolean defaultServerAction) |
void |
setScriptAction(ScriptAction action) |
void |
setScriptForm(Form form)
Set
|
void |
setUpdateMode()
Sets the mode of the form in Update.
|
addInteractionManagerModeListener, checkBirthday, cloneInteractionManager, dataChanged, dataWillChange, finalize, fireInteractionManagerModeChanged, free, getActionHandler, getCheckModifiedDataChangeEvent, getCurrentMode, getDataChangedEventProcessing, getDefaultActiveFocus, getFieldValues, getImageValues, getModifiedFieldAttributes, getTableValues, getTemplateFields, getTemplateImages, getTemplateTables, injectAnnotatedFields, isValueChangeListenerEnabled, loadActionHandler, print, registerFormKeyBindings, registerRuleEngineFor, removeInteractionManagerModeListener, setCheckModifiedDataChangeEvent, setDataChangedEventProcessing, setDefaultFocusEnabled, setInsertMode, setQueryInsertMode, setQueryMode, setUpdateMethodVersion, setValueChangedEventListener, setValueChangeEventListenerEnabled, setWarningBirthdayMessage, valueChangedpublic static final String ACCEPT_BUTTON
public static final String CANCEL_ACTION_BUTTON
public static final String CLOSE_BUTTON
public static final String INSERT_SCRIPT_BUTTON
public static final String SAVE_SCRIPT_BUTTON
public static final String BUTTONS_COMBO_NAME
public static final String DATA_FIELDS_COMBO_NAME
public static final String ENTITY_METHOD_COMBO_NAME
public static final String IM_ACTIONS_COMBO_NAME
public static final String FORM_ACTION_RADIO_BUTTON
public static final String ENTITY_ACTION_RADIO_BUTTON
public static final String BUTTON_ACTION_RADIO_BUTTON
public static final String DATA_FIELD_RADIO_BUTTON
public static final String IM_ACTION_RADIO_BUTTON
public static final String ENTITY_DATA_CHANGE_LISTENER_RADIO_BUTTON
public static final String TRANSACTIONAL_ENTITY_DATA_CHANGE_LISTENER_RADIO_BUTTON
public static final String ENTITY_DATA_CHANGE_METHOD_RADIO_BUTTON
public static final String TRANSACTIONAL_ENTITY_DATA_CHANGE_METHOD_RADIO_BUTTON
public static final String ENTITY_METHOD_RADIO_BUTTON
public static final String ENTITY_NAME_COMBO_NAME
public static final String ACTION_LISTENER_RADIO_BUTTON
public static final String ACTION_PERFORMED_RADIO_BUTTON
public static final String VALUE_CHANGE_LISTENER_RADIO_BUTTON
public static final String VALUE_CHANGE_METHOD_RADIO_BUTTON
public static final String SCRIPT_SELECTION_CONTAINER_ATTR
public static final String SCRIPT_TITLE
public static final String SCRIPT_LANGUAGE
public static final String SCRIPT_DESCRIPTION
public static final String SCRIPT_CODE
public static final String SCRIPT_KEY
public static String[] buttonActionGroup
public static String[] dataFieldActionGroup
public static String[] imanagerActionGroup
public static String[] formActionGroup
public static String[] entityActionGroup
public static String[] entityMethodGroup
protected ScriptAction scriptAction
protected ReferenceExtDataField scriptReferenceField
protected static String[] scriptEditFields
protected boolean isScriptingEventsEnabled
protected JDialog formDialog
protected Form scriptForm
public void registerInteractionManager(Form form, IFormManager formManager)
InteractionManagerIFormManager when a Form is loaded.
If new listeners wants to be added to some objects of the managed form,
this must be done by overwriting this method.
In this basic implementation of the method, only the form and the form manager are assigned and stored by the InteractionManager in order to have references to these classes later. A basic way of overwriting this must call the super.registerInteractionManager(form, FormsManager)
This method links a key stroke to the standard buttons:
registerInteractionManager in class InteractionManagerform - - the form to be associated with this managerformManager - - the form manager that rules the associationprotected void configureScriptReferenceComboField()
protected void configureScriptValues()
protected void accept()
protected void cancel()
protected void close()
protected Script createScriptFromFormValues(DefaultScriptManager defaultScriptManager) throws Exception
Exceptionprotected void createNewScript()
protected void saveScript()
protected void enabledFields(Object radioButtonAttr, Object oSelected)
radioButtonAttr - Attribute of the radio button that has changedoSelected - It is true if the radio button is selected and the fields must
be enabledprotected void addRadioButtonToGroup(ButtonGroup group, String buttonAttr)
group - Radio buttons groupbuttonAttr - Attribute of the new radio button to add to the grouppublic void setInitialState()
InteractionManagersetInitialState in class InteractionManagerpublic void setUpdateMode()
InteractionManagersetUpdateMode in class InteractionManagerpublic void setScriptForm(Form form)
setScriptForm in interface IDetailScriptActionform - protected void configureComboValues()
protected void configureScriptLanguagesCombo()
protected void configureEntityActionsCombo()
protected void configureEntityNamesCombo()
protected void configureInteractionManagerActionsCombo()
protected void configureDataFieldsCombo()
public Object[] getAbstractButtons()
protected void configureButtonsCombo()
protected boolean isRadioButtonSelected(String attr)
public ScriptAction getScriptAction()
getScriptAction in interface IDetailScriptActionprotected Script createScriptFromReferenceField(DefaultScriptManager defaultScriptManager) throws Exception
Exceptionpublic ScriptAction createScriptActionWithFormData() throws Exception
Exceptionprotected boolean isFormScriptAction()
protected boolean isEntityScriptAction()
protected void configureFormActionParameters(ScriptAction scriptAction) throws Exception
ScriptAction
objectscriptAction - Exceptionprotected void configureEntityActionParameters(ScriptAction scriptAction) throws Exception
scriptAction - Object to configure. This object has to contain the entity
name, and the action in which the script must be executedExceptionpublic void setInsertMode(boolean defaultServerAction)
setInsertMode in interface IDetailScriptActionprotected String getComponentAttr(ScriptAction action)
public void setScriptAction(ScriptAction action)
setScriptAction in interface IDetailScriptActionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.