Packagepotomac.ui
Classpublic class FolderFactory
InheritanceFolderFactory Inheritance Object

FolderFactory creates folders for Page instances. FolderFactory is available for injection.



Public Methods
 MethodDefined By
  
FolderFactory(injector:Injector, bundleService:IBundleService)
Callers should not construct FolderFactory's.
FolderFactory
  
createFolder(type:String, defaultType:String):Folder
Creates a folder of the given type or the defaultType is there is no FolderType extension for the given type.
FolderFactory
Constructor Detail
FolderFactory()Constructor
public function FolderFactory(injector:Injector, bundleService:IBundleService)

Callers should not construct FolderFactory's. FolderFactory is available for injection.

Parameters
injector:Injector
 
bundleService:IBundleService
Method Detail
createFolder()method
public function createFolder(type:String, defaultType:String):Folder

Creates a folder of the given type or the defaultType is there is no FolderType extension for the given type.

Parameters

type:String — folder type to create
 
defaultType:String — default type if the primary folder type is not found.

Returns
Folder — a folder instance.