Class Iowa::Component
In: src/Component.rb
Parent: Element

Provides high level functionality for all component subclasses. Each "page" in an Iowa app is a Component subclass.

Methods

Attributes

parent  [RW] 
prevPage  [RW] 
session  [RW] 
subcomponents  [RW] 

Public Class methods

Provides a method to define component attributes which another component can bind to.

Returns an empty hash.

Handle the initial tasks that establish the state of the new object.

Finds and returns the named component. Other methods calling this one with different values for session and prevPage could induce some interesting (or bizarre) behaviors. See pageNamed(name) below for the standard invocation.

Returns the template for the component.

Public Instance methods

Returns the Application object.

Stub, intended to be overridden in the subclasses, to define behavior that occurs only once, when the object is first created.

componentNamed(name)

Alias for page_named

component_named(name)

Alias for page_named

handleBacktrack()

Alias for handle_backtrack

Stub, intended to be overridden in the subclasses, to define behavior that occurs when backtracking.

Trigger an action on the component.

pageNamed(name)

Alias for page_named

Standard invocation of Component.pageNamed. Returns the component corresponding the the given name.

Stub, intended to be overridden in the subclasses, to define behavior that occurs each time the component is displayed.

[Validate]