eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_BorderWidth':

Home

Documentation
www.exept.de
Everywhere
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-HTML-StyleSheet-Box-Border
Version:
rev: 1.11 date: 2018/04/26 10:32:53
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 htmlString.
Create a border-width for all sides:
    |width|
    width := CSS_BorderWidth 
                 top:    '1px' 
                 right:  '2px'
                 bottom: '3px'
                 left:   '4px'.

    width htmlString.
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 htmlString.


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 htmlString.


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