eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_BorderStyle':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: CSS_BorderStyle (in HTML)


Inheritance:

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

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-HTML-StyleSheet-Box-Border
Version:
rev: 1.10 date: 2018/04/26 10:34:04
user: cg
file: HTML__CSS_BorderStyle.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

instance creation
o  newDashed
Create a new border-style initialy set to dashed.

usage example(s):

    CSS_BorderStyle newDashed printHtmlString.

o  newDotted
Create a new border-style initialy set to dotted.

usage example(s):

    CSS_BorderStyle newDotted printHtmlString.

o  newDouble
Create a new border-style initialy set to double.

usage example(s):

    CSS_BorderStyle newDouble printHtmlString.

o  newGroove
Create a new border-style initialy set to groove.

usage example(s):

    CSS_BorderStyle newGroove printHtmlString.

o  newInset
Create a new border-style initialy set to inset.

usage example(s):

    CSS_BorderStyle newInset printHtmlString.

o  newOutset
Create a new border-style initialy set to outset.

usage example(s):

    CSS_BorderStyle newOutset printHtmlString.

o  newRidge
Create a new border-style initialy set to ridge.

usage example(s):

    CSS_BorderStyle newRidge printHtmlString.

o  newSolid
Create a new border-style initialy set to solid.

usage example(s):

    CSS_BorderStyle newSolid printHtmlString.

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


Instance protocol:

interface-accessing
o  beDashed
Set the border-style to dashed.

o  beDotted
Set the border-style to dotted.

o  beDouble
Set the border-style to double.

o  beGroove
Set the border-style to groove.

o  beInset
Set the border-style to inset.

o  beOutset
Set the border-style to outset.

o  beRidge
Set the border-style to ridge.

o  beSolid
Set the border-style to solid.

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


Examples:


Create an empty border-style:
    |style|
    style := CSS_BorderStyle newAuto.
    style printHtmlString.
Create a border-style for all sides:
    |style|
    style := CSS_BorderStyle 
                 top:    #dashed 
                 right:  #dotted
                 bottom: #solid
                 left:   #double.

    style printHtmlString.
Create a border-style with top-left identical values: (This one will reduce to top-left)
    |style|
    style := CSS_BorderStyle 
                 top:    #dashed
                 right:  #dotted
                 bottom: #dashed
                 left:   #dotted.

    style printHtmlString.


Create a border-style with identical values:
(This one will reduce to onme value)
    |style|
    |style|
    style := CSS_BorderStyle 
                 top:    #double
                 right:  #double
                 bottom: #double
                 left:   #double.

    style printHtmlString.


Create a dashed border:
    CSS_BorderStyle newDashed printHtmlString.


Create a dashed border:
    CSS_BorderStyle newDotted printHtmlString.


Create a double border:
    CSS_BorderStyle newDouble printHtmlString.


Create a groove border:
    CSS_BorderStyle newGroove printHtmlString.


Create a inset border:
    CSS_BorderStyle newInset printHtmlString.


Create a none border:
    CSS_BorderStyle newNone printHtmlString.


Create a outset border:
    CSS_BorderStyle newOutset printHtmlString.


Create a ridge border:
    CSS_BorderStyle newRidge printHtmlString.


Create a solid border:
    CSS_BorderStyle newSolid printHtmlString.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 03:43:49 GMT