com.arsdigita.faq.ui
Class FaqPage

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.Page
                      extended bycom.arsdigita.faq.ui.FaqBasePage
                          extended bycom.arsdigita.faq.ui.FaqPage
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable

public class FaqPage
extends FaqBasePage

FaqPage is the base Bebop page for the Faq package. It includes a common header, a footer, and a main "content" area. Components are added to the main content area. FaqPage also contains static utility methods used by the throughout the FAQ package.

Version:
$Revision: #3 $ $Date: 2003/08/15 $
Author:
Tracy Adams

Nested Class Summary
 
Nested classes inherited from class com.arsdigita.faq.ui.FaqBasePage
FaqBasePage.CurrentApplicationLabelPrinter, FaqBasePage.CurrentApplicationLinkPrinter, FaqBasePage.ParentApplicationLinkPrinter
 
Field Summary
static String FAQ_XML_NS
           
static String versionId
           
 
Fields inherited from class com.arsdigita.faq.ui.FaqBasePage
FAQ_BODY_ELEMENT, FAQ_FOOTER_ELEMENT, FAQ_GLOBAL_ELEMENT, FAQ_HEADER_ELEMENT
 
Fields inherited from class com.arsdigita.bebop.Page
m_invisible, m_panel
 
Fields inherited from class com.arsdigita.bebop.BlockStylable
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
FaqPage()
           
FaqPage(String view)
           
 
Method Summary
static String generateHTMLText(String text, String formatType)
          Returns HTML text, converted from the following: HTML -- returns the input pre-formatted - returns the input wrapped in
 Faq getFaq(com.arsdigita.bebop.PageState state)
           
 BigDecimal getFaqID(com.arsdigita.bebop.PageState state)
          gets the ID of the selected faq.
 
Methods inherited from class com.arsdigita.faq.ui.FaqBasePage
add, buildBody, buildContextBar, buildFooter, buildGlobal, buildHeader, buildPage, buildTitle, getBody, getFooter, getGlobal, getHeader, goModal, goUnmodal, lock
 
Methods inherited from class com.arsdigita.bebop.Page
add, addActionListener, addClientStylesheet, addComponent, addComponentStateParam, addGlobalStateParam, addRequestListener, buildDocument, children, contains, fireActionEvent, fireRequestEvent, generateXML, generateXML, generateXMLHelper, get, getComponent, getComponentParameters, getErrorDisplay, getPanel, getParameters, getStateModel, getTitle, getTitle, indexOf, isEmpty, isUsingHttpSession, isVisibleDefault, parameterName, parameterName, prepare, process, process, removeActionListener, removeRequestListener, respond, setErrorDisplay, setPanel, setStyleSheet, setTitle, setTitle, setUsingHttpSession, setVisibleDefault, size, stateContains, stateIndex, stateSize
 
Methods inherited from class com.arsdigita.bebop.BlockStylable
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment
 
Methods inherited from class com.arsdigita.bebop.TextStylable
setBackgroundColor, setColor
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

FAQ_XML_NS

public static final String FAQ_XML_NS
See Also:
Constant Field Values
Constructor Detail

FaqPage

public FaqPage()

FaqPage

public FaqPage(String view)
Method Detail

getFaqID

public BigDecimal getFaqID(com.arsdigita.bebop.PageState state)
gets the ID of the selected faq. If no faq is selected, it returns null

Returns:
the BigDecimal ID of the faq or null if none is selected

getFaq

public Faq getFaq(com.arsdigita.bebop.PageState state)

generateHTMLText

public static String generateHTMLText(String text,
                                      String formatType)
Returns HTML text, converted from the following: HTML -- returns the input pre-formatted - returns the input wrapped in
 tags
  plain - returns the input converted to HTML.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2347 UTC