www.element4solution.com

e4s.util
Class E4StyleAttributes

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.util.E4StyleAttributes

public class E4StyleAttributes
extends E4Object

Hold attributes for the styles.


Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4StyleAttributes()
           
E4StyleAttributes(E4StyleAttributes style)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 java.lang.Object clone()
           
 java.lang.String get(java.lang.String style_name)
           
 java.lang.String getStyle()
           
 void remove(java.lang.String style_name)
           
 void set(E4StyleAttributes style)
          Set all style attributes as defined in parameter style.
 void set(java.lang.String style_name, int style_attribute)
          Add a style.
 void set(java.lang.String style_name, java.lang.String style_attribute)
          Add a style.
 void setBackgroundColor(E4Color color)
           
 void setBorderCollapse_Collapse()
           
 void setBorderCollapse_Inherit()
           
 void setBorderCollapse_Seperate()
           
 void setBorderColor(E4Color color)
          Set border color (left, right, top, bottom).
 void setBorderSpacing(int size_pixels)
           
 void setBorderStyle_bottom_hidden()
           
 void setBorderStyle_bottom_solid(int width, E4Color color)
           
 void setBorderStyle_dashed()
           
 void setBorderStyle_dotted()
           
 void setBorderStyle_double()
           
 void setBorderStyle_groove()
           
 void setBorderStyle_hidden()
           
 void setBorderStyle_inset()
           
 void setBorderStyle_left_solid(int width, E4Color color)
           
 void setBorderStyle_ridge()
           
 void setBorderStyle_right_solid(int width, E4Color color)
           
 void setBorderStyle_solid()
           
 void setBorderStyle_top_solid(int width, E4Color color)
           
 void setBorderWidth(int pixel)
          Set border width (left, right, top, bottom) in pixels.
 void setBottom(int bottom_pixel)
           
 void setClip(int x_pixel, int y_pixel, int width_pixel, int height_pixel)
          Set the clipping area.
 void setColor(E4Color color)
           
 void setDimension(int width_pixel, int height_pixel)
           
 void setDirection_ltr()
           
 void setDirection_rtl()
          http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position
 void setDisplay(java.lang.String mode)
          Change the visibility.
 void setEmtyCells_hide()
           
 void setEmtyCells_show()
           
 void setFontFamily_ARIAL()
           
 void setFontFamily_COURIER()
           
 void setFontFamily_VERDANA()
           
 void setFontFamily(java.lang.String font)
           
 void setFontSizePixels(int pixels)
           
 void setFontSizePoints(int points)
           
 void setFontVariant_normal()
           
 void setFontVariant_smallCaps()
           
 void setFontWeight_bold()
           
 void setFontWeight_bolder()
           
 void setFontWeight_lighter()
           
 void setFontWeight_normal()
           
 void setFontWeight(float width)
          Set the font width, this is finally a number like 100,200,300,..,900 which is representet by a float value (0.0f means 100, 1.0f means 900).
 void setHeight(int height_pixel)
           
 void setLeft(int left_pixel)
           
 void setMargin(int width_pixel)
           
 void setMarginBottom(int width_pixel)
           
 void setMarginLeft(int width_pixel)
           
 void setMarginRight(int width_pixel)
           
 void setMarginTop(int width_pixel)
           
 void setOpacity(float opacity)
          Set Opacity (affects style-names "opacity" and "filter")
 void setOverflow_auto()
          Overflow auto - The display is decided by the browser.
 void setOverflow_hidden()
          Overflow visible - The content is clipped to match the element box and will not be shown outside the element box.
 void setOverflow_scroll()
          Overflow scroll - The content is clipped to match the element box and can be shown by using a scroll bar.
 void setOverflow_visible()
          Overflow visible - The content is not clipped and may be shown outside the element box.
 void setOverflowX_auto()
          Overflow auto - The display is decided by the browser.
 void setOverflowX_hidden()
          Overflow visible - The content is clipped to match the element box and will not be shown outside the element box.
 void setOverflowX_scroll()
          Overflow scroll - The content is clipped to match the element box and can be shown by using a scroll bar.
 void setOverflowX_visible()
          Overflow visible - The content is not clipped and may be shown outside the element box.
 void setOverflowY_auto()
          Overflow auto - The display is decided by the browser.
 void setOverflowY_hidden()
          Overflow visible - The content is clipped to match the element box and will not be shown outside the element box.
 void setOverflowY_scroll()
          Overflow scroll - The content is clipped to match the element box and can be shown by using a scroll bar.
 void setOverflowY_visible()
          Overflow visible - The content is not clipped and may be shown outside the element box.
 void setPadding_bottom(int width_pixel)
           
 void setPadding_left(int width_pixel)
           
 void setPadding_right(int width_pixel)
           
 void setPadding_top(int width_pixel)
           
 void setPadding(int width_pixel)
           
 void setPageBreakBefore_always()
           
 void setPageBreakBefore_auto()
           
 void setPageBreakBefore_avoid()
           
 void setPageBreakBefore_left()
           
 void setPageBreakBefore_right()
           
 void setPosition_absolute()
           
 void setPosition_fixed()
          http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position
 void setPosition_relative()
          http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position
 void setPosition_static()
          http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position
 void setPosition(int left_pixel, int top_pixel)
           
 void setRight(int right_pixel)
           
 void setTextAlignCenter()
           
 void setTextAlignJustify()
           
 void setTextAlignLeft()
           
 void setTextAlignRight()
           
 void setTextDecoration_linethrought()
           
 void setTop(int top_pixel)
           
 void setVerticalAlign_baseline()
           
 void setVerticalAlign_bottom()
           
 void setVerticalAlign_middle()
           
 void setVerticalAlign_sub()
           
 void setVerticalAlign_super()
           
 void setVerticalAlign_text_bottom()
           
 void setVerticalAlign_text_top()
           
 void setVerticalAlign_top()
           
 void setVerticalAlign(int pixels)
           
 void setVerticalAlign(java.lang.String align)
           
 void setVisibility_collapse()
          The visibility property sets if an element should be visible or invisible.
 void setVisibility_hidden()
          The visibility property sets if an element should be visible or invisible.
 void setVisibility_visible()
          The visibility property sets if an element should be visible or invisible.
 void setWhiteSpace_normal()
          The white-space property sets how white-space inside an element is handled.
 void setWhiteSpace_nowrap()
          The white-space property sets how white-space inside an element is handled.
 void setWhiteSpace_pre()
          The white-space property sets how white-space inside an element is handled.
 void setWidth(int width_pixel)
           
 void setZIndex(int z)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4StyleAttributes

public E4StyleAttributes()

E4StyleAttributes

public E4StyleAttributes(E4StyleAttributes style)
Method Detail

getStyle

public java.lang.String getStyle()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

set

public void set(java.lang.String style_name,
                java.lang.String style_attribute)
Add a style.

Parameters:
style_name - the style name (e.g. "width")
style_attribute - teh style's value (e.g. "100px")

set

public void set(java.lang.String style_name,
                int style_attribute)
Add a style.

Parameters:
style_name - the style name (e.g. "z-index")
style_attribute - teh style's value (e.g. 2)

remove

public void remove(java.lang.String style_name)

size

public int size()

toString

public java.lang.String toString()
Overrides:
toString in class E4Object

get

public java.lang.String get(java.lang.String style_name)

setWidth

public void setWidth(int width_pixel)

setDimension

public void setDimension(int width_pixel,
                         int height_pixel)

setEmtyCells_show

public void setEmtyCells_show()

setEmtyCells_hide

public void setEmtyCells_hide()

setPadding

public void setPadding(int width_pixel)

setPadding_top

public void setPadding_top(int width_pixel)

setPadding_bottom

public void setPadding_bottom(int width_pixel)

setPadding_left

public void setPadding_left(int width_pixel)

setPadding_right

public void setPadding_right(int width_pixel)

setMargin

public void setMargin(int width_pixel)

setMarginLeft

public void setMarginLeft(int width_pixel)

setMarginTop

public void setMarginTop(int width_pixel)

setMarginRight

public void setMarginRight(int width_pixel)

setMarginBottom

public void setMarginBottom(int width_pixel)

setHeight

public void setHeight(int height_pixel)

setTop

public void setTop(int top_pixel)

setBottom

public void setBottom(int bottom_pixel)

setLeft

public void setLeft(int left_pixel)

setRight

public void setRight(int right_pixel)

setPosition

public void setPosition(int left_pixel,
                        int top_pixel)

setPageBreakBefore_always

public void setPageBreakBefore_always()

setPageBreakBefore_avoid

public void setPageBreakBefore_avoid()

setPageBreakBefore_left

public void setPageBreakBefore_left()

setPageBreakBefore_right

public void setPageBreakBefore_right()

setPageBreakBefore_auto

public void setPageBreakBefore_auto()

setClip

public void setClip(int x_pixel,
                    int y_pixel,
                    int width_pixel,
                    int height_pixel)
Set the clipping area. Note - the order and meaning of parameters here is different from style.clip in Java-Script. Maybe this requires setPosition_absolute() additional.

Parameters:
x_pixel - x-coordinate (horizontal) of left upper corner in pixel
y_pixel - y-coordinate (vertical) of left upper corner in pixel
width_pixel - width of the clipping rectangle in pixel
height_pixel - height of the clipping rectangle in pixel
See Also:
setPosition_absolute(), setRight(int), setLeft(int), setTop(int), setBottom(int)

setTextDecoration_linethrought

public void setTextDecoration_linethrought()

setTextAlignJustify

public void setTextAlignJustify()

setTextAlignLeft

public void setTextAlignLeft()

setTextAlignRight

public void setTextAlignRight()

setTextAlignCenter

public void setTextAlignCenter()

setDirection_rtl

public void setDirection_rtl()
http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position


setDirection_ltr

public void setDirection_ltr()

setPosition_absolute

public void setPosition_absolute()

setPosition_fixed

public void setPosition_fixed()
http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position


setPosition_relative

public void setPosition_relative()
http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position


setPosition_static

public void setPosition_static()
http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position


setOpacity

public void setOpacity(float opacity)
Set Opacity (affects style-names "opacity" and "filter")

Parameters:
opacity - Float.NaN removes the opacity, a value between 0 and 1. 0.0f means full transparent and a value of 1.0f means invisible.

setZIndex

public void setZIndex(int z)

setBackgroundColor

public void setBackgroundColor(E4Color color)

setDisplay

public void setDisplay(java.lang.String mode)
Change the visibility.

Parameters:
mode - null for normal display (no attribute) or "hide" to hide that element

setOverflow_visible

public void setOverflow_visible()
Overflow visible - The content is not clipped and may be shown outside the element box. IE only.

See Also:
setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflow_hidden

public void setOverflow_hidden()
Overflow visible - The content is clipped to match the element box and will not be shown outside the element box. IE only.

See Also:
setOverflow_visible(), setOverflow_scroll(), setOverflow_auto()

setOverflow_scroll

public void setOverflow_scroll()
Overflow scroll - The content is clipped to match the element box and can be shown by using a scroll bar. Note: If this value is used, a scroll bar will always be shown. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_auto()

setOverflow_auto

public void setOverflow_auto()
Overflow auto - The display is decided by the browser. A scrollbar should be shown if needed. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll()

setOverflowX_visible

public void setOverflowX_visible()
Overflow visible - The content is not clipped and may be shown outside the element box. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowX_hidden

public void setOverflowX_hidden()
Overflow visible - The content is clipped to match the element box and will not be shown outside the element box. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowX_scroll

public void setOverflowX_scroll()
Overflow scroll - The content is clipped to match the element box and can be shown by using a scroll bar. Note: If this value is used, a scroll bar will always be shown. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowX_auto

public void setOverflowX_auto()
Overflow auto - The display is decided by the browser. A scrollbar should be shown if needed. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowY_visible

public void setOverflowY_visible()
Overflow visible - The content is not clipped and may be shown outside the element box. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowY_hidden

public void setOverflowY_hidden()
Overflow visible - The content is clipped to match the element box and will not be shown outside the element box. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowY_scroll

public void setOverflowY_scroll()
Overflow scroll - The content is clipped to match the element box and can be shown by using a scroll bar. Note: If this value is used, a scroll bar will always be shown. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setOverflowY_auto

public void setOverflowY_auto()
Overflow auto - The display is decided by the browser. A scrollbar should be shown if needed. IE only.

See Also:
setOverflow_visible(), setOverflow_hidden(), setOverflow_scroll(), setOverflow_auto()

setBorderSpacing

public void setBorderSpacing(int size_pixels)

setBorderStyle_hidden

public void setBorderStyle_hidden()

setBorderStyle_solid

public void setBorderStyle_solid()

setBorderStyle_dotted

public void setBorderStyle_dotted()

setBorderStyle_dashed

public void setBorderStyle_dashed()

setBorderStyle_double

public void setBorderStyle_double()

setBorderStyle_groove

public void setBorderStyle_groove()

setBorderStyle_ridge

public void setBorderStyle_ridge()

setBorderStyle_inset

public void setBorderStyle_inset()

setBorderStyle_top_solid

public void setBorderStyle_top_solid(int width,
                                     E4Color color)

setBorderStyle_left_solid

public void setBorderStyle_left_solid(int width,
                                      E4Color color)

setBorderStyle_right_solid

public void setBorderStyle_right_solid(int width,
                                       E4Color color)

setBorderStyle_bottom_solid

public void setBorderStyle_bottom_solid(int width,
                                        E4Color color)

setBorderStyle_bottom_hidden

public void setBorderStyle_bottom_hidden()

setBorderWidth

public void setBorderWidth(int pixel)
Set border width (left, right, top, bottom) in pixels.

Parameters:
pixel - a positive value
See Also:
setBorderColor(e4s.html.E4Color), setBorderStyle_dashed(), setBorderStyle_dotted(), setBorderStyle_double(), setBorderStyle_groove(), setBorderStyle_solid(), setBorderStyle_inset(), setBorderStyle_ridge()

setBorderColor

public void setBorderColor(E4Color color)
Set border color (left, right, top, bottom).

Parameters:
color - a color definition
See Also:
setBorderWidth(int), setBorderStyle_dashed(), setBorderStyle_dotted(), setBorderStyle_double(), setBorderStyle_groove(), setBorderStyle_solid(), setBorderStyle_inset(), setBorderStyle_ridge()

setBorderCollapse_Collapse

public void setBorderCollapse_Collapse()

setBorderCollapse_Inherit

public void setBorderCollapse_Inherit()

setBorderCollapse_Seperate

public void setBorderCollapse_Seperate()

setVisibility_hidden

public void setVisibility_hidden()
The visibility property sets if an element should be visible or invisible. The element is invisible. http://www.w3schools.com/CSS/pr_class_visibility.asp

See Also:
setVisibility_visible(), setVisibility_collapse()

setVisibility_visible

public void setVisibility_visible()
The visibility property sets if an element should be visible or invisible. The element is visible. http://www.w3schools.com/CSS/pr_class_visibility.asp

See Also:
setVisibility_hidden(), setVisibility_collapse()

setVisibility_collapse

public void setVisibility_collapse()
The visibility property sets if an element should be visible or invisible. When used in table elements, this value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content. If this value is used on other elements, it renders as "hidden" http://www.w3schools.com/CSS/pr_class_visibility.asp

See Also:
setVisibility_hidden(), setVisibility_visible()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

setFontVariant_smallCaps

public void setFontVariant_smallCaps()

setFontVariant_normal

public void setFontVariant_normal()

setFontWeight_bolder

public void setFontWeight_bolder()

setFontWeight_lighter

public void setFontWeight_lighter()

setFontWeight_bold

public void setFontWeight_bold()

setFontWeight_normal

public void setFontWeight_normal()

setFontWeight

public void setFontWeight(float width)
Set the font width, this is finally a number like 100,200,300,..,900 which is representet by a float value (0.0f means 100, 1.0f means 900).

Parameters:
width - a number between (including) 0.0 and 1.0, other values will be ignored
See Also:
setFontWeight_bolder(), setFontWeight_bold(), setFontWeight_lighter(), setFontWeight_normal()

setFontFamily

public void setFontFamily(java.lang.String font)

setFontFamily_VERDANA

public void setFontFamily_VERDANA()

setFontFamily_ARIAL

public void setFontFamily_ARIAL()

setFontFamily_COURIER

public void setFontFamily_COURIER()

setFontSizePixels

public void setFontSizePixels(int pixels)

setFontSizePoints

public void setFontSizePoints(int points)

setColor

public void setColor(E4Color color)

setWhiteSpace_normal

public void setWhiteSpace_normal()
The white-space property sets how white-space inside an element is handled. Default. White-space is ignored by the browser.

See Also:
setWhiteSpace_pre(), #setWhiteSpace_norwap()

setWhiteSpace_nowrap

public void setWhiteSpace_nowrap()
The white-space property sets how white-space inside an element is handled. The text will never wrap, it continues on the same line until a <br> tag is encountered

See Also:
setWhiteSpace_pre(), setWhiteSpace_normal()

setWhiteSpace_pre

public void setWhiteSpace_pre()
The white-space property sets how white-space inside an element is handled. White-space is preserved by the browser. Acts like the <pre> tag in HTML.

See Also:
setWhiteSpace_nowrap(), setWhiteSpace_normal()

setVerticalAlign

public void setVerticalAlign(int pixels)

setVerticalAlign

public void setVerticalAlign(java.lang.String align)

setVerticalAlign_bottom

public void setVerticalAlign_bottom()

setVerticalAlign_sub

public void setVerticalAlign_sub()

setVerticalAlign_super

public void setVerticalAlign_super()

setVerticalAlign_baseline

public void setVerticalAlign_baseline()

setVerticalAlign_top

public void setVerticalAlign_top()

setVerticalAlign_middle

public void setVerticalAlign_middle()

setVerticalAlign_text_top

public void setVerticalAlign_text_top()

setVerticalAlign_text_bottom

public void setVerticalAlign_text_bottom()

set

public void set(E4StyleAttributes style)
Set all style attributes as defined in parameter style.

Parameters:
style - the style attributes to be used

www.element4solution.com