Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.dataView
Class CSSStyle

java.lang.Object
  extended by oracle.dss.dataView.CSSStyle

public class CSSStyle
extends java.lang.Object


Field Summary
protected  java.lang.Object[] m_cssStyles
           
 
Constructor Summary
CSSStyle()
          Constructor.
CSSStyle(java.lang.String name)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clone this CSSStyle.
 boolean equals(CSSStyle style)
          Determine if the given style is equal to this style.
 java.lang.String getName()
          Get the name of this style.
 java.lang.String getProperty(java.lang.String name)
          Get the value of the specified style property.
 java.util.Enumeration getPropertyNames()
          Get the list of style property names defined in this style.
 void merge(CSSStyle style)
          Merge the given style into this style.
 void setName(java.lang.String name)
          Set the name of this style.
 void setProperty(java.lang.String name, java.lang.String value)
          Set the value for the specified style property.
 java.lang.String toBlockString()
          Format this style as a named style in a CSS stylesheet.
 java.lang.String toInlineString()
          Format this style as an inline style in an HTML file.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cssStyles

protected java.lang.Object[] m_cssStyles
Constructor Detail

CSSStyle

public CSSStyle()
Constructor.


CSSStyle

public CSSStyle(java.lang.String name)
Constructor.

Method Detail

setName

public void setName(java.lang.String name)
Set the name of this style.

Parameters:
name - the name of this style

getName

public java.lang.String getName()
Get the name of this style.

Returns:
the name of this style

clone

public java.lang.Object clone()
Clone this CSSStyle.

Overrides:
clone in class java.lang.Object
Returns:
a clone of this CSSStyle

merge

public void merge(CSSStyle style)
Merge the given style into this style.

Parameters:
style - the style to merge into this style

equals

public boolean equals(CSSStyle style)
Determine if the given style is equal to this style.

Parameters:
style - the style for which to find out if it is equal to this style
Returns:
true if the given style is equal to this style, false otherwise

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Set the value for the specified style property. If the specified style property already exists in this style, the current value will be replaced by the new value.

Parameters:
name - name of the style property
value - the value for the given style property

getProperty

public java.lang.String getProperty(java.lang.String name)
Get the value of the specified style property.

Parameters:
name - name of the style property
Returns:
the value of the given style property

getPropertyNames

public java.util.Enumeration getPropertyNames()
Get the list of style property names defined in this style.

Returns:
an Enumeration of the style property names defined in this style

toInlineString

public java.lang.String toInlineString()
Format this style as an inline style in an HTML file.

Returns:
a String representing this style formatted for inclusion as an inline style in an HTML file

toBlockString

public java.lang.String toBlockString()
Format this style as a named style in a CSS stylesheet.

Returns:
a String representing this style formatted for inclusion in a CSS stylesheet

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.