GBParagraphDecoratorItem Class Reference

Inherits from GBParagraphItem : NSObject
Declared in GBParagraphDecoratorItem.h<br />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

Values

Other Methods

Instance Methods

description

descriptionStringValue

init

isBoldDecoratorItem

isCodeDecoratorItem

isItalicsDecoratorItem

registerItem:

Registers the given item to the end of decoratedItems array.

- (void)registerItem:(GBParagraphItem *)item

Parameters

item
The item to register.

Discussion

Registers the given item to the end of decoratedItems array.

Exceptions

NSException
Thrown if the given item is nil .

Declared In

GBParagraphDecoratorItem.h
GBParagraphDecoratorItem.m

replaceItemsByRegisteringItemsFromArray:

Replaces the decoratedItems array with the objects from the given array.

- (void)replaceItemsByRegisteringItemsFromArray:(NSArray *)items

Parameters

items
The array of GBParagraphItem instances to register.

Discussion

Replaces the decoratedItems array with the objects from the given array.

See Also

Declared In

GBParagraphDecoratorItem.h
GBParagraphDecoratorItem.m

Properties

decoratedItems

The GBParagraphItem instances we're decorating.

@property (readonly) NSArray *decoratedItems

Discussion

The GBParagraphItem instances we're decorating.

Items can be registered through registerItem: or registerItems: methods.

Declared In

GBParagraphDecoratorItem.h

decorationType

The type of decoration to apply over assigned decoratedItems .

@property (assign) GBDecorationType decorationType

Discussion

The type of decoration to apply over assigned decoratedItems .

Declared In

GBParagraphDecoratorItem.h