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 ofdecoratedItems
array. -
– replaceItemsByRegisteringItemsFromArray:
Replaces thedecoratedItems
array with the objects from the given array.
Values
-
decorationType
The type of decoration to apply over assigneddecoratedItems
. property -
decoratedItems
TheGBParagraphItem
instances we're decorating. property
Other Methods
-
– descriptionStringValue
String value as used in debug description. -
– isBoldDecoratorItem
ReturnsYES
if this is bold decorator item. This is only used to simplify output generation! -
– isItalicsDecoratorItem
ReturnsYES
if this is italics decorator item. This is only used to simplify output generation! -
– isCodeDecoratorItem
ReturnsYES
if this is code decorator item. This is only used to simplify output generation!
Properties
Instance Methods
descriptionStringValue
String value as used in debug description.
- (NSString *)descriptionStringValue
Discussion
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
GBParagraphItem.h@48 -> GBParagraphDecoratorItem.m
isBoldDecoratorItem
Returns YES
if this is bold decorator item. This is only used to simplify output generation!
- (BOOL)isBoldDecoratorItem
Declared In
GBParagraphItem.h@78 -> GBParagraphDecoratorItem.m
isCodeDecoratorItem
Returns YES
if this is code decorator item. This is only used to simplify output generation!
- (BOOL)isCodeDecoratorItem
Declared In
GBParagraphItem.h@84 -> GBParagraphDecoratorItem.m
isItalicsDecoratorItem
Returns YES
if this is italics decorator item. This is only used to simplify output generation!
- (BOOL)isItalicsDecoratorItem
Declared In
GBParagraphItem.h@81 -> GBParagraphDecoratorItem.m
registerItem:
Registers the given item to the end of decoratedItems
array.
- (void)registerItem:(GBParagraphItem *)item
Parameters
- item
- The item to register.
Exceptions
- NSException
- Thrown if the given item is
nil
.
Declared In
GBParagraphDecoratorItem.h