Oracle Data-aware Controls Reference

oracle.dacf.style
Class StyleElement

java.lang.Object
  extended byoracle.dacf.style.StyleElement
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener

public class StyleElement
extends java.lang.Object
implements java.beans.PropertyChangeListener, java.lang.Cloneable

the StyleElement is the class that defines a StyleElement.

This version relies on serializing the object the java way. I'll look into XML parsing and probably change this

Version:
PUBLIC

Constructor Summary
StyleElement(java.lang.String property, boolean value)
          Constructor override for primitive type boolean
StyleElement(java.lang.String property, byte value)
          Constructor override for primitive type byte
StyleElement(java.lang.String property, char value)
          Constructor override for primitive type char
StyleElement(java.lang.String property, java.lang.Class propertyType)
          Constructor
StyleElement(java.lang.String property, double value)
          Constructor override for primitive type double
StyleElement(java.lang.String property, float value)
          Constructor override for primitive type float
StyleElement(java.lang.String property, int value)
          Constructor override for primitive type int
StyleElement(java.lang.String property, long value)
          Constructor override for primitive type long
StyleElement(java.lang.String property, java.lang.Object value)
          Constructor
StyleElement(java.lang.String property, short value)
          Constructor override for primitive type short
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
          A PropertyChange will get fired when a StyleElement changes, or all StyleElements are updated
 boolean booleanValue()
          getter method for primitive type boolean
 byte byteValue()
          getter method for primitive type boolean
 char charValue()
          getter method for primitive type char
 void clearResetValue()
          Clearing the rest value
 java.lang.Object clone()
          implementation of Cloneable interface
 boolean compare(StyleElement ste)
          Returns true if the 2 StyleElements define the same property, same value and same 'protected' state.
 double doubleValue()
          getter method for primitive type double
 float floatValue()
          getter method for primitive type float
 java.lang.String getDisplayName()
          returns Style Element name you want to display in the Style Sheet
 java.lang.String getProperty()
          returns property name
 java.beans.PropertyEditor getPropertyEditor()
          returns the PropertyEditor that should be used to edit the value of this StyleElement
 java.lang.Class getPropertyType()
          returns class type you use to start up the right editor
 java.lang.Object getValue()
          Beans style getter method
 void initResetValue()
          Resetting the rest value
 int intValue()
          getter method for primitive type int
 boolean isParentValue()
          Check if this is a parent value or not
 boolean isProtected()
          Check if this is a protected or not
 long longValue()
          getter method for primitive type long
 void propertyChange(java.beans.PropertyChangeEvent evt)
          propagate a change to the property editor.
 void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
          A PropertyChange will get fired when a StyleElement changes, or all StyleElements are updated
 void reset()
          The actual reset
 void setDisplayName(java.lang.String name)
          sets Style Element name you want to display in the Style Sheet
 void setParentValue(boolean pv)
          set ParentValue
 void setProtected(boolean prt)
          set ParentValue
 void setValue(boolean value)
          setter method for primitive type boolean
 void setValue(byte value)
          setter method for primitive type byte
 void setValue(char value)
          setter method for primitive type char
 void setValue(double value)
          setter method for primitive type double
 void setValue(float value)
          setter method for primitive type float
 void setValue(int value)
          setter method for primitive type int
 void setValue(long value)
          setter method for primitive type long
 void setValue(java.lang.Object object)
          Beans style setter method
 short shortValue()
          getter method for primitive type short
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleElement

public StyleElement(java.lang.String property,
                    java.lang.Class propertyType)
Constructor

Parameters:
property - property name

StyleElement

public StyleElement(java.lang.String property,
                    java.lang.Object value)
Constructor

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    boolean value)
Constructor override for primitive type boolean

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    byte value)
Constructor override for primitive type byte

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    char value)
Constructor override for primitive type char

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    short value)
Constructor override for primitive type short

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    int value)
Constructor override for primitive type int

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    long value)
Constructor override for primitive type long

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    float value)
Constructor override for primitive type float

Parameters:
property - 'Bean' style property name
value - Actual value of this property

StyleElement

public StyleElement(java.lang.String property,
                    double value)
Constructor override for primitive type double

Parameters:
property - 'Bean' style property name
value - Actual value of this property
Method Detail

clone

public java.lang.Object clone()
implementation of Cloneable interface


compare

public boolean compare(StyleElement ste)
Returns true if the 2 StyleElements define the same property, same value and same 'protected' state. return true if compare determines StyleElements are equal.


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
A PropertyChange will get fired when a StyleElement changes, or all StyleElements are updated

Parameters:
propertyChangeListener - the listener to be added

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
A PropertyChange will get fired when a StyleElement changes, or all StyleElements are updated

Parameters:
propertyChangeListener - the listener to be removed

setValue

public void setValue(java.lang.Object object)
Beans style setter method

Parameters:
object - property value

setValue

public void setValue(boolean value)
setter method for primitive type boolean

Parameters:
value - property value

setValue

public void setValue(byte value)
setter method for primitive type byte

Parameters:
value - property value

setValue

public void setValue(char value)
setter method for primitive type char

Parameters:
value - property value

setValue

public void setValue(int value)
setter method for primitive type int

Parameters:
value - property value

setValue

public void setValue(long value)
setter method for primitive type long

Parameters:
value - property value

setValue

public void setValue(float value)
setter method for primitive type float

Parameters:
value - property value

setValue

public void setValue(double value)
setter method for primitive type double

Parameters:
value - property value

getValue

public java.lang.Object getValue()
Beans style getter method

Returns:
property value

byteValue

public byte byteValue()
               throws StyleCastException
getter method for primitive type boolean

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

doubleValue

public double doubleValue()
                   throws StyleCastException
getter method for primitive type double

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

floatValue

public float floatValue()
                 throws StyleCastException
getter method for primitive type float

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

intValue

public int intValue()
             throws StyleCastException
getter method for primitive type int

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

longValue

public long longValue()
               throws StyleCastException
getter method for primitive type long

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

shortValue

public short shortValue()
                 throws StyleCastException
getter method for primitive type short

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

booleanValue

public boolean booleanValue()
                     throws StyleCastException
getter method for primitive type boolean

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

charValue

public char charValue()
               throws StyleCastException
getter method for primitive type char

Returns:
property value
Throws:
StyleCastException - thrown when cast to simple type fails

setDisplayName

public void setDisplayName(java.lang.String name)
sets Style Element name you want to display in the Style Sheet

Parameters:
name - property name you want to display in the Style sheet

getDisplayName

public java.lang.String getDisplayName()
returns Style Element name you want to display in the Style Sheet

Returns:
property name you want to display in the Style sheet

getPropertyType

public java.lang.Class getPropertyType()
returns class type you use to start up the right editor

Returns:
class that defines the Style element editor.

getProperty

public java.lang.String getProperty()
returns property name

Returns:
property name.

isParentValue

public boolean isParentValue()
Check if this is a parent value or not

Returns:
isparentvalue boolean.

setParentValue

public void setParentValue(boolean pv)
set ParentValue

Parameters:
pv - boolean that indicates if this is a 'shared' parent value.

isProtected

public boolean isProtected()
Check if this is a protected or not

Returns:
isprotected boolean.

setProtected

public void setProtected(boolean prt)
set ParentValue

Parameters:
prt - boolean that indicates if non-privileged users will see this StyleElement

getPropertyEditor

public java.beans.PropertyEditor getPropertyEditor()
returns the PropertyEditor that should be used to edit the value of this StyleElement


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
propagate a change to the property editor.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - the Property change event

initResetValue

public void initResetValue()
Resetting the rest value


clearResetValue

public void clearResetValue()
Clearing the rest value


reset

public void reset()
The actual reset


Oracle Data-aware Controls Reference

 

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