eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_BackgroundColor':

Home

Documentation
www.exept.de
Everywhere
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-HTML-StyleSheet-Color and Background
Version:
rev: 1.11 date: 2018/04/26 10:33:01
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.

usage example(s):

    CSS_BackgroundColor newTransparent htmlString.

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 htmlString.
    |backgroundColor|
    backgroundColor := CSS_BackgroundColor with:'#000080'.
    backgroundColor htmlString.
    |backgroundColor|
    backgroundColor := CSS_BackgroundColor with:'#0c0'.
    backgroundColor htmlString.
    CSS_BackgroundColor newTransparent htmlString.
    CSS_BackgroundColor newAqua htmlString.
    CSS_BackgroundColor newBlack htmlString.
    CSS_BackgroundColor newBlue htmlString.
    CSS_BackgroundColor newFuchsia htmlString.
    CSS_BackgroundColor newGray htmlString.
    CSS_BackgroundColor newGreen htmlString.
    CSS_BackgroundColor newLime htmlString.
    CSS_BackgroundColor newMaroon htmlString.
    CSS_BackgroundColor newNavy htmlString.
    CSS_BackgroundColor newOlive htmlString.
    CSS_BackgroundColor newPurple htmlString.
    CSS_BackgroundColor newRed htmlString.
    CSS_BackgroundColor newSilver htmlString.
    CSS_BackgroundColor newTeal htmlString.
    CSS_BackgroundColor newWhite htmlString.
    CSS_BackgroundColor newYellow htmlString.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Wed, 30 Nov 2022 18:38:15 GMT