ilog.cpl.style
Class IlpStyleContext

java.lang.Object
  extended by ilog.cpl.style.IlpStyleContext
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
IlpInstanceStyleContext

Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Refer to the User's Manual for further information.

public class IlpStyleContext
extends Object
implements Serializable, Cloneable

Context in which a style will be applied. Within the style manager, each style is uniquely referenced by its context. Some of the values in the context will have a null value.

Since:
JTGO 3.0
See Also:
Serialized Form
Deprecated Since:
JTGO 3.5

Field Summary
protected  List allObjects
          Deprecated.  
protected  ilog.cpl.style.internal.IlpStyleContextValue attribute
          Deprecated. Attribute
static int ATTRIBUTE_STYLE
          Deprecated.  
static int CLASS_STYLE
          Deprecated.  
protected  boolean computed
          Deprecated. Indicates whether the style is computed (not read from storage)
static int DEFAULT
          Deprecated. Style type definitions
static int GRAPHIC_VIEW_STYLE
          Deprecated.  
protected  IlpGraphicView graphicView
          Deprecated. Business object
protected  int hashCodeCache
          Deprecated.  
protected  Object ilpClass
          Deprecated. IlpClass - may be a Reference in case of bizz class style, or an IlpClass in case of BO or RO styles
static int ILPCLASS_STYLE
          Deprecated.  
protected  Object ilpObject
          Deprecated. Business object - may be an IlpStyleContextValue in case of BO style, or the IlpObject itself in case of RO style
static int ILPOBJECT_STYLE
          Deprecated.  
protected  Object ilpObjectIdentifier
          Deprecated. Business object identifier
static int JAVA_CLASS_STYLE
          Deprecated.  
protected  Class javaClass
          Deprecated. Java class
protected  boolean modified
          Deprecated. Indicates if the style has been modified
protected  String name
          Deprecated. Name of style
static int NAMED_STYLE
          Deprecated.  
static String NO_NAME
          Deprecated. Default name value
protected  boolean persistent
          Deprecated. Indicates whether the style is persistent
static int REPRESENTATION_OBJECT_ATTRIBUTE_STYLE
          Deprecated.  
static int REPRESENTATION_OBJECT_STYLE
          Deprecated.  
protected  Object representationObject
          Deprecated. Representation object - may be an IlpStyleContextValue in case of RO style, or the IlpRepresentationObject itself in case of graphic style
protected  boolean shared
          Deprecated. Indicates whether the style is a shared style
protected  IlpStorageStyleIdentifier styleIdentifier
          Deprecated. Style identifier.
protected  String styleIdentifierName
          Deprecated.  
protected  int styleType
          Deprecated. Current style type.
 
Constructor Summary
IlpStyleContext()
          Deprecated. Constructor.
IlpStyleContext(Class javaClass, boolean classStyle, ReferenceQueue q)
          Deprecated. Constructor.
IlpStyleContext(Class jc, ReferenceQueue q)
          Deprecated. Constructor.
IlpStyleContext(IlpAttribute attr, IlpClass clazz, ReferenceQueue q)
          Deprecated. Constructor.
IlpStyleContext(IlpAttribute attr, ReferenceQueue q)
          Deprecated. Constructor.
IlpStyleContext(IlpClass clazz, ReferenceQueue q)
          Deprecated. Constructor.
IlpStyleContext(IlpContext context, IlpStorageStyleIdentifier id, ReferenceQueue q)
          Deprecated. Creates a new style context based on the storage identifier information.
IlpStyleContext(IlpGraphicView view, ReferenceQueue q)
          Deprecated. Constructor for an IlpGraphicView.
IlpStyleContext(IlpObject bo, ReferenceQueue q)
          Deprecated. Constructor for an IlpObject.
IlpStyleContext(IlpRepresentationObject ro, IlpAttribute attr, ReferenceQueue q)
          Deprecated. Constructor for a representation object with attribute.
IlpStyleContext(IlpRepresentationObject ro, ReferenceQueue q)
          Deprecated. Constructor for a representation object.
IlpStyleContext(String name)
          Deprecated. Constructor.
 
Method Summary
 Object clone()
          Deprecated. Returns a copy of this style context.
 IlpStorageStyleIdentifier createStyleIdentifier()
          Deprecated. Creates an identifier which is able to identify a style in the underlying storage mechanism.
 void debug()
          Deprecated. Print out the contents of this instance.
 boolean equals(Object other)
          Deprecated. Tests IlpStyleContexts for equality.
 IlpAttribute getAttribute()
          Deprecated. For a style associated with an attribute, returns the attribute.
 IlpAttributeValueHolder getAttributeValueHolder()
          Deprecated. For a style associated with an attribute value holder, returns the holder.
 IlpGraphicView getGraphicView()
          Deprecated. Returns graphic view.
 IlpClass getIlpClass()
          Deprecated. For a style associated with a dynamic class, returns the class.
 IlpObject getIlpObject()
          Deprecated. For a style associated with a dynamic object, returns the object.
 Object getIlpObjectIdentifier()
          Deprecated. For a style associated with a dynamic object, returns the object identifier.
 Class getJavaClass()
          Deprecated. For a style associated with a Java class, returns the class.
 String getName()
          Deprecated. Gets name of style.
 IlpRepresentationObject getRepresentationObject()
          Deprecated. For a style associated with a representation object, returns the object.
 IlpStorageStyleIdentifier getStyleIdentifier()
          Deprecated. Generates style identifier for the style.
 int getStyleType()
          Deprecated. Gets the type of the style.
 int hashCode()
          Deprecated. Support for hashmap.
protected  int initHashCode()
          Deprecated. Initializes the hash code cache.
protected  void initializeFromStorage(IlpContext context, IlpStorageStyleIdentifier id, ReferenceQueue q)
          Deprecated. Initializes all fields from the Storage identifier
 boolean isComputed()
          Deprecated. Checks whether the style has been computed.
 boolean isModified()
          Deprecated. Checks whether the style has been modified.
 boolean isPersistent()
          Deprecated. Checks the persistence indicator for the style.
 boolean isShared()
          Deprecated. Checks whether the style is shared.
 boolean isStyleRemovable()
          Deprecated. Returns is the style can be cleaned up or not.
 void registerBusinessObject(IlpObject bo, ReferenceQueue queue)
          Deprecated.  
 ilog.cpl.style.internal.IlpStyleContextValue retrieveBusinessObject()
          Deprecated.  
 void setComputed(boolean computed)
          Deprecated. Indicates whether the style has been computed.
 void setGraphicView(IlpGraphicView view)
          Deprecated. Sets the graphic view afterwards.
 void setModified(boolean modified)
          Deprecated. Sets the modification indicator for the style.
 void setPersistence(boolean persistent)
          Deprecated. Sets the persistence indicator for the style.
 void setRepresentationObject(IlpRepresentationObject ro)
          Deprecated. Sets the representation object afterwards, used by JTGO.
 void setShared(boolean shared)
          Deprecated. Defines whether the style is shared.
 String toString()
          Deprecated. Returns the String representation of this IlpStyleContext.
protected  void updateBusinessObject(Object bo)
          Deprecated.  
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

shared

protected boolean shared
Deprecated. 
Indicates whether the style is a shared style

Internal method or field: do not use!

persistent

protected boolean persistent
Deprecated. 
Indicates whether the style is persistent

Internal method or field: do not use!

computed

protected boolean computed
Deprecated. 
Indicates whether the style is computed (not read from storage)

Internal method or field: do not use!

modified

protected boolean modified
Deprecated. 
Indicates if the style has been modified

Internal method or field: do not use!

NO_NAME

public static final String NO_NAME
Deprecated. 
Default name value

See Also:
Constant Field Values
Internal method or field: do not use!

styleType

protected int styleType
Deprecated. 
Current style type.

Internal method or field: do not use!

DEFAULT

public static final int DEFAULT
Deprecated. 
Style type definitions

See Also:
Constant Field Values

NAMED_STYLE

public static final int NAMED_STYLE
Deprecated. 
See Also:
Constant Field Values

JAVA_CLASS_STYLE

public static final int JAVA_CLASS_STYLE
Deprecated. 
See Also:
Constant Field Values

ILPCLASS_STYLE

public static final int ILPCLASS_STYLE
Deprecated. 
See Also:
Constant Field Values

ATTRIBUTE_STYLE

public static final int ATTRIBUTE_STYLE
Deprecated. 
See Also:
Constant Field Values

CLASS_STYLE

public static final int CLASS_STYLE
Deprecated. 
See Also:
Constant Field Values

ILPOBJECT_STYLE

public static final int ILPOBJECT_STYLE
Deprecated. 
See Also:
Constant Field Values

REPRESENTATION_OBJECT_STYLE

public static final int REPRESENTATION_OBJECT_STYLE
Deprecated. 
See Also:
Constant Field Values

REPRESENTATION_OBJECT_ATTRIBUTE_STYLE

public static final int REPRESENTATION_OBJECT_ATTRIBUTE_STYLE
Deprecated. 
See Also:
Constant Field Values

GRAPHIC_VIEW_STYLE

public static final int GRAPHIC_VIEW_STYLE
Deprecated. 
See Also:
Constant Field Values

name

protected String name
Deprecated. 
Name of style

Internal method or field: do not use!

javaClass

protected Class javaClass
Deprecated. 
Java class

Internal method or field: do not use!

ilpClass

protected Object ilpClass
Deprecated. 
IlpClass - may be a Reference in case of bizz class style, or an IlpClass in case of BO or RO styles

Internal method or field: do not use!

attribute

protected ilog.cpl.style.internal.IlpStyleContextValue attribute
Deprecated. 
Attribute

Internal method or field: do not use!

ilpObject

protected Object ilpObject
Deprecated. 
Business object - may be an IlpStyleContextValue in case of BO style, or the IlpObject itself in case of RO style

Internal method or field: do not use!

ilpObjectIdentifier

protected Object ilpObjectIdentifier
Deprecated. 
Business object identifier

Internal method or field: do not use!

representationObject

protected transient Object representationObject
Deprecated. 
Representation object - may be an IlpStyleContextValue in case of RO style, or the IlpRepresentationObject itself in case of graphic style

Internal method or field: do not use!

graphicView

protected transient IlpGraphicView graphicView
Deprecated. 
Business object

Internal method or field: do not use!

styleIdentifier

protected transient IlpStorageStyleIdentifier styleIdentifier
Deprecated. 
Style identifier. The style identifier is buffered if it has been previously accessed, otherwise it is null.

Internal method or field: do not use!

styleIdentifierName

protected transient String styleIdentifierName
Deprecated. 
Internal method or field: do not use!

hashCodeCache

protected transient int hashCodeCache
Deprecated. 
Internal method or field: do not use!

allObjects

protected List allObjects
Deprecated. 
Internal method or field: do not use!
Constructor Detail

IlpStyleContext

public IlpStyleContext()
Deprecated. 
Constructor. The default constructor creates a default name.


IlpStyleContext

public IlpStyleContext(String name)
Deprecated. 
Constructor.

Parameters:
name - Name of style.

IlpStyleContext

public IlpStyleContext(Class jc,
                       ReferenceQueue q)
Deprecated. 
Constructor.

Parameters:
jc - Java class to which the style belongs.

IlpStyleContext

public IlpStyleContext(Class javaClass,
                       boolean classStyle,
                       ReferenceQueue q)
Deprecated. 
Constructor.

Parameters:
javaClass - Java class to which the style belongs.
classStyle - Indicates whether the style is a class style.

IlpStyleContext

public IlpStyleContext(IlpClass clazz,
                       ReferenceQueue q)
Deprecated. 
Constructor.

Parameters:
clazz - IlpClass to which the style belongs.

IlpStyleContext

public IlpStyleContext(IlpAttribute attr,
                       ReferenceQueue q)
Deprecated. 
Constructor. The IlpClass linked in the attribute will also be used.

Parameters:
attr - Attribute to which the style belongs.

IlpStyleContext

public IlpStyleContext(IlpObject bo,
                       ReferenceQueue q)
Deprecated. 
Constructor for an IlpObject.

Parameters:
bo - Business object.

IlpStyleContext

public IlpStyleContext(IlpRepresentationObject ro,
                       ReferenceQueue q)
Deprecated. 
Constructor for a representation object.

Parameters:
ro - Representation object.

IlpStyleContext

public IlpStyleContext(IlpRepresentationObject ro,
                       IlpAttribute attr,
                       ReferenceQueue q)
Deprecated. 
Constructor for a representation object with attribute.

Parameters:
ro - Representation object.
attr - Attribute linked to the representation object.

IlpStyleContext

public IlpStyleContext(IlpGraphicView view,
                       ReferenceQueue q)
Deprecated. 
Constructor for an IlpGraphicView.

Parameters:
view - Graphic view.

IlpStyleContext

public IlpStyleContext(IlpAttribute attr,
                       IlpClass clazz,
                       ReferenceQueue q)
Deprecated. 
Constructor.

Parameters:
attr - Attribute to which the style belongs.
clazz - IlpClass where the attribute is accessible

IlpStyleContext

public IlpStyleContext(IlpContext context,
                       IlpStorageStyleIdentifier id,
                       ReferenceQueue q)
Deprecated. 
Creates a new style context based on the storage identifier information.

Method Detail

clone

public Object clone()
Deprecated. 
Returns a copy of this style context.

Overrides:
clone in class Object
Internal method or field: do not use!

getStyleType

public int getStyleType()
Deprecated. 
Gets the type of the style.

Returns:
Style type.

setShared

public void setShared(boolean shared)
Deprecated. 
Defines whether the style is shared.

Parameters:
shared - Boolean to indicate whether the style is shared.

isShared

public boolean isShared()
Deprecated. 
Checks whether the style is shared.

Returns:
Boolean indicating whether the style is shared.

setPersistence

public void setPersistence(boolean persistent)
Deprecated. 
Sets the persistence indicator for the style. If persistent is set to true, the style will be saved. If persistent is set to false, the style will not be stored.

Parameters:
persistent - Boolean indicating whether the style is persistent.

isPersistent

public boolean isPersistent()
Deprecated. 
Checks the persistence indicator for the style.

Returns:
Boolean indicating whether the style is persistent.

setComputed

public void setComputed(boolean computed)
Deprecated. 
Indicates whether the style has been computed. If computed is set to true, the style has been automatically created.

Parameters:
computed - Boolean indicating whether the style is computed.

isComputed

public boolean isComputed()
Deprecated. 
Checks whether the style has been computed.

Returns:
Boolean indicating whether the style is a computed style.

setModified

public void setModified(boolean modified)
Deprecated. 
Sets the modification indicator for the style. If modified is set to true, the style has been modified since it was read from storage or created automatically.

Parameters:
modified - Boolean indicating whether the style has been modified.

isModified

public boolean isModified()
Deprecated. 
Checks whether the style has been modified.

Returns:
Boolean indicating whether the style has been modified.

getStyleIdentifier

public IlpStorageStyleIdentifier getStyleIdentifier()
Deprecated. 
Generates style identifier for the style.

Returns:
Style identifier for the style.
Internal method or field: do not use!

createStyleIdentifier

public IlpStorageStyleIdentifier createStyleIdentifier()
Deprecated. 
Creates an identifier which is able to identify a style in the underlying storage mechanism.

Internal method or field: do not use!

getName

public String getName()
Deprecated. 
Gets name of style.

Returns:
Name of style.

getJavaClass

public Class getJavaClass()
Deprecated. 
For a style associated with a Java class, returns the class. Applies to IlpObject, IlpAttribute, IlpRepresentationObject and IlpRepresentationObject/IlpAttribute styles.

Returns:
Java class with which the style is associated. This will be null if the style is not a Java class style.

getIlpClass

public IlpClass getIlpClass()
Deprecated. 
For a style associated with a dynamic class, returns the class. Applies only to IlpObject and IlpClass styles.

Returns:
Dynamic class with which the style is associated. This will be null if the style is not an IlpClass style.

getAttribute

public IlpAttribute getAttribute()
Deprecated. 
For a style associated with an attribute, returns the attribute. Applies only to IlpAttribute and IlpRepresentationObject/IlpAttribute styles.

Returns:
Attribute with which the style is associated. This will be null if the style is not an attribute style.

getAttributeValueHolder

public IlpAttributeValueHolder getAttributeValueHolder()
Deprecated. 
For a style associated with an attribute value holder, returns the holder. Applies to IlpObject, IlpRepresentationObject and IlpRepresentationObject/IlpAttribute styles.

Returns:
Attribute value holder with which the style is associated.

getIlpObject

public IlpObject getIlpObject()
Deprecated. 
For a style associated with a dynamic object, returns the object. If the style is an IlpObject style where the local IlpObject is not set, getIlpObjectIdentifier should be used instead to access the identifier for the object. Applies to IlpObject and IlpRepresentationObject styles.

Returns:
Dynamic object with which the style is associated.

getIlpObjectIdentifier

public Object getIlpObjectIdentifier()
Deprecated. 
For a style associated with a dynamic object, returns the object identifier. Applies to IlpObject and IlpRepresentationObject styles.

Returns:
Identifier for the dynamic object with which the style is associated.

getRepresentationObject

public IlpRepresentationObject getRepresentationObject()
Deprecated. 
For a style associated with a representation object, returns the object. Applies only to IlpRepresentationObject and IlpRepresentationObject/IlpAttribute styles.

Returns:
Representation object with which the style is associated.

getGraphicView

public IlpGraphicView getGraphicView()
Deprecated. 
Returns graphic view.

Returns:
Graphic view with which the style is associated.

setRepresentationObject

public void setRepresentationObject(IlpRepresentationObject ro)
Deprecated. 
Sets the representation object afterwards, used by JTGO.

Internal method or field: do not use!

setGraphicView

public void setGraphicView(IlpGraphicView view)
Deprecated. 
Sets the graphic view afterwards.

Internal method or field: do not use!

equals

public boolean equals(Object other)
Deprecated. 
Tests IlpStyleContexts for equality.

Overrides:
equals in class Object
Parameters:
other - Object to test for equality with.
Returns:
Returns true if the contexts are the same, false otherwise.
Internal method or field: do not use!

initHashCode

protected int initHashCode()
Deprecated. 
Initializes the hash code cache.

Internal method or field: do not use!

hashCode

public int hashCode()
Deprecated. 
Support for hashmap.

Overrides:
hashCode in class Object
Internal method or field: do not use!

isStyleRemovable

public boolean isStyleRemovable()
Deprecated. 
Returns is the style can be cleaned up or not.

Internal method or field: do not use!

toString

public String toString()
Deprecated. 
Returns the String representation of this IlpStyleContext.

Overrides:
toString in class Object
Internal method or field: do not use!

debug

public void debug()
Deprecated. 
Print out the contents of this instance.

Internal method or field: do not use!

initializeFromStorage

protected void initializeFromStorage(IlpContext context,
                                     IlpStorageStyleIdentifier id,
                                     ReferenceQueue q)
Deprecated. 
Initializes all fields from the Storage identifier

Internal method or field: do not use!

updateBusinessObject

protected void updateBusinessObject(Object bo)
Deprecated. 
Internal method or field: do not use!

registerBusinessObject

public void registerBusinessObject(IlpObject bo,
                                   ReferenceQueue queue)
Deprecated. 
Internal method or field: do not use!

retrieveBusinessObject

public ilog.cpl.style.internal.IlpStyleContextValue retrieveBusinessObject()
Deprecated. 
Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.