Summ:  Nested Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Base
Class ChartNamedCollection

java.lang.Object com.artfulbits.aiCharts.Base.ChartCollection com.artfulbits.aiCharts.Base.ChartNamedCollection

Declaration: public class ChartNamedCollection extends ChartCollection

 

Represents collection of chart items managed by their names.

 

Since: 1.0

 

 

Nested Members Summary

 

Nested members inherited from class: com.artfulbits.aiCharts.Base.ChartCollection
ChartCollection.IChangeListener

 

 

Constructors Summary
ChartNamedCollection(java.lang.String pattern, ChartCollection.IChangeListener listener)
    
Initializes a new instance of collection.

 

 

Methods Summary
void add(java.lang.Object obj)
    
Adds object to the collection.
boolean contains(java.lang.String name)
    
Determines whether collection contains item with specified name.
java.lang.Object get(java.lang.String name)
    
Gets collection item by name.

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartCollection
clear, contains, get, indexOf, set, size

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartNamedCollection

 

public ChartNamedCollection( java.lang.String pattern,
ChartCollection.IChangeListener listener)

 

Initializes a new instance of collection. All collection modifications will be delivered via listener specified.

 

Parameters:
pattern-
item name pattern that participates in item validation process.
listener-
instance of ChartCollection.IChangeListener that will be used to deliver collection changed notifications.

 

 

 

 

add

 

public void add( java.lang.Object obj)

 

[ description from ChartCollection.add(java.lang.Object) ]
 
Adds object to the collection.

 

Parameters:
obj-
object that is indented to be added to collection.

 

Overrides: ChartCollection.add(Object)

 

 

 

get

 

public java.lang.Object get( java.lang.String name)

 

Gets collection item by name.

 

Parameters:
name-
target item name.
Returns:
collection item with specified name.

 

 

 

contains

 

public boolean contains( java.lang.String name)

 

Determines whether collection contains item with specified name.

 

Parameters:
name-
name of item.
Returns:
true if collection contains item with specified name, otherwise false.

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.