@Deprecated public class IltDefaultChildrenModel extends Object implements IltChildrenModel, Cloneable
IlpDataSource
,
IltDefaultDataSource
Constructor and Description |
---|
IltDefaultChildrenModel()
Deprecated.
Creates a children model.
|
IltDefaultChildrenModel(Enumeration children)
Deprecated.
Creates a children model, given the set of children.
|
IltDefaultChildrenModel(Enumeration children,
Enumeration outsideLinks)
Deprecated.
Creates a children model, given the set of children and the set of
outside links.
|
IltDefaultChildrenModel(IltStateHolder[] children)
Deprecated.
Creates a children model, given the set of children.
|
IltDefaultChildrenModel(IltStateHolder[] children,
IltAbstractLink[] outsideLinks)
Deprecated.
Creates a children model, given the set of children and the set of
outside links.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(IltStateHolder child)
Deprecated.
Adds an object to the set of children.
|
void |
addChild(IltStateHolder child,
int index)
Deprecated.
Adds an object to the set of children, at a given index.
|
void |
addChild(IltStateHolder child,
int index,
Object childRelation)
Deprecated.
Adds an object to the set of children, at a given index, with an
associated child relation.
|
void |
addChild(IltStateHolder child,
Object childRelation)
Deprecated.
Adds an object to the set of children with an associated child relation.
|
void |
addChildrenModelListener(IltChildrenModelListener listener)
Deprecated.
Registers a listener for notification once the child model's contents
changes.
|
Object |
clone()
Deprecated.
Creates a copy of this children model, containing the same objects.
|
void |
fireChildrenModelChanged(IltChildrenModelEvent event)
Deprecated.
Broadcasts an event.
|
IltStateHolder |
getChild(int index)
Deprecated.
Returns a child object, given by its index.
|
int |
getChildCount()
Deprecated.
Returns the current number of child objects in the set.
|
Object |
getChildRelation(int index)
Deprecated.
Returns an object describing additional properties of the relation
between the container and a particular subordinate object.
|
Enumeration |
getChildren()
Deprecated.
Returns all the children within this object.
|
int |
getIndexOfChild(IltStateHolder childObject)
Deprecated.
Returns the index of a given child object.
|
Enumeration |
getOutsideLinks()
Deprecated.
Returns an enumeration of the links connecting an object inside the
container with an object outside the container.
|
void |
removeAllChildren()
Deprecated.
Removes all the objects from the set of children.
|
void |
removeChild(IltStateHolder child)
Deprecated.
Removes an object from the set of children.
|
void |
removeChildrenModelListener(IltChildrenModelListener listener)
Deprecated.
Deregisters a listener.
|
void |
setChildRelation(IltStateHolder child,
Object childRelation)
Deprecated.
Changes the object describing additional properties of the relation
between the container and a particular subordinate object.
|
public IltDefaultChildrenModel(Enumeration children)
children
- an enumeration of IltStateHolder
public IltDefaultChildrenModel(IltStateHolder[] children)
public IltDefaultChildrenModel(Enumeration children, Enumeration outsideLinks)
children
- an enumeration of IltStateHolder
outsideLinks
- an enumeration of IltAbstractLink
public IltDefaultChildrenModel(IltStateHolder[] children, IltAbstractLink[] outsideLinks)
public IltDefaultChildrenModel()
addChild
.public int getChildCount()
getChildCount
in interface IltChildrenModel
public IltStateHolder getChild(int index)
getChild
in interface IltChildrenModel
index
- an integer >= 0, less than getChildCount()
public Object getChildRelation(int index)
null
.getChildRelation
in interface IltChildrenModel
index
- an integer >= 0, less than getChildCount()
IltChildInitializer
,
IlpShelfItemPosition
public int getIndexOfChild(IltStateHolder childObject)
getIndexOfChild
in interface IltChildrenModel
public Enumeration getChildren()
Enumeration
of IltStateHolder
objects.public Enumeration getOutsideLinks()
This implementation returns an empty enumeration.
getOutsideLinks
in interface IltChildrenModel
IltAbstractLink
public void addChildrenModelListener(IltChildrenModelListener listener)
Note that implementations of this interface which provide static child models (i.e. those which cannot add or remove child objects) can ignore the listeners.
addChildrenModelListener
in interface IltChildrenModel
public void removeChildrenModelListener(IltChildrenModelListener listener)
removeChildrenModelListener
in interface IltChildrenModel
listener
- a listener that has previously been registeredpublic void fireChildrenModelChanged(IltChildrenModelEvent event)
public void addChild(IltStateHolder child)
public void addChild(IltStateHolder child, Object childRelation)
public void addChild(IltStateHolder child, int index)
public void addChild(IltStateHolder child, int index, Object childRelation)
public void removeChild(IltStateHolder child)
public void removeAllChildren()
public void setChildRelation(IltStateHolder child, Object childRelation)
child
- One of the childrenchildRelation
- An application-dependent objectIltChildInitializer
,
IlpShelfItemPosition
public Object clone()
Note: It is not possible to display the same object in the same IltGraphicManager as a element of two different containers. In other words, before using the copied children model for a container, the container of this children model must first be made invisible.
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.