Package com.itextpdf.layout
Interface IPropertyContainer
- All Known Subinterfaces:
-
IAbstractElement,IBlockElement,IElement,IFormField,ILargeElement,ILeafElement,ILeafElementRenderer,IRenderer
- All Known Implementing Classes:
-
AbstractElement,AbstractFormFieldRenderer,AbstractOneLineTextFieldRenderer,AbstractRenderer,AbstractSelectField,AbstractSelectFieldRenderer,AbstractTextFieldRenderer,AnonymousInlineBox,AnonymousInlineBoxRenderer,AreaBreak,AreaBreakRenderer,BlockElement,BlockRenderer,Button,ButtonRenderer,Canvas,CanvasRenderer,Cell,CellRenderer,CheckBox,CheckBoxRenderer,CheckBoxRenderer.FlatParagraphRenderer,ColumnDocumentRenderer,ComboBoxField,Div,DivRenderer,Document,DocumentRenderer,ElementPropertyContainer,FlexContainerRenderer,FormField,GridContainer,GridContainerRenderer,Image,ImageRenderer,InputField,InputFieldRenderer,LineRenderer,LineSeparator,LineSeparatorRenderer,Link,LinkRenderer,List,ListBoxField,ListItem,ListItemRenderer,ListRenderer,MulticolContainer,MulticolRenderer,Paragraph,ParagraphRenderer,Radio,RadioRenderer,RootElement,RootRenderer,SelectFieldComboBoxRenderer,SelectFieldListBoxRenderer,SignatureAppearanceRenderer,SignatureFieldAppearance,Style,SvgImage,SvgImageRenderer,Tab,Table,TableRenderer,TabRenderer,TaggingDummyElement,Text,TextArea,TextAreaRenderer,TextRenderer
public interface IPropertyContainer
A generic Map-like interface that defines methods for storing and retrieving objects by an enum key of the
Property type.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteOwnProperty(int property) Deletes the own property of this entity.T1 getDefaultProperty(int property) Gets the default property from this entity.T1 getOwnProperty(int property) Gets own property from this entity.T1 getProperty(int property) Gets the property from this entity.booleanhasOwnProperty(int property) Checks if this entity has the specified property, i.e.booleanhasProperty(int property) Checks if this entity has the specified property.voidsetProperty(int property, Object value) Sets a property for this entity.
-
Method Details
-
hasProperty
boolean hasProperty(int property) Checks if this entity has the specified property. Compared tohasOwnProperty(int), this method can check parent's properties, styles, etc, depending on the origin of the instance- Parameters:
-
property- the property to be checked - Returns:
-
trueif this instance has given property,falseotherwise
-
hasOwnProperty
boolean hasOwnProperty(int property) Checks if this entity has the specified property, i.e. if it was set to this very element earlier- Parameters:
-
property- the property to be checked - Returns:
-
trueif this instance has given own property,falseotherwise
-
getProperty
T1 getProperty (int property) Gets the property from this entity. Compared togetOwnProperty(int), this method can check parent's properties, styles, etc, depending on the origin of the instance- Type Parameters:
-
T1- the return type associated with the property - Parameters:
-
property- the property to be retrieved - Returns:
-
the value of the given property.
nullwill be returned if the property value was not found
-
getOwnProperty
T1 getOwnProperty (int property) Gets own property from this entity. The property must have been set earlier to this entity. If the property is not found,nullwill be returned.- Type Parameters:
-
T1- the return type associated with the property - Parameters:
-
property- the property to be retrieved - Returns:
-
the value of the given own property.
nullwill be returned if the property value was not found
-
getDefaultProperty
T1 getDefaultProperty (int property) Gets the default property from this entity.- Type Parameters:
-
T1- the return type associated with the property - Parameters:
-
property- the property to be retrieved - Returns:
-
the default property value. If the default property is not defined,
nullwill be returned
-
setProperty
Sets a property for this entity.- Parameters:
-
property- the property to be set -
value- the value of the property
-
deleteOwnProperty
void deleteOwnProperty(int property) Deletes the own property of this entity.- Parameters:
-
property- the property to be deleted
-