Class EditableResourceBundle.ThreadSettings
- Enclosing class:
EditableResourceBundle
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreates new settings in a disable state.ThreadSettings
(String setValueUrl, EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText) -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
boolean
Sets the mode.setModifyAllText
(boolean modifyAllText) Sets the modify all text flag.setSettings
(EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText) Creates a new settings instance that shares the underlying sequences, map, and lookup context, but with a different configuration.
-
Constructor Details
-
ThreadSettings
public ThreadSettings(String setValueUrl, EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText) -
ThreadSettings
public ThreadSettings()Creates new settings in a disable state.
-
-
Method Details
-
setSettings
public EditableResourceBundle.ThreadSettings setSettings(EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText) Creates a new settings instance that shares the underlying sequences, map, and lookup context, but with a different configuration.These new settings are not automatically associated with the current thread. That must be done via
EditableResourceBundle.setThreadSettings(com.aoapps.util.i18n.EditableResourceBundle.ThreadSettings)
.- Returns:
- When configuration unchanged, returns
this
, otherwise a new instance with shared underlying sequences, map, and lookup context.
-
getMode
-
setMode
public EditableResourceBundle.ThreadSettings setMode(EditableResourceBundle.ThreadSettings.Mode mode) Sets the mode.These new settings are not automatically associated with the current thread. That must be done via
EditableResourceBundle.setThreadSettings(com.aoapps.util.i18n.EditableResourceBundle.ThreadSettings)
.- Returns:
- When configuration unchanged, returns
this
, otherwise a new instance with shared underlying sequences, map, and lookup context. - See Also:
-
getModifyAllText
public boolean getModifyAllText() -
setModifyAllText
Sets the modify all text flag.These new settings are not automatically associated with the current thread. That must be done via
EditableResourceBundle.setThreadSettings(com.aoapps.util.i18n.EditableResourceBundle.ThreadSettings)
.- Returns:
- When configuration unchanged, returns
this
, otherwise a new instance with shared underlying sequences, map, and lookup context. - See Also:
-