ilog.cpl.model.container
Class IlpAbstractRepresentationLink

java.lang.Object
  extended by ilog.cpl.model.container.IlpAbstractRepresentationNode
      extended by ilog.cpl.model.container.IlpAbstractRepresentationLink
All Implemented Interfaces:
ilog.cpl.css.internal.IlpCSSObject, IlpMutableRepresentationLink, IlpMutableRepresentationNode, IlpRepresentationLink, IlpRepresentationNode, IlpAttributeValueHolder, IlpRepresentationObject
Direct Known Subclasses:
IlpDefaultEquipmentLink, IlpDefaultNetworkLink

public class IlpAbstractRepresentationLink
extends IlpAbstractRepresentationNode
implements IlpMutableRepresentationLink

This class is the abstract implementation of IlpRepresentationLink.

Since:
JTGO 4.0
See Also:
IlpDefaultNetworkLink, IlpDefaultEquipmentLink

Field Summary
 
Fields inherited from interface ilog.cpl.model.IlpAttributeValueHolder
VALUE_NOT_SET
 
Fields inherited from interface ilog.cpl.model.IlpAttributeValueHolder
VALUE_NOT_SET
 
Constructor Summary
protected IlpAbstractRepresentationLink(IlpAttributeGroup model, IlpExpansionStrategy strategy, Logger logger)
          Creates a new link.
protected IlpAbstractRepresentationLink(IlpObject object, IlpExtendedAttributeGroup model, IlpExpansionStrategy strategy, Logger logger)
          Creates a new link attached to a business object.
 
Method Summary
 void addRepresentationLinkListener(RepresentationLinkListener listener)
          Adds a listener that is notified each time a change to this link occurs.
 void fireRepresentationLinkEvent(RepresentationLinkEvent event)
          Notifies the listeners of a link event.
 IlpRepresentationNode getFromNode()
          Returns the first end node of the link.
 IlpRepresentationNode getToNode()
          Returns the second end node of the link.
 void removeRepresentationLinkListener(RepresentationLinkListener listener)
          Removes a listener previously added with addRepresentationLinkListener.
 void setFromNode(IlpRepresentationNode node)
          Changes the first end node of the link.
 void setToNode(IlpRepresentationNode node)
          Changes the second end node of the link.
 
Methods inherited from class ilog.cpl.model.container.IlpAbstractRepresentationNode
addAttributeValueListener, addChild, addChildren, addChildren, addRepresentationNodeListener, addTreeAttributeValueListener, fireEvent, fireRepresentationNodeEvent, getAllowsChildren, getAttributeGroup, getAttributeValue, getAttributeValue, getChildren, getCSSClasses, getCSSID, getCSSType, getEditor, getExpansionStrategy, getIlpObject, getLogger, getParent, hasAttributeValue, isLeaf, removeAttributeValueListener, removeChild, removeChildren, removeChildren, removeChildren, removeRepresentationNodeListener, removeTreeAttributeValueListener, setAttributeValue, setAttributeValue, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.cpl.model.container.IlpMutableRepresentationNode
addChild, addChildren, addChildren, removeChild, removeChildren, removeChildren, removeChildren
 
Methods inherited from interface ilog.cpl.model.container.IlpRepresentationNode
addRepresentationNodeListener, getAllowsChildren, getChildren, getExpansionStrategy, getParent, isLeaf, removeRepresentationNodeListener
 
Methods inherited from interface ilog.cpl.model.IlpRepresentationObject
getEditor, getIlpObject
 
Methods inherited from interface ilog.cpl.model.IlpAttributeValueHolder
addAttributeValueListener, fireEvent, getAttributeGroup, getAttributeValue, getAttributeValue, hasAttributeValue, removeAttributeValueListener, setAttributeValue, setAttributeValue
 
Methods inherited from interface ilog.cpl.model.container.IlpRepresentationNode
addRepresentationNodeListener, getAllowsChildren, getChildren, getExpansionStrategy, getParent, isLeaf, removeRepresentationNodeListener
 
Methods inherited from interface ilog.cpl.model.IlpRepresentationObject
getEditor, getIlpObject
 
Methods inherited from interface ilog.cpl.model.IlpAttributeValueHolder
addAttributeValueListener, fireEvent, getAttributeGroup, getAttributeValue, getAttributeValue, hasAttributeValue, removeAttributeValueListener, setAttributeValue, setAttributeValue
 

Constructor Detail

IlpAbstractRepresentationLink

protected IlpAbstractRepresentationLink(IlpAttributeGroup model,
                                        IlpExpansionStrategy strategy,
                                        Logger logger)
Creates a new link.

Parameters:
model - The attribute group.
strategy - The child object loader, or null for a leaf link.
logger - Logger for handling log messages.

IlpAbstractRepresentationLink

protected IlpAbstractRepresentationLink(IlpObject object,
                                        IlpExtendedAttributeGroup model,
                                        IlpExpansionStrategy strategy,
                                        Logger logger)
Creates a new link attached to a business object.

Parameters:
object - The corresponding business object.
model - The attribute group.
strategy - The child object loader, or null for a leaf link.
logger - Logger for handling log messages.
Method Detail

getFromNode

public IlpRepresentationNode getFromNode()
Returns the first end node of the link.

Specified by:
getFromNode in interface IlpRepresentationLink

getToNode

public IlpRepresentationNode getToNode()
Returns the second end node of the link.

Specified by:
getToNode in interface IlpRepresentationLink

addRepresentationLinkListener

public void addRepresentationLinkListener(RepresentationLinkListener listener)
Adds a listener that is notified each time a change to this link occurs.

Specified by:
addRepresentationLinkListener in interface IlpRepresentationLink
Parameters:
listener - The listener to be added.

removeRepresentationLinkListener

public void removeRepresentationLinkListener(RepresentationLinkListener listener)
Removes a listener previously added with addRepresentationLinkListener.

Specified by:
removeRepresentationLinkListener in interface IlpRepresentationLink
Parameters:
listener - The listener to be removed.

setFromNode

public void setFromNode(IlpRepresentationNode node)
Changes the first end node of the link.

Specified by:
setFromNode in interface IlpMutableRepresentationLink

setToNode

public void setToNode(IlpRepresentationNode node)
Changes the second end node of the link.

Specified by:
setToNode in interface IlpMutableRepresentationLink

fireRepresentationLinkEvent

public void fireRepresentationLinkEvent(RepresentationLinkEvent event)
Notifies the listeners of a link event.



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