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
,FlexContainer
,FlexContainerRenderer
,FormField
,FormFieldValueNonTrimmingTextRenderer
,GridContainer
,GridContainerRenderer
,GridItemRenderer
,Image
,ImageRenderer
,InputField
,InputFieldRenderer
,LineRenderer
,LineSeparator
,LineSeparatorRenderer
,Link
,LinkRenderer
,List
,ListBoxField
,ListItem
,ListItemRenderer
,ListRenderer
,ListRenderer.ConstantFontTextRenderer
,MulticolContainer
,MulticolRenderer
,Paragraph
,ParagraphRenderer
,Radio
,RadioRenderer
,RadioRenderer.FlatParagraphRenderer
,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 theProperty
type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteOwnProperty(int property)
Deletes the own property of this entity.<T1> T1
getDefaultProperty(int property)
Gets the default property from this entity.<T1> T1
getOwnProperty(int property)
Gets own property from this entity.<T1> T1
getProperty(int property)
Gets the property from this entity.boolean
hasOwnProperty(int property)
Checks if this entity has the specified property, i.e.boolean
hasProperty(int property)
Checks if this entity has the specified property.void
setProperty(int property, java.lang.Object value)
Sets a property for this entity.
-
-
-
Method Detail
-
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:
true
if this instance has given property,false
otherwise
-
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:
true
if this instance has given own property,false
otherwise
-
getProperty
<T1> 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.
null
will be returned if the property value was not found
-
getOwnProperty
<T1> 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,null
will 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.
null
will be returned if the property value was not found
-
getDefaultProperty
<T1> 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,
null
will be returned
-
setProperty
void setProperty(int property, java.lang.Object value)
Sets a property for this entity.- Parameters:
property
- the property to be setvalue
- the value of the property
-
deleteOwnProperty
void deleteOwnProperty(int property)
Deletes the own property of this entity.- Parameters:
property
- the property to be deleted
-
-