public class CmsMessageBundleEditorOptions extends java.lang.Object
| Constructor and Description |
|---|
CmsMessageBundleEditorOptions(java.util.Collection<java.util.Locale> locales,
java.util.Locale currentLocale,
org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode currentMode,
org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.I_OptionListener optionListener)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
focusAddKey()
Puts focus on the "Add key" input field, iff it is shown.
|
com.vaadin.ui.Component |
getOptionsComponent()
Returns the options component.
|
void |
setEditedFilePath(java.lang.String editedFilePath)
Sets the path of the edited file in the corresponding display.
|
void |
setEditMode(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode mode)
Set the edit mode.
|
void |
updateShownOptions(boolean showModeSwitch,
boolean showAddKeyOption)
Update which options are shown.
|
public CmsMessageBundleEditorOptions(java.util.Collection<java.util.Locale> locales, java.util.Locale currentLocale, org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode currentMode, org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.I_OptionListener optionListener)
locales - the locales shown in the language switch.currentLocale - the currently edited locale.currentMode - the current edit mode.optionListener - the option listener.public boolean focusAddKey()
true if the focus has been set, false otherwise.public com.vaadin.ui.Component getOptionsComponent()
public void setEditedFilePath(java.lang.String editedFilePath)
editedFilePath - path of the edited file to set.public void setEditMode(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode mode)
mode - the edit mode to set.public void updateShownOptions(boolean showModeSwitch, boolean showAddKeyOption)
showModeSwitch - flag, indicating if the mode switch should be shown.showAddKeyOption - flag, indicating if the "Add key" row should be shown.