| Package | Description |
|---|---|
| com.github.jferard.fastods |
This package contains all data style, ie the parameters for data (boolean, currency, float, ..
.) display.
|
| com.github.jferard.fastods.datastyle | |
| com.github.jferard.fastods.odselement | |
| com.github.jferard.fastods.style |
| Modifier and Type | Method and Description |
|---|---|
TableCellStyle |
NamedOdsDocument.addChildCellStyle(TableCellStyle style,
DataStyle dataStyle) |
boolean |
NamedOdsDocument.addDataStyle(DataStyle dataStyle)
Add a data style to this document.
|
void |
RowCellWalkerImpl.setDataStyle(DataStyle dataStyle)
Deprecated.
|
void |
TableCellImpl.setDataStyle(DataStyle dataStyle) |
void |
AbstractTableCell.setDataStyle(DataStyle dataStyle) |
void |
TableCell.setDataStyle(DataStyle dataStyle)
Set a custom data style.
|
void |
TableCellWalker.setDataStyle(DataStyle dataStyle) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DataStyleBuilder<S extends DataStyle,T extends DataStyleBuilder<S,T>>
A data style builder.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanStyle
OpenDocument 16.27.23 - number:boolean-style
|
class |
CurrencyStyle
16.27.7 number:currency-style
|
class |
DateStyle
content.xml/office:document-content/office:automatic-styles/number:
date-style styles.xml/office:document-styles/office:styles/number:date-style
To create a custom `DateStyle`, first create a new `DateStyleFormat` and pass it to
a `DateStyleBuilder`:
DateStyleFormat f = new DateStyleFormat(DateStyleFormat.text("Month of "),
DateStyleFormat.LONG_TEXTUAL_MONTH);
DateStyle s = DateStyleBuilder("my style", Locale.US).dateFormat(f).build();
... // use the style
Note that the bricks from `TimeStyleFormat` are allowed too:
DateStyleFormat f = new DateStyleFormat(TimeStyleFormat.MINUTES);
DateStyle s = DateStyleBuilder("my style", Locale.US).dateFormat(f).build();
... // use the style
|
class |
FloatStyle
WHERE ?
|
class |
FractionStyle
WHERE ?
|
class |
PercentageStyle
WHERE ?
|
class |
ScientificNumberStyle
WHERE ?
|
class |
TextDataStyle
16.27.25 number:text-style
|
class |
TimeStyle
content.xml/office:document-content/office:automatic-styles/number:
time-style styles.xml/office:document-styles/office:styles/number:time-style
|
| Modifier and Type | Method and Description |
|---|---|
DataStyle |
DataStyles.getDataStyle(CellType type) |
| Modifier and Type | Method and Description |
|---|---|
TableCellStyle |
OdsElements.addChildCellStyle(TableCellStyle style,
DataStyle dataStyle) |
TableCellStyle |
StylesContainerImpl.addChildCellStyle(TableCellStyle style,
DataStyle dataStyle) |
TableCellStyle |
StylesContainer.addChildCellStyle(TableCellStyle style,
DataStyle dataStyle)
Add a child style that mixes the cell style with a data style to the container
|
boolean |
OdsElements.addDataStyle(DataStyle dataStyle) |
boolean |
StylesContainerImpl.addDataStyle(DataStyle dataStyle) |
boolean |
StylesContainer.addDataStyle(DataStyle dataStyle)
Create a new data style into styles container.
|
| Modifier and Type | Method and Description |
|---|---|
DataStyle |
TableCellStyle.getDataStyle() |
| Modifier and Type | Method and Description |
|---|---|
TableCellStyleBuilder |
TableCellStyleBuilder.dataStyle(DataStyle ds)
Set the data style for this TableFamilyStyle to ds.
|
| Constructor and Description |
|---|
TableCellStyleBuilder(String name,
boolean hidden,
Borders borders,
Margins margins,
DataStyle dataStyle,
Color backgroundColor,
TextProperties textProperties,
CellAlign textAlign,
VerticalAlign verticalAlign,
boolean wrap,
TableCellStyle parentCellStyle,
Angle textRotating)
Reserved to TableCellStyle.toBuilder()
|
Copyright © 2016–2021. All rights reserved.