eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_BorderStyle':

Home

everywhere
www.exept.de
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-StyleSheet-Box-Border
Version:
rev: 1.9 date: 2008/09/03 09:54:49
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.

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

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

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

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

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

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

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

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 6.1.1; WebServer 1.620 at exept:8081; Fri, 10 Feb 2012 15:07:04 GMT