public class SettingsElement extends Object implements OdsElement
A typical settings.xml file has two config-item-sets:
ooo:view-settings
config-items for the view settingsconfig-item-map-indexed with a config-item-map-entry per
view
config-items of the viewconfig-item-map-named with a config-item-map
-entry per table
config-items of the table in the wiewooo:configuration-settings
config-items for the configuration settings| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
SETTINGS_NAMESPACE_BY_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
addTableConfig(ConfigItemMapEntry configEntry)
Add a table config.
|
void |
setActiveTable(Table table)
Set the active table
|
void |
setTables(List<Table> tables)
Set the tables
|
void |
setViewSetting(String viewId,
String item,
String value)
Set a view setting
|
void |
write(XMLUtil util,
ZipUTF8Writer writer) |
public void addTableConfig(ConfigItemMapEntry configEntry)
configEntry - the configpublic void write(XMLUtil util, ZipUTF8Writer writer) throws IOException
write in interface OdsElementutil - an util tool to write XML datawriter - the writer to which write the elementIOException - if the element can't be writtenpublic void setActiveTable(Table table)
table - the tableCopyright © 2016–2021. All rights reserved.