mixconfig.panels.TermsAndConditionsPanel Class Reference

Inherits mixconfig::panels::MixConfigPanel, java::awt::event::ActionListener, gui::DateListener, javax::swing::event::ChangeListener, and java::awt::event::MouseListener.

List of all members.

Public Member Functions

void setConfiguration (MixConfiguration a_conf) throws IOException
void dateChanged ()
void itemStateChanged (ItemEvent a_event)
void stateChanged (ChangeEvent event)
void mouseClicked (MouseEvent a_event)
void mouseEntered (MouseEvent a_event)
void mouseExited (MouseEvent a_event)
void mousePressed (MouseEvent a_event)
void mouseReleased (MouseEvent a_event)
void actionPerformed (ActionEvent ae)
void focusGained (FocusEvent e)
void focusLost (FocusEvent e)
synchronized Vector< String > check ()
String getHelpContext ()
Container getHelpExtractionDisplayContext ()
void load () throws IOException
void save () throws IOException
void updateFromInfoService ()

Static Public Member Functions

static TermsAndConditionsPanel get ()

Static Public Attributes

static final String XML_ELEMENT_TEMPLATES = "Templates"
static final String XML_ELEMENT_TEMPLATE = "Template"
static final String XML_ELEMENT_TC_OPTIONS = "TermsAndConditionsOptions"
static final String XML_ELEMENT_TC_TRANSLATION_IMPORTS = "TCTranslationImports"
static final String XMLPATH_TERMS_OPTIONS = XML_ELEMENT_TC_OPTIONS
static final String PRIVACY_POLICY_TAG = "PrivacyPolicyUrl"
static final String LEGAL_OPINIONS_TAG = "LegalOpinionsUrl"
static final String OPERATIONAL_AGREEMENT_TAG = "OperationalAgreementUrl"
static final String TEMPLATE_EXPORT_ENCODING = "UTF-8"

Protected Member Functions

void load (Container a_container) throws IOException
void load (JComboBox a_comboBox)
void save (Container a_container) throws IOException
void save (JComboBox a_comboBox)
void enableComponents ()

Package Functions

TermsAndConditionsTranslation getPreviewTranslation ()
boolean isPreviewPossible ()

Package Attributes

TitledGridBagPanel panelOperatorLeft
TitledGridBagPanel panelOperatorRight
DateFormat m_dateFormatter = new SimpleDateFormat(TermsAndConditions.DATE_FORMAT)

Static Package Attributes

static final String MSG_PREVIEW = TermsAndConditionsPanel.class.getName() + "_preview"
static final String MSG_RESET = TermsAndConditionsPanel.class.getName() + "_reset"
static final String MSG_TEMPLATE_LABEL = TermsAndConditionsPanel.class.getName() + "_templateLabel"
static final String MSG_TRANSLATION_LABEL = TermsAndConditionsPanel.class.getName() + "_translationLabel"
static final String MSG_SECTION = TermsAndConditionsPanel.class.getName() + "_section"
static final String MSG_PARAGRAPH = TermsAndConditionsPanel.class.getName() + "_paragraph"
static final String MSG_CONTENT = TermsAndConditionsPanel.class.getName() + "_content"

Private Member Functions

 TermsAndConditionsPanel ()
void load (Document configDoc) throws IOException
DialogResult< LanguageMapper > showAddTranslationsDialog (String selected)
boolean checkTemplatePath (TemplateReferenceID templateRefID)
void showContentDialog ()
TermsAndConditionsTemplate getSelectedTemplate ()
void actionAddTranslation ()
void actionPreviewTranslation ()
void actionLoadTemplateFromFile ()
void actionImportWhole ()
void actionExportTemplate ()
void actionDeleteTemplate ()
void actionSetTemplatePath ()
void actionDeleteTranslation ()
void actionDefaultTranslation ()
void loadDate ()
void loadTranslation (TermsAndConditionsTranslation translation)
ServiceOperator getServiceOperator ()
void initTermsAndConditionsSettings (Document configDoc) throws IOException, NotLoadedException
void initGeneralAddress ()
void initTemplates (Document configDoc)
void initTranslations ()
synchronized void saveAndLog ()
InfoServiceTableModel getInfoServices ()
TermsAndConditionsTemplate getTemplateFromURL (URL templateURL) throws IOException, XMLParseException
void saveDate ()
Element getSpecifiedTemplatesElement (Document ownerDoc)
void saveTranslation (TermsAndConditionsTranslation translation)
void saveGeneralAddress ()
void clearTranslationFields ()
boolean selectTemplateReferenceID (String templateReferenceID)
boolean isATranslationLoaded ()
boolean isTemplateReferenceIdInComboBox (String templateReferenceID)
boolean isAddTranslationPossible ()
boolean isDefaultLanguagePossible ()
boolean isDeleteTranslationPossible ()
boolean isWrongTemplateSet ()
boolean isContentManagementPossible ()
boolean isTransformationPossible ()
boolean isExportTemplatePossible ()
boolean isDeleteTemplatePossible ()
TermsAndConditionsTranslation getSelectedTranslation ()
TemplateReferenceID getSelectedTemplateReferenceID ()
Vector< TemplateReferenceIDgetAllTemplateReferenceIds ()
Vector< TemplateReferenceIDgetMatchingTemplateReferenceIDs (String type, String langCode, Date date)

Static Private Member Functions

static void updateObject (JComboBox comboBox, Object o, boolean selectForced)
static void removeFirstPlaceHolder (JComboBox comboBox)

Private Attributes

DefaultComboBoxModel m_modelReferenceIDs = new DefaultComboBoxModel()
JComboBox m_cbReferenceIDs = new JComboBox(m_modelReferenceIDs)
JComboBox m_cbTranslations = new JComboBox()
boolean m_bIgnoreTemplateWarningMessages = false
JButton m_btnPreview
JButton m_btnAddTranslation
JButton m_btnDefaultTranslation
JButton m_btnDeleteTranslation
JLabel m_lblWarningWrongTemplate
JLabel m_lblNoticeTemplatePath
JButton m_btnInfoServiceTemplate
JButton m_btnFileTemplate
JButton m_btnExportTemplate
JButton m_btnDeleteTemplate
JButton m_btnImportWhole
JButton m_btnContent
DatePanel m_pnlDate
JTextField m_tf_templateURL
JTextField m_tf_general_additionalInfo
JTextField m_tf_general_Street
JTextField m_tf_general_Post
JTextField m_tf_general_City
JTextField m_tf_general_VAT
JTextField m_tf_general_Fax
JTextField m_tf_general_Venue
JTextField m_tf_lang_additionalInfo
JTextField m_tf_lang_Street
JTextField m_tf_lang_Post
JTextField m_tf_lang_City
JTextField m_tf_lang_Fax
JTextField m_tf_lang_Venue
JTextField m_tfUrlPP
JTextField m_tfUrlLO
JTextField m_tfUrlOA
JTextField m_tf_templateReferenceId
PropertyToComponentMapping
< JTextField >[] 
generalAddressMappings
PropertyToComponentMapping
< JTextField >[] 
translationAddressMappings
PropertyToComponentMapping
< JTextField >[] 
translationUrlMappings
TermsAndConditions operatorTCs = null
OperatorAddress generalAddress = null
String selectedLanguage = ""
File lastOpened = null
boolean savingEnabled = true
boolean m_bInitialisingTranslations = false

Static Private Attributes

static final String MSG_TC_CAPTION = TermsAndConditionsPanel.class.getName() + "_caption"
static final String MSG_TITLE_OP_GENERAL = TermsAndConditionsPanel.class.getName() + "_titleopGeneral"
static final String MSG_TITLE_OP_WITH_LANG = TermsAndConditionsPanel.class.getName() + "_titleopWithLang"
static final String MSG_TITLE_URLS = TermsAndConditionsPanel.class.getName() + "_titleurls"
static final String MSG_ADD_TRANSLATIONS_DIALOG = TermsAndConditionsPanel.class.getName() + "_addTranslationsDialog"
static final String MSG_TEMPLATE_MISMATCH = TermsAndConditionsPanel.class.getName() + "_templateMismatch"
static final String MSG_INFOSERVICE = TermsAndConditionsPanel.class.getName() + "_infoservice"
static final String MSG_URL = TermsAndConditionsPanel.class.getName() + "_url"
static final String MSG_PATH = TermsAndConditionsPanel.class.getName() + "_path"
static final String MSG_FILE = TermsAndConditionsPanel.class.getName() + "_file"
static final String MSG_EXPORT = TermsAndConditionsPanel.class.getName() + "_export"
static final String MSG_DEFAULT_TRANSLATION = TermsAndConditionsPanel.class.getName() + "_defaultTranslation"
static final String MSG_AVAIL_LANG_LABEL = TermsAndConditionsPanel.class.getName() + "_availableLanguagesLabel"
static final String MSG_VALID_LABEL = TermsAndConditionsPanel.class.getName() + "_validLabel"
static final String MSG_LANGUAGE_LABEL = TermsAndConditionsPanel.class.getName() + "_languageLabel"
static final String MSG_STREET_LABEL = TermsAndConditionsPanel.class.getName() + "_streetLabel"
static final String MSG_ZIP_LABEL = TermsAndConditionsPanel.class.getName() + "_zipLabel"
static final String MSG_CITY_LABEL = TermsAndConditionsPanel.class.getName() + "_cityLabel"
static final String MSG_FAX_LABEL = TermsAndConditionsPanel.class.getName() + "_faxLabel"
static final String MSG_ADDITIONAL_INFO_LABEL = TermsAndConditionsPanel.class.getName() + "_additionalInfoLabel"
static final String MSG_VAT_LABEL = TermsAndConditionsPanel.class.getName() + "_vatLabel"
static final String MSG_VENUE_LABEL = TermsAndConditionsPanel.class.getName() + "_venueLabel"
static final String MSG_PRIVACY_POLICY_LABEL = TermsAndConditionsPanel.class.getName() + "_privacyPolicyURLLabel"
static final String MSG_LEGAL_OPINIONS_LABEL = TermsAndConditionsPanel.class.getName() + "_legalOpinionsURLLabel"
static final String MSG_OP_AGREEMENT_LABEL = TermsAndConditionsPanel.class.getName() + "_operationalAgreementURLLabel"
static final String MSG_PHOLDER_NONE_AVAIL = TermsAndConditionsPanel.class.getName() + "_pholderNoneAvail"
static final String MSG_PHOLDER_ADD_TRANSLATION = TermsAndConditionsPanel.class.getName() + "_pholderAddTranslation"
static final String MSG_PHOLDER_UPDATE = TermsAndConditionsPanel.class.getName() + "_pholderUpdate"
static final String MSG_FILE_EXISTS = TermsAndConditionsPanel.class.getName() + "_fileExists"
static final String MSG_SAVE_FILE_ERROR = TermsAndConditionsPanel.class.getName() + "_saveFileError"
static final String MSG_LOAD_FILE_ERROR = TermsAndConditionsPanel.class.getName() + "_loadFileError"
static final String ACTION_CMD_ADD_TRANSLATION = "addTranslation"
static final String MSG_EDIT_CONTENT = TermsAndConditionsPanel.class.getName() + "_editContent"
static final String MSG_IMPORT_WHOLE = TermsAndConditionsPanel.class.getName() + "_importWhole"
static final String MSG_TEMPLATE_NOT_LOADED = TermsAndConditionsPanel.class.getName() + "_templateNotLoaded"
static final String MSG_TEMPLATE_NOT_LOADED_TITLE = TermsAndConditionsPanel.class.getName() + "_templateNotLoadedTitle"
static final String MSG_TEMPLATE_NOT_DEFINED = TermsAndConditionsPanel.class.getName() + "_templateNotDefined"
static final String MSG_TEMPLATE_NOT_DEFINED_TITLE = TermsAndConditionsPanel.class.getName() + "_templateNotDefinedTitle"
static final String MSG_WARNING_TEMPLATE_LANGUAGE = TermsAndConditionsPanel.class.getName() + "_warningTemplateLanguage"
static final String MSG_RECOMMEND_MIX_PATH = TermsAndConditionsPanel.class.getName() + "_recommendMixPath"
static Vector< LanguageMapper > LANGUAGE_CHOICE
static TermsAndConditionsPanel panelSingleton = null

Classes

class  ComboBoxPlaceHolder
class  DialogResult< ResultType >
class  NotLoadedException
class  PropertyToComponentMapping< ComponentType extends Component >
class  TemplateReferenceID


Detailed Description

This panel is used by mix operators to enter customized information to the standard terms and conditions.

Author:
renner, simon

Constructor & Destructor Documentation

mixconfig.panels.TermsAndConditionsPanel.TermsAndConditionsPanel (  )  [private]

Constructor

References mixconfig.panels.TermsAndConditionsPanel.generalAddressMappings, mixconfig.panels.MixConfigPanel.getInitialConstraints(), mixconfig.panels.TermsAndConditionsPanel.m_btnAddTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnContent, mixconfig.panels.TermsAndConditionsPanel.m_btnDefaultTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnDeleteTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnDeleteTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnExportTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnFileTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnImportWhole, mixconfig.panels.TermsAndConditionsPanel.m_btnInfoServiceTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnPreview, mixconfig.panels.TermsAndConditionsPanel.m_cbReferenceIDs, mixconfig.panels.TermsAndConditionsPanel.m_cbTranslations, mixconfig.panels.TermsAndConditionsPanel.m_lblNoticeTemplatePath, mixconfig.panels.TermsAndConditionsPanel.m_lblWarningWrongTemplate, mixconfig.panels.TermsAndConditionsPanel.m_pnlDate, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_additionalInfo, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_City, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_Fax, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_Post, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_Street, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_VAT, mixconfig.panels.TermsAndConditionsPanel.m_tf_general_Venue, mixconfig.panels.TermsAndConditionsPanel.m_tf_lang_additionalInfo, mixconfig.panels.TermsAndConditionsPanel.m_tf_lang_City, mixconfig.panels.TermsAndConditionsPanel.m_tf_lang_Fax, mixconfig.panels.TermsAndConditionsPanel.m_tf_lang_Post, mixconfig.panels.TermsAndConditionsPanel.m_tf_lang_Street, mixconfig.panels.TermsAndConditionsPanel.m_tf_lang_Venue, mixconfig.panels.TermsAndConditionsPanel.m_tf_templateReferenceId, mixconfig.panels.TermsAndConditionsPanel.m_tf_templateURL, mixconfig.panels.TermsAndConditionsPanel.m_tfUrlLO, mixconfig.panels.TermsAndConditionsPanel.m_tfUrlOA, mixconfig.panels.TermsAndConditionsPanel.m_tfUrlPP, mixconfig.panels.MixConfigPanel.MAX_COLUMN_LENGTH, mixconfig.panels.TermsAndConditionsPanel.MSG_ADDITIONAL_INFO_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_CITY_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_DEFAULT_TRANSLATION, mixconfig.panels.TermsAndConditionsPanel.MSG_EDIT_CONTENT, mixconfig.panels.TermsAndConditionsPanel.MSG_EXPORT, mixconfig.panels.TermsAndConditionsPanel.MSG_FAX_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_FILE, mixconfig.panels.TermsAndConditionsPanel.MSG_IMPORT_WHOLE, mixconfig.panels.TermsAndConditionsPanel.MSG_INFOSERVICE, mixconfig.panels.TermsAndConditionsPanel.MSG_LANGUAGE_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_LEGAL_OPINIONS_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_OP_AGREEMENT_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_PATH, mixconfig.panels.TermsAndConditionsPanel.MSG_PREVIEW, mixconfig.panels.TermsAndConditionsPanel.MSG_PRIVACY_POLICY_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_STREET_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_TC_CAPTION, mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_OP_GENERAL, mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_OP_WITH_LANG, mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_URLS, mixconfig.panels.TermsAndConditionsPanel.MSG_TRANSLATION_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_URL, mixconfig.panels.TermsAndConditionsPanel.MSG_VALID_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_VAT_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_VENUE_LABEL, mixconfig.panels.TermsAndConditionsPanel.MSG_ZIP_LABEL, mixconfig.panels.TermsAndConditionsPanel.panelOperatorLeft, mixconfig.panels.TermsAndConditionsPanel.panelOperatorRight, mixconfig.panels.TermsAndConditionsPanel.selectedLanguage, mixconfig.panels.TermsAndConditionsPanel.translationAddressMappings, and mixconfig.panels.TermsAndConditionsPanel.translationUrlMappings.

Referenced by mixconfig.panels.TermsAndConditionsPanel.get().


Member Function Documentation

static TermsAndConditionsPanel mixconfig.panels.TermsAndConditionsPanel.get (  )  [static]

void mixconfig.panels.TermsAndConditionsPanel.setConfiguration ( MixConfiguration  a_mixConf  )  throws IOException

Informs the panel about a new Mix configuration and makes it load the attribute values from the configuration object into the text fields, combo boxes etc.

Parameters:
a_mixConf The new configuration
Exceptions:
IOException If an error occurs while transferring the data

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.TermsAndConditionsPanel.enableComponents().

void mixconfig.panels.TermsAndConditionsPanel.dateChanged (  ) 

Implement DateListener

References mixconfig.panels.TermsAndConditionsPanel.saveAndLog().

void mixconfig.panels.TermsAndConditionsPanel.itemStateChanged ( ItemEvent  a_event  ) 

Implement ItemListener

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.TermsAndConditionsPanel.enableComponents(), mixconfig.panels.TermsAndConditionsPanel.TemplateReferenceID.getDate(), mixconfig.panels.TermsAndConditionsPanel.getMatchingTemplateReferenceIDs(), mixconfig.panels.TermsAndConditionsPanel.TemplateReferenceID.getReferenceID(), mixconfig.panels.TermsAndConditionsPanel.getSelectedTemplateReferenceID(), mixconfig.panels.TermsAndConditionsPanel.getSelectedTranslation(), mixconfig.panels.TermsAndConditionsPanel.TemplateReferenceID.getSource(), mixconfig.panels.TermsAndConditionsPanel.TemplateReferenceID.getType(), mixconfig.panels.TermsAndConditionsPanel.TemplateReferenceID.isComplete(), mixconfig.panels.TermsAndConditionsPanel.loadTranslation(), mixconfig.panels.TermsAndConditionsPanel.m_bIgnoreTemplateWarningMessages, mixconfig.panels.TermsAndConditionsPanel.m_bInitialisingTranslations, mixconfig.panels.TermsAndConditionsPanel.m_cbReferenceIDs, mixconfig.panels.TermsAndConditionsPanel.m_cbTranslations, mixconfig.panels.TermsAndConditionsPanel.m_lblWarningWrongTemplate, mixconfig.panels.TermsAndConditionsPanel.m_tf_templateURL, mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_OP_WITH_LANG, mixconfig.panels.TermsAndConditionsPanel.panelOperatorRight, mixconfig.panels.TermsAndConditionsPanel.saveAndLog(), mixconfig.panels.TermsAndConditionsPanel.selectedLanguage, and mixconfig.panels.TermsAndConditionsPanel.selectTemplateReferenceID().

Referenced by mixconfig.panels.TermsAndConditionsPanel.initTranslations(), and mixconfig.panels.TermsAndConditionsPanel.showAddTranslationsDialog().

void mixconfig.panels.TermsAndConditionsPanel.stateChanged ( ChangeEvent  event  ) 

void mixconfig.panels.TermsAndConditionsPanel.mouseClicked ( MouseEvent  a_event  ) 

void mixconfig.panels.TermsAndConditionsPanel.mouseEntered ( MouseEvent  a_event  ) 

void mixconfig.panels.TermsAndConditionsPanel.mouseExited ( MouseEvent  a_event  ) 

void mixconfig.panels.TermsAndConditionsPanel.mousePressed ( MouseEvent  a_event  ) 

void mixconfig.panels.TermsAndConditionsPanel.mouseReleased ( MouseEvent  a_event  ) 

void mixconfig.panels.TermsAndConditionsPanel.actionPerformed ( ActionEvent  ae  ) 

Implement ActionListener

References mixconfig.panels.TermsAndConditionsPanel.actionAddTranslation(), mixconfig.panels.TermsAndConditionsPanel.actionDefaultTranslation(), mixconfig.panels.TermsAndConditionsPanel.actionDeleteTemplate(), mixconfig.panels.TermsAndConditionsPanel.actionDeleteTranslation(), mixconfig.panels.TermsAndConditionsPanel.actionExportTemplate(), mixconfig.panels.TermsAndConditionsPanel.actionImportWhole(), mixconfig.panels.TermsAndConditionsPanel.actionLoadTemplateFromFile(), mixconfig.panels.TermsAndConditionsPanel.actionPreviewTranslation(), mixconfig.panels.TermsAndConditionsPanel.enableComponents(), mixconfig.panels.TermsAndConditionsPanel.getSelectedTranslation(), mixconfig.panels.TermsAndConditionsPanel.m_btnAddTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnContent, mixconfig.panels.TermsAndConditionsPanel.m_btnDefaultTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnDeleteTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnDeleteTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnExportTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnFileTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnImportWhole, mixconfig.panels.TermsAndConditionsPanel.m_btnInfoServiceTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnPreview, mixconfig.panels.TermsAndConditionsPanel.m_cbReferenceIDs, mixconfig.panels.TermsAndConditionsPanel.m_modelReferenceIDs, mixconfig.panels.TermsAndConditionsPanel.saveAndLog(), mixconfig.panels.TermsAndConditionsPanel.selectTemplateReferenceID(), mixconfig.panels.TermsAndConditionsPanel.showContentDialog(), and mixconfig.panels.TermsAndConditionsPanel.updateFromInfoService().

Referenced by mixconfig.panels.TermsAndConditionsPanel.showAddTranslationsDialog().

void mixconfig.panels.TermsAndConditionsPanel.focusGained ( FocusEvent  e  ) 

Reimplemented from mixconfig.panels.MixConfigPanel.

void mixconfig.panels.TermsAndConditionsPanel.focusLost ( FocusEvent  e  ) 

synchronized Vector<String> mixconfig.panels.TermsAndConditionsPanel.check (  )  [virtual]

String mixconfig.panels.TermsAndConditionsPanel.getHelpContext (  ) 

Implement IHelpContext

Container mixconfig.panels.TermsAndConditionsPanel.getHelpExtractionDisplayContext (  ) 

Implement IHelpContext

void mixconfig.panels.TermsAndConditionsPanel.load (  )  throws IOException

Loads the attribute values from the configuration object into the panel's controls. This method iterates through all components of the panel and reads their names using the getName() method. If the name is not null, it retrieves the configuration attribute with the same name and sets the value of the component (text field, combo box etc.) according to the attribute value.

Exceptions:
IOException If loading an attribute from the configuration fails

Reimplemented from mixconfig.panels.MixConfigPanel.

Referenced by mixconfig.panels.TermsAndConditionsPanel.actionImportWhole(), and mixconfig.panels.TermsAndConditionsPanel.stateChanged().

void mixconfig.panels.TermsAndConditionsPanel.load ( Document  configDoc  )  throws IOException [private]

void mixconfig.panels.TermsAndConditionsPanel.save (  )  throws IOException

void mixconfig.panels.TermsAndConditionsPanel.load ( Container  a_container  )  throws IOException [protected]

TODO: Add general support for DatePanels to the load() method in MixConfigPanel.java?

Parameters:
a_container 

Reimplemented from mixconfig.panels.MixConfigPanel.

void mixconfig.panels.TermsAndConditionsPanel.load ( JComboBox  a_comboBox  )  [protected]

void mixconfig.panels.TermsAndConditionsPanel.save ( Container  a_container  )  throws IOException [protected]

TODO: Add support for DatePanels to the save() method in MixConfigPanel?

Parameters:
a_container 

Reimplemented from mixconfig.panels.MixConfigPanel.

void mixconfig.panels.TermsAndConditionsPanel.save ( JComboBox  a_comboBox  )  [protected]

void mixconfig.panels.TermsAndConditionsPanel.enableComponents (  )  [protected, virtual]

Enables used and disables unused components. Some configuration values are mutually exclusive; the panels must ensure that of two components corresponding to contradictory attributes, only one at a time is enabled.

Implements mixconfig.panels.MixConfigPanel.

References mixconfig.panels.TermsAndConditionsPanel.checkTemplatePath(), mixconfig.panels.TermsAndConditionsPanel.getSelectedTemplateReferenceID(), mixconfig.panels.TermsAndConditionsPanel.isAddTranslationPossible(), mixconfig.panels.TermsAndConditionsPanel.isATranslationLoaded(), mixconfig.panels.TermsAndConditionsPanel.isContentManagementPossible(), mixconfig.panels.TermsAndConditionsPanel.isDefaultLanguagePossible(), mixconfig.panels.TermsAndConditionsPanel.isDeleteTemplatePossible(), mixconfig.panels.TermsAndConditionsPanel.isDeleteTranslationPossible(), mixconfig.panels.TermsAndConditionsPanel.isExportTemplatePossible(), mixconfig.panels.TermsAndConditionsPanel.isPreviewPossible(), mixconfig.panels.TermsAndConditionsPanel.isWrongTemplateSet(), mixconfig.panels.TermsAndConditionsPanel.m_btnAddTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnContent, mixconfig.panels.TermsAndConditionsPanel.m_btnDefaultTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnDeleteTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnDeleteTranslation, mixconfig.panels.TermsAndConditionsPanel.m_btnExportTemplate, mixconfig.panels.TermsAndConditionsPanel.m_btnPreview, mixconfig.panels.TermsAndConditionsPanel.m_cbReferenceIDs, mixconfig.panels.TermsAndConditionsPanel.m_cbTranslations, mixconfig.panels.TermsAndConditionsPanel.m_lblNoticeTemplatePath, mixconfig.panels.TermsAndConditionsPanel.m_lblWarningWrongTemplate, mixconfig.panels.TermsAndConditionsPanel.m_tf_templateURL, mixconfig.panels.TermsAndConditionsPanel.MSG_PHOLDER_ADD_TRANSLATION, mixconfig.panels.TermsAndConditionsPanel.MSG_PHOLDER_UPDATE, and mixconfig.panels.TermsAndConditionsPanel.panelOperatorRight.

Referenced by mixconfig.panels.TermsAndConditionsPanel.actionPerformed(), mixconfig.panels.TermsAndConditionsPanel.focusLost(), mixconfig.panels.TermsAndConditionsPanel.itemStateChanged(), and mixconfig.panels.TermsAndConditionsPanel.setConfiguration().

DialogResult<LanguageMapper> mixconfig.panels.TermsAndConditionsPanel.showAddTranslationsDialog ( String  selected  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.checkTemplatePath ( TemplateReferenceID  templateRefID  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.showContentDialog (  )  [private]

TermsAndConditionsTemplate mixconfig.panels.TermsAndConditionsPanel.getSelectedTemplate (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionAddTranslation (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionPreviewTranslation (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionLoadTemplateFromFile (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionImportWhole (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionExportTemplate (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionDeleteTemplate (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionSetTemplatePath (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionDeleteTranslation (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.actionDefaultTranslation (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.loadDate (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.loadTranslation ( TermsAndConditionsTranslation  translation  )  [private]

ServiceOperator mixconfig.panels.TermsAndConditionsPanel.getServiceOperator (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.initTermsAndConditionsSettings ( Document  configDoc  )  throws IOException, NotLoadedException [private]

void mixconfig.panels.TermsAndConditionsPanel.initGeneralAddress (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.initTemplates ( Document  configDoc  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.initTranslations (  )  [private]

synchronized void mixconfig.panels.TermsAndConditionsPanel.saveAndLog (  )  [private]

InfoServiceTableModel mixconfig.panels.TermsAndConditionsPanel.getInfoServices (  )  [private]

TermsAndConditionsTemplate mixconfig.panels.TermsAndConditionsPanel.getTemplateFromURL ( URL  templateURL  )  throws IOException, XMLParseException [private]

loads a TC template from the corresponding URL saves it in the IS Database puts it's ReferenceID in the corresponding combobox and returns the template if it could be loaded.

Parameters:
templateURL 
Returns:
Exceptions:
IOException 
XMLParseException 

Referenced by mixconfig.panels.TermsAndConditionsPanel.actionSetTemplatePath(), mixconfig.panels.TermsAndConditionsPanel.initTemplates(), and mixconfig.panels.TermsAndConditionsPanel.updateFromInfoService().

void mixconfig.panels.TermsAndConditionsPanel.updateFromInfoService (  ) 

void mixconfig.panels.TermsAndConditionsPanel.saveDate (  )  [private]

Save the date to the "Date" element as well as to the "serial" attribute

References mixconfig.panels.TermsAndConditionsPanel.m_dateFormatter, and mixconfig.panels.TermsAndConditionsPanel.operatorTCs.

Referenced by mixconfig.panels.TermsAndConditionsPanel.save().

Element mixconfig.panels.TermsAndConditionsPanel.getSpecifiedTemplatesElement ( Document  ownerDoc  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.saveTranslation ( TermsAndConditionsTranslation  translation  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.saveGeneralAddress (  )  [private]

void mixconfig.panels.TermsAndConditionsPanel.clearTranslationFields (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.selectTemplateReferenceID ( String  templateReferenceID  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isATranslationLoaded (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isTemplateReferenceIdInComboBox ( String  templateReferenceID  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isAddTranslationPossible (  )  [private]

TermsAndConditionsTranslation mixconfig.panels.TermsAndConditionsPanel.getPreviewTranslation (  )  [package]

boolean mixconfig.panels.TermsAndConditionsPanel.isDefaultLanguagePossible (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isDeleteTranslationPossible (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isWrongTemplateSet (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isPreviewPossible (  )  [package]

boolean mixconfig.panels.TermsAndConditionsPanel.isContentManagementPossible (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isTransformationPossible (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isExportTemplatePossible (  )  [private]

boolean mixconfig.panels.TermsAndConditionsPanel.isDeleteTemplatePossible (  )  [private]

TermsAndConditionsTranslation mixconfig.panels.TermsAndConditionsPanel.getSelectedTranslation (  )  [private]

TemplateReferenceID mixconfig.panels.TermsAndConditionsPanel.getSelectedTemplateReferenceID (  )  [private]

Vector<TemplateReferenceID> mixconfig.panels.TermsAndConditionsPanel.getAllTemplateReferenceIds (  )  [private]

Vector<TemplateReferenceID> mixconfig.panels.TermsAndConditionsPanel.getMatchingTemplateReferenceIDs ( String  type,
String  langCode,
Date  date 
) [private]

static void mixconfig.panels.TermsAndConditionsPanel.updateObject ( JComboBox  comboBox,
Object  o,
boolean  selectForced 
) [static, private]

static void mixconfig.panels.TermsAndConditionsPanel.removeFirstPlaceHolder ( JComboBox  comboBox  )  [static, private]


Member Data Documentation

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TC_CAPTION = TermsAndConditionsPanel.class.getName() + "_caption" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_OP_GENERAL = TermsAndConditionsPanel.class.getName() + "_titleopGeneral" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_OP_WITH_LANG = TermsAndConditionsPanel.class.getName() + "_titleopWithLang" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TITLE_URLS = TermsAndConditionsPanel.class.getName() + "_titleurls" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_ADD_TRANSLATIONS_DIALOG = TermsAndConditionsPanel.class.getName() + "_addTranslationsDialog" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_MISMATCH = TermsAndConditionsPanel.class.getName() + "_templateMismatch" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_INFOSERVICE = TermsAndConditionsPanel.class.getName() + "_infoservice" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PREVIEW = TermsAndConditionsPanel.class.getName() + "_preview" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_URL = TermsAndConditionsPanel.class.getName() + "_url" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PATH = TermsAndConditionsPanel.class.getName() + "_path" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_FILE = TermsAndConditionsPanel.class.getName() + "_file" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_RESET = TermsAndConditionsPanel.class.getName() + "_reset" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_EXPORT = TermsAndConditionsPanel.class.getName() + "_export" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_DEFAULT_TRANSLATION = TermsAndConditionsPanel.class.getName() + "_defaultTranslation" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_AVAIL_LANG_LABEL = TermsAndConditionsPanel.class.getName() + "_availableLanguagesLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_VALID_LABEL = TermsAndConditionsPanel.class.getName() + "_validLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_LABEL = TermsAndConditionsPanel.class.getName() + "_templateLabel" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_LANGUAGE_LABEL = TermsAndConditionsPanel.class.getName() + "_languageLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TRANSLATION_LABEL = TermsAndConditionsPanel.class.getName() + "_translationLabel" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_STREET_LABEL = TermsAndConditionsPanel.class.getName() + "_streetLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_ZIP_LABEL = TermsAndConditionsPanel.class.getName() + "_zipLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_CITY_LABEL = TermsAndConditionsPanel.class.getName() + "_cityLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_FAX_LABEL = TermsAndConditionsPanel.class.getName() + "_faxLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_ADDITIONAL_INFO_LABEL = TermsAndConditionsPanel.class.getName() + "_additionalInfoLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_VAT_LABEL = TermsAndConditionsPanel.class.getName() + "_vatLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_VENUE_LABEL = TermsAndConditionsPanel.class.getName() + "_venueLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PRIVACY_POLICY_LABEL = TermsAndConditionsPanel.class.getName() + "_privacyPolicyURLLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_LEGAL_OPINIONS_LABEL = TermsAndConditionsPanel.class.getName() + "_legalOpinionsURLLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_OP_AGREEMENT_LABEL = TermsAndConditionsPanel.class.getName() + "_operationalAgreementURLLabel" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PHOLDER_NONE_AVAIL = TermsAndConditionsPanel.class.getName() + "_pholderNoneAvail" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PHOLDER_ADD_TRANSLATION = TermsAndConditionsPanel.class.getName() + "_pholderAddTranslation" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PHOLDER_UPDATE = TermsAndConditionsPanel.class.getName() + "_pholderUpdate" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_FILE_EXISTS = TermsAndConditionsPanel.class.getName() + "_fileExists" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_SAVE_FILE_ERROR = TermsAndConditionsPanel.class.getName() + "_saveFileError" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_LOAD_FILE_ERROR = TermsAndConditionsPanel.class.getName() + "_loadFileError" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.ACTION_CMD_ADD_TRANSLATION = "addTranslation" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_SECTION = TermsAndConditionsPanel.class.getName() + "_section" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_PARAGRAPH = TermsAndConditionsPanel.class.getName() + "_paragraph" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_CONTENT = TermsAndConditionsPanel.class.getName() + "_content" [static, package]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_EDIT_CONTENT = TermsAndConditionsPanel.class.getName() + "_editContent" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_IMPORT_WHOLE = TermsAndConditionsPanel.class.getName() + "_importWhole" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_NOT_LOADED = TermsAndConditionsPanel.class.getName() + "_templateNotLoaded" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_NOT_LOADED_TITLE = TermsAndConditionsPanel.class.getName() + "_templateNotLoadedTitle" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_NOT_DEFINED = TermsAndConditionsPanel.class.getName() + "_templateNotDefined" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_TEMPLATE_NOT_DEFINED_TITLE = TermsAndConditionsPanel.class.getName() + "_templateNotDefinedTitle" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_WARNING_TEMPLATE_LANGUAGE = TermsAndConditionsPanel.class.getName() + "_warningTemplateLanguage" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.MSG_RECOMMEND_MIX_PATH = TermsAndConditionsPanel.class.getName() + "_recommendMixPath" [static, private]

final String mixconfig.panels.TermsAndConditionsPanel.XML_ELEMENT_TC_OPTIONS = "TermsAndConditionsOptions" [static]

Terms and conditions paths

final String mixconfig.panels.TermsAndConditionsPanel.PRIVACY_POLICY_TAG = "PrivacyPolicyUrl" [static]

final String mixconfig.panels.TermsAndConditionsPanel.LEGAL_OPINIONS_TAG = "LegalOpinionsUrl" [static]

final String mixconfig.panels.TermsAndConditionsPanel.OPERATIONAL_AGREEMENT_TAG = "OperationalAgreementUrl" [static]

DefaultComboBoxModel mixconfig.panels.TermsAndConditionsPanel.m_modelReferenceIDs = new DefaultComboBoxModel() [private]

JComboBox mixconfig.panels.TermsAndConditionsPanel.m_cbTranslations = new JComboBox() [private]

PropertyToComponentMapping<JTextField> [] mixconfig.panels.TermsAndConditionsPanel.generalAddressMappings [private]

PropertyToComponentMapping<JTextField> [] mixconfig.panels.TermsAndConditionsPanel.translationAddressMappings [private]

PropertyToComponentMapping<JTextField> [] mixconfig.panels.TermsAndConditionsPanel.translationUrlMappings [private]

TermsAndConditions mixconfig.panels.TermsAndConditionsPanel.operatorTCs = null [private]

Vector<LanguageMapper> mixconfig.panels.TermsAndConditionsPanel.LANGUAGE_CHOICE [static, private]

Initial value:

 
    LanguageMapper.getLocalisedLanguages()

Referenced by mixconfig.panels.TermsAndConditionsPanel.showAddTranslationsDialog().

DateFormat mixconfig.panels.TermsAndConditionsPanel.m_dateFormatter = new SimpleDateFormat(TermsAndConditions.DATE_FORMAT) [package]


The documentation for this class was generated from the following file:

Generated on Mon Nov 16 23:24:48 2009 for MixConfig by  doxygen 1.5.6