eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_BackgroundColor':

Home

everywhere
www.exept.de
for:
[back]

Class: CSS_BackgroundColor (in HTML)


Inheritance:

   Object
   |
   +--HTML::CSS_AbstractStyleObject
      |
      +--HTML::CSS_AbstractStyleProperty
         |
         +--HTML::CSS_BackgroundColor

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-StyleSheet-Color and Background
Version:
rev: 1.9 date: 2007/11/05 21:09:29
user: cg
file: HTML__CSS_BackgroundColor.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

instance creation
o  newTransparent
Create a new background-color initialy set to transparent.

required protocol
o  keyName
Return a key name for background-color.


Instance protocol:

interface-accessing
o  beNAvy
Set the background-color to navy.

o  beTransparent
Set the background-color to transparent.

required-visiting
o  acceptHTMLVisitor: aVisitor
visitor pattern: dispatch me to the visitor


Examples:



    |backgroundColor|
    backgroundColor := CSS_BackgroundColor with:#red.
    backgroundColor printHtmlString.


    |backgroundColor|
    backgroundColor := CSS_BackgroundColor with:'#000080'.
    backgroundColor printHtmlString.


    |backgroundColor|
    backgroundColor := CSS_BackgroundColor with:'#0c0'.
    backgroundColor printHtmlString.


    CSS_BackgroundColor newTransparent printHtmlString.


    CSS_BackgroundColor newAqua printHtmlString.


    CSS_BackgroundColor newBlack printHtmlString.


    CSS_BackgroundColor newBlue printHtmlString.


    CSS_BackgroundColor newFuchsia printHtmlString.


    CSS_BackgroundColor newGray printHtmlString.


    CSS_BackgroundColor newGreen printHtmlString.


    CSS_BackgroundColor newLime printHtmlString.


    CSS_BackgroundColor newMaroon printHtmlString.


    CSS_BackgroundColor newNavy printHtmlString.


    CSS_BackgroundColor newOlive printHtmlString.


    CSS_BackgroundColor newPurple printHtmlString.


    CSS_BackgroundColor newRed printHtmlString.


    CSS_BackgroundColor newSilver printHtmlString.


    CSS_BackgroundColor newTeal printHtmlString.


    CSS_BackgroundColor newWhite printHtmlString.


    CSS_BackgroundColor newYellow printHtmlString.


ST/X 6.1.1; WebServer 1.620 at exept:8081; Sat, 11 Feb 2012 00:24:35 GMT