|
Class: CSS_AbstractStylePropertyBox (in HTML)
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
instance creation
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
|
interface-accessing
-
beAuto
-
Set the margin to auto.
-
bottom
-
Return the bottom margin.
-
bottom: aValue
-
Set the bottom side of the margin.
-
left
-
|margin|
margin := CSS_Margin with:'5px'.
margin left.
-
left: aValue
-
Set the left side of the margin.
-
right
-
|margin|
margin := CSS_Margin with:'5px'.
margin right.
-
right: aValue
-
Set the right side of the margin.
-
top
-
|margin|
margin := CSS_Margin with:'5px'.
margin top.
-
top: aValue
-
Set the top side of the margin.
-
top: aTopValue right: aRightValue bottom: aBottomValue left: aLeftValue
-
Set all four sides of the margin in one.
private-accessing
-
bottomIndex
-
Return the index of the bottom-value in the value-collection.
-
leftIndex
-
Return the index of the left-value in the value-collection.
-
rightIndex
-
Return the index of the right-value in the value-collection.
-
topIndex
-
Return the index of the top-value in the value-collection.
private-action
-
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.
-
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.
|