GBParagraphDecoratorItem Class Reference
| Inherits from | GBParagraphItem : NSObject |
| Declared in | GBParagraphDecoratorItem.h GBParagraphDecoratorItem.m |
Overview
Specifies a decorator paragraph item.
Decorator items wrap an array of GBParagraphItem and speficies a decoration to be applied over them. Use decorationType to determine the type of decoration and decoratedItems to get the array of item to be decorated.
Tasks
Item handling
-
- registerItem:Registers the given item to the end ofdecoratedItemsarray. -
- replaceItemsByRegisteringItemsFromArray:Replaces thedecoratedItemsarray with the objects from the given array.
Values
-
decorationTypeThe type of decoration to apply over assigneddecoratedItems. -
decoratedItemsTheGBParagraphIteminstances we're decorating.
Other Methods
-
- descriptionStringValueString value as used in debug description. -
- isBoldDecoratorItemReturnsYESif this is bold decorator item. This is only used to simplify output generation! -
- isItalicsDecoratorItemReturnsYESif this is italics decorator item. This is only used to simplify output generation! -
- isCodeDecoratorItemReturnsYESif this is code decorator item. This is only used to simplify output generation!
Instance Methods
descriptionStringValue
String value as used in debug description.
- (NSString *)descriptionStringValueDiscussion
String value as used in debug description.
By default this returns string value trimmed to a predefined maximum length, but subclasses can override to provide their specific implementation. This is only used for debugging purposes and should not be used for any output generation! See description method implementation for details.
Sending this message is equivalent to sending descriptionForStringValue: to receiver and passing it stringValue as the parameter.
Declared In
GBParagraphDecoratorItem.misBoldDecoratorItem
Returns YES if this is bold decorator item. This is only used to simplify output generation!
- (BOOL)isBoldDecoratorItemDeclared In
GBParagraphDecoratorItem.misCodeDecoratorItem
Returns YES if this is code decorator item. This is only used to simplify output generation!
- (BOOL)isCodeDecoratorItemDeclared In
GBParagraphDecoratorItem.misItalicsDecoratorItem
Returns YES if this is italics decorator item. This is only used to simplify output generation!
- (BOOL)isItalicsDecoratorItemDeclared In
GBParagraphDecoratorItem.mregisterItem:
Registers the given item to the end of decoratedItems array.
- (void)registerItem:(GBParagraphItem *)itemParameters
- item
- The item to register.
Exceptions
- NSException
- Thrown if the given item is
nil.
Declared In
GBParagraphDecoratorItem.hreplaceItemsByRegisteringItemsFromArray:
Replaces the decoratedItems array with the objects from the given array.
- (void)replaceItemsByRegisteringItemsFromArray:(NSArray *)itemsParameters
- items
- The array of
GBParagraphIteminstances to register.
See Also
Declared In
GBParagraphDecoratorItem.hProperties
decoratedItems
The GBParagraphItem instances we're decorating.
@property (readonly) NSArray *decoratedItemsDiscussion
The GBParagraphItem instances we're decorating.
Items can be registered through registerItem: or registerItems: methods.
Declared In
GBParagraphDecoratorItem.hdecorationType
The type of decoration to apply over assigned decoratedItems.
@property (assign) GBDecorationType decorationTypeDeclared In
GBParagraphDecoratorItem.h