com.aoindustries.website
Class TextSkin

java.lang.Object
  extended by com.aoindustries.website.Skin
      extended by com.aoindustries.website.TextSkin

public class TextSkin
extends Skin

The skin for the home page of the site.

Author:
AO Industries, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.aoindustries.website.Skin
Skin.Language
 
Field Summary
 
Fields inherited from class com.aoindustries.website.Skin
DOWN, NONE, UP, UP_AND_DOWN
 
Constructor Summary
protected TextSkin()
           
 
Method Summary
 void beginLightArea(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String width, boolean nowrap)
          Begins a light area.
 void beginPopup(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, long groupId, long popupId, java.lang.String width)
          Begins a popup that is in a popup group.
 void beginPopupGroup(javax.servlet.http.HttpServletRequest req, javax.servlet.jsp.JspWriter out, long groupId)
          Begins a popup group.
 void beginWhiteArea(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String width, boolean nowrap)
          Begins a white area.
static void defaultBeginPopup(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, long groupId, long popupId, java.lang.String width, java.lang.String urlBase)
          Default implementation of beginPopup.
static void defaultBeginPopupGroup(javax.servlet.http.HttpServletRequest req, javax.servlet.jsp.JspWriter out, long groupId)
          Default implementation of beginPopupGroup.
static void defaultEndPopup(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, long groupId, long popupId, java.lang.String width, java.lang.String urlBase)
          Default implementation of endPopup.
static void defaultEndPopupGroup(javax.servlet.http.HttpServletRequest req, javax.servlet.jsp.JspWriter out, long groupId)
          Default implementation of endPopupGroup.
static void defaultPrintLinks(javax.servlet.jsp.JspWriter out, PageAttributes pageAttributes)
           
static void defaultPrintPopupClose(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, long groupId, long popupId, java.lang.String urlBase)
          Default implementation of printPopupClose.
 void endContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, PageAttributes pageAttributes, int[] colspans)
          Ends the content area of a page.
 void endContentLine(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, int rowspan, boolean endsInternal)
          Ends one line of content.
 void endLightArea(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out)
          Ends a light area.
 void endPopup(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, long groupId, long popupId, java.lang.String width)
          Ends a popup that is in a popup group.
 void endPopupGroup(javax.servlet.http.HttpServletRequest req, javax.servlet.jsp.JspWriter out, long groupId)
          Ends a popup group.
 void endSkin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, PageAttributes pageAttributes)
          Writes the contents between the page content and the HTML tag (not including the HTML tag itself).
 void endWhiteArea(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out)
          Ends a white area.
 java.lang.String getDisplay(javax.servlet.http.HttpServletRequest req)
          Gets the display value for this skin in the provided locale.
static TextSkin getInstance()
           
static MessageResources getMessageResources(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getName()
          Gets the name of this skin.
 void printAutoIndex(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, PageAttributes pageAttributes)
          Prints the auto index of all the page siblings.
 void printBelowRelatedPages(javax.servlet.http.HttpServletRequest req, javax.servlet.jsp.JspWriter out)
          Prints content below the related pages area on the left.
 void printCommonPages(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out)
          Prints the common pages area, which is at the top of the site.
 void printContentHorizontalDivider(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, int[] colspansAndDirections, boolean endsInternal)
          Prints a horizontal divider of the provided colspans.
 void printContentTitle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String title, int colspan)
          Prints an entire content line including the provided title.
 void printContentVerticalDivider(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, boolean visible, int colspan, int rowspan, java.lang.String align, java.lang.String width)
          Starts one line of content with the initial colspan set to the provided colspan.
 void printCssIncludes(javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String urlBase)
          Prints the lines to include any CSS files.
 void printFavIcon(javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String urlBase)
          Prints the line for the favicon.
static void printGoogleAnalyticsTrackPageViewScript(javax.servlet.http.HttpServletRequest req, java.lang.Appendable out, java.lang.String googleAnalyticsNewTrackingCode)
          Reusable implemention of Google analytics pageview tracking script.
 void printJavaScriptSources(javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String urlBase)
          Prints the lines for any JavaScript sources.
 void printLogo(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, java.lang.String urlBase)
          Print the logo for the top left part of the page.
 void printPopupClose(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, long groupId, long popupId)
          Prints a popup close link/image/button for a popup that is part of a popup group.
 void printSearch(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out)
          Prints the search form, if any exists.
 void startContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, PageAttributes pageAttributes, int[] colspans, java.lang.String width)
          Starts the content area of a page.
 void startContentLine(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, int colspan, java.lang.String align, java.lang.String width)
          Starts one line of content with the initial colspan set to the provided colspan.
 void startSkin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.jsp.JspWriter out, PageAttributes pageAttributes)
          Writes the contents between the HTML tag and the page content (not including the HTML tag itself).
 
Methods inherited from class com.aoindustries.website.Skin
getCharacterSet, getDefaultHttpsUrlBase, getDefaultHttpUrlBase, getHttpsUrlBase, getHttpUrlBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSkin

protected TextSkin()
Method Detail

getInstance

public static TextSkin getInstance()

getName

public java.lang.String getName()
Description copied from class: Skin
Gets the name of this skin.

Specified by:
getName in class Skin

getDisplay

public java.lang.String getDisplay(javax.servlet.http.HttpServletRequest req)
                            throws javax.servlet.jsp.JspException
Description copied from class: Skin
Gets the display value for this skin in the provided locale.

Specified by:
getDisplay in class Skin
Throws:
javax.servlet.jsp.JspException

printLogo

public void printLogo(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp,
                      javax.servlet.jsp.JspWriter out,
                      java.lang.String urlBase)
               throws javax.servlet.jsp.JspException
Print the logo for the top left part of the page.

Throws:
javax.servlet.jsp.JspException

printSearch

public void printSearch(javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse resp,
                        javax.servlet.jsp.JspWriter out)
                 throws javax.servlet.jsp.JspException
Prints the search form, if any exists.

Throws:
javax.servlet.jsp.JspException

printCommonPages

public void printCommonPages(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp,
                             javax.servlet.jsp.JspWriter out)
                      throws javax.servlet.jsp.JspException
Prints the common pages area, which is at the top of the site.

Throws:
javax.servlet.jsp.JspException

printCssIncludes

public void printCssIncludes(javax.servlet.http.HttpServletResponse resp,
                             javax.servlet.jsp.JspWriter out,
                             java.lang.String urlBase)
                      throws javax.servlet.jsp.JspException
Prints the lines to include any CSS files.

Throws:
javax.servlet.jsp.JspException

printJavaScriptSources

public void printJavaScriptSources(javax.servlet.http.HttpServletResponse resp,
                                   javax.servlet.jsp.JspWriter out,
                                   java.lang.String urlBase)
                            throws javax.servlet.jsp.JspException
Prints the lines for any JavaScript sources.

Throws:
javax.servlet.jsp.JspException

printFavIcon

public void printFavIcon(javax.servlet.http.HttpServletResponse resp,
                         javax.servlet.jsp.JspWriter out,
                         java.lang.String urlBase)
                  throws javax.servlet.jsp.JspException
Prints the line for the favicon.

Throws:
javax.servlet.jsp.JspException

getMessageResources

public static MessageResources getMessageResources(javax.servlet.http.HttpServletRequest req)
                                            throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

startSkin

public void startSkin(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp,
                      javax.servlet.jsp.JspWriter out,
                      PageAttributes pageAttributes)
               throws javax.servlet.jsp.JspException
Description copied from class: Skin
Writes the contents between the HTML tag and the page content (not including the HTML tag itself).

Specified by:
startSkin in class Skin
Throws:
javax.servlet.jsp.JspException

defaultPrintLinks

public static void defaultPrintLinks(javax.servlet.jsp.JspWriter out,
                                     PageAttributes pageAttributes)
                              throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

startContent

public void startContent(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse resp,
                         javax.servlet.jsp.JspWriter out,
                         PageAttributes pageAttributes,
                         int[] colspans,
                         java.lang.String width)
                  throws javax.servlet.jsp.JspException
Description copied from class: Skin
Starts the content area of a page. The content area provides additional features such as a nice border, and vertical and horizontal dividers.

Specified by:
startContent in class Skin
Throws:
javax.servlet.jsp.JspException

printContentTitle

public void printContentTitle(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp,
                              javax.servlet.jsp.JspWriter out,
                              java.lang.String title,
                              int colspan)
                       throws javax.servlet.jsp.JspException
Description copied from class: Skin
Prints an entire content line including the provided title. The colspan should match the total colspan in startContent for proper appearance

Specified by:
printContentTitle in class Skin
Throws:
javax.servlet.jsp.JspException

startContentLine

public void startContentLine(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp,
                             javax.servlet.jsp.JspWriter out,
                             int colspan,
                             java.lang.String align,
                             java.lang.String width)
                      throws javax.servlet.jsp.JspException
Description copied from class: Skin
Starts one line of content with the initial colspan set to the provided colspan.

Specified by:
startContentLine in class Skin
Throws:
javax.servlet.jsp.JspException

printContentVerticalDivider

public void printContentVerticalDivider(javax.servlet.http.HttpServletRequest req,
                                        javax.servlet.http.HttpServletResponse resp,
                                        javax.servlet.jsp.JspWriter out,
                                        boolean visible,
                                        int colspan,
                                        int rowspan,
                                        java.lang.String align,
                                        java.lang.String width)
                                 throws javax.servlet.jsp.JspException
Description copied from class: Skin
Starts one line of content with the initial colspan set to the provided colspan.

Specified by:
printContentVerticalDivider in class Skin
Throws:
javax.servlet.jsp.JspException

endContentLine

public void endContentLine(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp,
                           javax.servlet.jsp.JspWriter out,
                           int rowspan,
                           boolean endsInternal)
                    throws javax.servlet.jsp.JspException
Description copied from class: Skin
Ends one line of content.

Specified by:
endContentLine in class Skin
Throws:
javax.servlet.jsp.JspException

printContentHorizontalDivider

public void printContentHorizontalDivider(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse resp,
                                          javax.servlet.jsp.JspWriter out,
                                          int[] colspansAndDirections,
                                          boolean endsInternal)
                                   throws javax.servlet.jsp.JspException
Description copied from class: Skin
Prints a horizontal divider of the provided colspans.

Specified by:
printContentHorizontalDivider in class Skin
Throws:
javax.servlet.jsp.JspException

endContent

public void endContent(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse resp,
                       javax.servlet.jsp.JspWriter out,
                       PageAttributes pageAttributes,
                       int[] colspans)
                throws javax.servlet.jsp.JspException
Description copied from class: Skin
Ends the content area of a page.

Specified by:
endContent in class Skin
Throws:
javax.servlet.jsp.JspException

endSkin

public void endSkin(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse resp,
                    javax.servlet.jsp.JspWriter out,
                    PageAttributes pageAttributes)
             throws javax.servlet.jsp.JspException
Description copied from class: Skin
Writes the contents between the page content and the HTML tag (not including the HTML tag itself).

Specified by:
endSkin in class Skin
Throws:
javax.servlet.jsp.JspException

printGoogleAnalyticsTrackPageViewScript

public static void printGoogleAnalyticsTrackPageViewScript(javax.servlet.http.HttpServletRequest req,
                                                           java.lang.Appendable out,
                                                           java.lang.String googleAnalyticsNewTrackingCode)
                                                    throws java.io.IOException
Reusable implemention of Google analytics pageview tracking script.

Parameters:
googleAnalyticsNewTrackingCode - if null will not print anything
Throws:
java.io.IOException

beginLightArea

public void beginLightArea(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp,
                           javax.servlet.jsp.JspWriter out,
                           java.lang.String width,
                           boolean nowrap)
                    throws javax.servlet.jsp.JspException
Description copied from class: Skin
Begins a light area.

Specified by:
beginLightArea in class Skin
Throws:
javax.servlet.jsp.JspException

endLightArea

public void endLightArea(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse resp,
                         javax.servlet.jsp.JspWriter out)
                  throws javax.servlet.jsp.JspException
Description copied from class: Skin
Ends a light area.

Specified by:
endLightArea in class Skin
Throws:
javax.servlet.jsp.JspException

beginWhiteArea

public void beginWhiteArea(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp,
                           javax.servlet.jsp.JspWriter out,
                           java.lang.String width,
                           boolean nowrap)
                    throws javax.servlet.jsp.JspException
Description copied from class: Skin
Begins a white area.

Specified by:
beginWhiteArea in class Skin
Throws:
javax.servlet.jsp.JspException

endWhiteArea

public void endWhiteArea(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse resp,
                         javax.servlet.jsp.JspWriter out)
                  throws javax.servlet.jsp.JspException
Description copied from class: Skin
Ends a white area.

Specified by:
endWhiteArea in class Skin
Throws:
javax.servlet.jsp.JspException

printAutoIndex

public void printAutoIndex(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp,
                           javax.servlet.jsp.JspWriter out,
                           PageAttributes pageAttributes)
                    throws javax.servlet.jsp.JspException
Description copied from class: Skin
Prints the auto index of all the page siblings.

Specified by:
printAutoIndex in class Skin
Throws:
javax.servlet.jsp.JspException

printBelowRelatedPages

public void printBelowRelatedPages(javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.jsp.JspWriter out)
                            throws javax.servlet.jsp.JspException
Prints content below the related pages area on the left.

Throws:
javax.servlet.jsp.JspException

beginPopupGroup

public void beginPopupGroup(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.jsp.JspWriter out,
                            long groupId)
                     throws javax.servlet.jsp.JspException
Begins a popup group.

Specified by:
beginPopupGroup in class Skin
Throws:
javax.servlet.jsp.JspException
See Also:
defaultBeginPopupGroup(javax.servlet.http.HttpServletRequest, javax.servlet.jsp.JspWriter, long)

defaultBeginPopupGroup

public static void defaultBeginPopupGroup(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.jsp.JspWriter out,
                                          long groupId)
                                   throws javax.servlet.jsp.JspException
Default implementation of beginPopupGroup.

Throws:
javax.servlet.jsp.JspException

endPopupGroup

public void endPopupGroup(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.jsp.JspWriter out,
                          long groupId)
                   throws javax.servlet.jsp.JspException
Ends a popup group.

Specified by:
endPopupGroup in class Skin
Throws:
javax.servlet.jsp.JspException
See Also:
defaultEndPopupGroup(javax.servlet.http.HttpServletRequest, javax.servlet.jsp.JspWriter, long)

defaultEndPopupGroup

public static void defaultEndPopupGroup(javax.servlet.http.HttpServletRequest req,
                                        javax.servlet.jsp.JspWriter out,
                                        long groupId)
                                 throws javax.servlet.jsp.JspException
Default implementation of endPopupGroup.

Throws:
javax.servlet.jsp.JspException

beginPopup

public void beginPopup(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse resp,
                       javax.servlet.jsp.JspWriter out,
                       long groupId,
                       long popupId,
                       java.lang.String width)
                throws javax.servlet.jsp.JspException
Begins a popup that is in a popup group.

Specified by:
beginPopup in class Skin
Throws:
javax.servlet.jsp.JspException
See Also:
defaultBeginPopup(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.jsp.JspWriter, long, long, java.lang.String, java.lang.String)

defaultBeginPopup

public static void defaultBeginPopup(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp,
                                     javax.servlet.jsp.JspWriter out,
                                     long groupId,
                                     long popupId,
                                     java.lang.String width,
                                     java.lang.String urlBase)
                              throws javax.servlet.jsp.JspException
Default implementation of beginPopup.

Throws:
javax.servlet.jsp.JspException

printPopupClose

public void printPopupClose(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse resp,
                            javax.servlet.jsp.JspWriter out,
                            long groupId,
                            long popupId)
                     throws javax.servlet.jsp.JspException
Prints a popup close link/image/button for a popup that is part of a popup group.

Specified by:
printPopupClose in class Skin
Throws:
javax.servlet.jsp.JspException
See Also:
defaultPrintPopupClose(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.jsp.JspWriter, long, long, java.lang.String)

defaultPrintPopupClose

public static void defaultPrintPopupClose(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse resp,
                                          javax.servlet.jsp.JspWriter out,
                                          long groupId,
                                          long popupId,
                                          java.lang.String urlBase)
                                   throws javax.servlet.jsp.JspException
Default implementation of printPopupClose.

Throws:
javax.servlet.jsp.JspException

endPopup

public void endPopup(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp,
                     javax.servlet.jsp.JspWriter out,
                     long groupId,
                     long popupId,
                     java.lang.String width)
              throws javax.servlet.jsp.JspException
Ends a popup that is in a popup group.

Specified by:
endPopup in class Skin
Throws:
javax.servlet.jsp.JspException
See Also:
defaultEndPopup(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.jsp.JspWriter, long, long, java.lang.String, java.lang.String)

defaultEndPopup

public static void defaultEndPopup(javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse resp,
                                   javax.servlet.jsp.JspWriter out,
                                   long groupId,
                                   long popupId,
                                   java.lang.String width,
                                   java.lang.String urlBase)
                            throws javax.servlet.jsp.JspException
Default implementation of endPopup.

Throws:
javax.servlet.jsp.JspException