Oracle Data-aware Controls Reference

oracle.dacf.style
Class StylesLoader

java.lang.Object
  extended byoracle.dacf.style.StylesLoader
All Implemented Interfaces:
StylesUserListener

public class StylesLoader
extends java.lang.Object
implements StylesUserListener

StylesLoader is responsible for serializing the Styles table and the defaultvalues in the StyleManager. It also maintains the deltas and serializes them. The StylesLoader parses and recreates ClientDocuments/ClientElements using the DTD definition described above. This DTD definition is hardcoded on the client side, to avoid the need for a parser in the thin client. The StyleLayer is the class responsible for saving and delivering the parsed trees.

Version:
INTERNAL

Field Summary
static java.lang.String DEFAULTVALUE
           
static java.lang.String DEFAULTVALUES
           
static java.lang.String DESCRIPTION
           
static java.lang.String NAME
           
static java.lang.String OVERRIDE
           
static java.lang.String PARENTSTYLENAME
           
static java.lang.String PARENTVALUE
           
static java.lang.String PROPERTY
           
static java.lang.String PROTECTED
           
static java.lang.String STYLE
           
static java.lang.String STYLES
           
static java.lang.String STYLESDEFINITION
           
static java.lang.String TYPE
           
static java.lang.String VALUE
           
 
Method Summary
 void defaultValueAdded(StylesUserEvent event)
          Called when a default value is added or redefined event.getSource() : returns null event.getPropertyName() : returns null event.getOldValue() : returns the old Object event.getNewValue() : returns the new Object
static void InitLayers(StyleLayer[] layerSources)
          Initializes the sources that hold the serialize definition for every layer.
 void styleAdded(StylesUserEvent event)
          Called when a Style is added by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns null event.getOldValue() : returns null event.getNewValue() : returns null
 void styleOverwriteUpdated(StylesUserEvent event)
          Called when a StyleOverWrite is updated by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns Name of overwriting component event.getOldValue() : returns array of old StyleElements event.getNewValue() : returns array of new StyleElements
 void styleRemoved(StylesUserEvent event)
          Called when a Style is removed by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns null event.getOldValue() : returns null event.getNewValue() : returns null
 void styleUpdated(StylesUserEvent event)
          Called when a Style is updated by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns null event.getOldValue() : returns array of old StyleElements event.getNewValue() : returns array of new StyleElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLESDEFINITION

public static final java.lang.String STYLESDEFINITION
See Also:
Constant Field Values

STYLES

public static final java.lang.String STYLES
See Also:
Constant Field Values

DEFAULTVALUES

public static final java.lang.String DEFAULTVALUES
See Also:
Constant Field Values

STYLE

public static final java.lang.String STYLE
See Also:
Constant Field Values

DEFAULTVALUE

public static final java.lang.String DEFAULTVALUE
See Also:
Constant Field Values

OVERRIDE

public static final java.lang.String OVERRIDE
See Also:
Constant Field Values

PROPERTY

public static final java.lang.String PROPERTY
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

PARENTSTYLENAME

public static final java.lang.String PARENTSTYLENAME
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

PARENTVALUE

public static final java.lang.String PARENTVALUE
See Also:
Constant Field Values

PROTECTED

public static final java.lang.String PROTECTED
See Also:
Constant Field Values
Method Detail

InitLayers

public static void InitLayers(StyleLayer[] layerSources)
Initializes the sources that hold the serialize definition for every layer. The order in this array defines the requested layer sequence.

Parameters:
layerSources - array of sources holding serialized definitions

styleAdded

public void styleAdded(StylesUserEvent event)
Called when a Style is added by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns null event.getOldValue() : returns null event.getNewValue() : returns null

Specified by:
styleAdded in interface StylesUserListener

styleRemoved

public void styleRemoved(StylesUserEvent event)
Called when a Style is removed by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns null event.getOldValue() : returns null event.getNewValue() : returns null

Specified by:
styleRemoved in interface StylesUserListener

styleUpdated

public void styleUpdated(StylesUserEvent event)
Called when a Style is updated by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns null event.getOldValue() : returns array of old StyleElements event.getNewValue() : returns array of new StyleElements

Specified by:
styleUpdated in interface StylesUserListener

styleOverwriteUpdated

public void styleOverwriteUpdated(StylesUserEvent event)
Called when a StyleOverWrite is updated by the StyleManager event.getSource() : returns the Style being updated event.getPropertyName() : returns Name of overwriting component event.getOldValue() : returns array of old StyleElements event.getNewValue() : returns array of new StyleElements

Specified by:
styleOverwriteUpdated in interface StylesUserListener

defaultValueAdded

public void defaultValueAdded(StylesUserEvent event)
Called when a default value is added or redefined event.getSource() : returns null event.getPropertyName() : returns null event.getOldValue() : returns the old Object event.getNewValue() : returns the new Object

Specified by:
defaultValueAdded in interface StylesUserListener

Oracle Data-aware Controls Reference

 

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