eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_BorderWidth':

Home

everywhere
www.exept.de
for:
[back]

Class: CSS_BorderWidth (in HTML)


Inheritance:

   Object
   |
   +--HTML::CSS_AbstractStyleObject
      |
      +--HTML::CSS_AbstractStyleProperty
         |
         +--HTML::CSS_AbstractStylePropertyBox
            |
            +--HTML::CSS_BorderWidth

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-StyleSheet-Box-Border
Version:
rev: 1.9 date: 2008/09/03 09:53:48
user: cg
file: HTML__CSS_BorderWidth.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

required protocol
o  keyName
Return a key name for border-width.


Instance protocol:

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


Examples:


Create an empty border-width:


    |width|
    width := CSS_BorderWidth newAuto.
    width printHtmlString.
Create a border-width for all sides:


    |width|
    width := CSS_BorderWidth 
                 top:    '1px' 
                 right:  '2px'
                 bottom: '3px'
                 left:   '4px'.

    width printHtmlString.
Create a border-width with top-left identical values: (This one will reduce to top-left)


    |width|
    width := CSS_BorderWidth 
                 top:    '1px'
                 right:  '2px'
                 bottom: '1px'
                 left:   '2px'.

    width printHtmlString.




Create a border-width with identical values:
(This one will reduce to onme value)


    |width|
    width := CSS_BorderWidth 
                 top:    '4px'
                 right:  '4px'
                 bottom: '4px'
                 left:   '4px'.

    width printHtmlString.




ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 16:53:33 GMT