public class Settings extends Object
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 viewooo:configuration-settings
config-items for the configuration settings| Modifier and Type | Method and Description |
|---|---|
void |
addTable(Table table)
Add a table
|
void |
addTableConfig(ConfigItemMapEntry configEntry)
A a config for a table
|
static Settings |
create() |
List<ConfigBlock> |
getRootBlocks()
Get the root blocks, ie item, item-set, item-map that are at the top of the settings.
|
void |
setActiveTable(Table table)
Set the active table , this is the table that is shown if you open the
file.
|
void |
setTables(List<Table> tables)
Set the tables (replace all existing tables)
|
void |
setViewSetting(String viewId,
String item,
String value)
Set a view setting
|
public static Settings create()
public void addTable(Table table)
table - the table to addpublic void addTableConfig(ConfigItemMapEntry configEntry)
configEntry - the table configpublic List<ConfigBlock> getRootBlocks()
public void setActiveTable(Table table)
table - The table to showpublic void setTables(List<Table> tables)
tables - the tablesCopyright © 2016–2021. All rights reserved.