eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_AbstractStylePropertyBox':

Home

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

Class: CSS_AbstractStylePropertyBox (in HTML)


Inheritance:

   Object
   |
   +--HTML::CSS_AbstractStyleObject
      |
      +--HTML::CSS_AbstractStyleProperty
         |
         +--HTML::CSS_AbstractStylePropertyBox
            |
            +--HTML::CSS_BorderColor
            |
            +--HTML::CSS_BorderStyle
            |
            +--HTML::CSS_BorderWidth
            |
            +--HTML::CSS_Margin
            |
            +--HTML::CSS_Padding

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

Class protocol:

instance creation
o  bottom: aValue
Create a new box where only the bottom value is set.
Perhaps you could use also a more concrete subclass
(CSS_BottomMargin, CSS_BottomPadding) to do this.

o  left: aValue
Create a new box where only the left value is set.
Perhaps you could use also a more concrete subclass
(CSS_BottomMargin, CSS_BottomPadding) to do this.

o  right: aValue
Create a new box where only the right value is set.
Perhaps you could use also a more concrete subclass
(CSS_BottomMargin, CSS_BottomPadding) to do this.

o  top: aValue
Create a new box where only the top value is set.
Perhaps you could use also a more concrete subclass
(CSS_BottomMargin, CSS_BottomPadding) to do this.

o  top: aTopValue right: aRightValue
Create a new box with two values.
The values represent the left and
right value and the top and bottom
value. If the values are equal
there will be reduce to one value.

o  top: aTopValue right: aRightValue bottom: aBottomValue left: aLeftValue
Create a new box with all four values.
If values are identical they will be
reduced to a shorter description.

queries
o  isAbstract
Return if this class is an abstract class.
Return true for this class but false for all subclasses.
To have an abstract subclass implement this method there again.

usage example(s):

    CSS_AbstractStylePropertyBox isAbstract.
    CSS_Color isAbstract.


Instance protocol:

interface-accessing
o  beAuto
Set the margin to auto.

o  bottom
Return the bottom margin.

o  bottom: aValue
Set the bottom side of the margin.

o  left
|margin|
margin := CSS_Margin with:'5px'.
margin left.

o  left: aValue
Set the left side of the margin.

o  right
|margin|
margin := CSS_Margin with:'5px'.
margin right.

o  right: aValue
Set the right side of the margin.

o  top
|margin|
margin := CSS_Margin with:'5px'.
margin top.

o  top: aValue
Set the top side of the margin.

o  top: aTopValue right: aRightValue bottom: aBottomValue left: aLeftValue
Set all four sides of the margin in one.

private-accessing
o  bottomIndex
Return the index of the bottom-value in the value-collection.

o  leftIndex
Return the index of the left-value in the value-collection.

o  rightIndex
Return the index of the right-value in the value-collection.

o  topIndex
Return the index of the top-value in the value-collection.

private-action
o  expandTo4
One side of the box is about to change.
The box was having equal sides before
with one value, now it is necessary
to have four values for each side one.

o  reduce
Try to remove the duplicate values by reducing
to one value if all elements are equal or to
two values if top-bottom(1-3) or left right(2-4)
are equal.



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