com.sas.models
Class DefaultColorList

com.sas.models.DefaultColorList
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, CollectionInterface, com.sas.collection.ContentsChangedSource, OrderedCollectionInterface, Sortable, StaticCollectionInterface, StaticOrderedCollectionInterface, ComponentInterface, com.sas.DeepClonable, LinkPropertiesInterface, ModelInterface, NodeInterface, SimpleNodeInterface, TreeInterface, com.sas.PublicClonable, com.sas.util.Countable, com.sas.util.Enumerable, com.sas.util.EventGateInterface, IndexedGetInterface, IndexedSetInterface, ViewInterface, MultipleValueEventSourceInterface, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class DefaultColorList

An Ordered Collection of java.awt.SystemColors and com.sas.awt.Color objects.

Creating a DefaultColorList Component

DefaultColorList = new DefaultColorList();

Usage

The DefaultColorList is a list which can be dropped on any visual component that supports OrderedCollection Interface and TreeInterface like ListBox, ComboBox, or TreeInterface. The List is filled with the java defined Colors. Can add to this list a com.sas.awt.Color Object.


 

See Also:
ColorNameList,
, Serialized Form

Field Summary
protected static java.lang.String RB_KEY
           
 
Fields inherited from class com.sas.models.ColorList
COLORNOTFOUNDERROR, NodeName, NodeType
 
Fields inherited from class com.sas.collection.BaseCollection
allContentsChangedListeners, mappingObject
 
Constructor Summary
DefaultColorList()
          Default constructor that fills the list with java defined colors.
DefaultColorList(java.util.Enumeration e)
          A constructor that takes enumeration of java.awt.Color or com.sas.awt.Color objects and creates a list based on that.
 
Method Summary
 java.lang.Object clone()
          Create a copy of the current model
static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
           
 
Methods inherited from class com.sas.models.ColorList
add, addItems, append, convertObject, countNodeChildren, getColor, getColor, getColors, getNodeChild, getNodeChildCount, getNodeChildren, getNodeExpandedText, getNodeText, getNodeType, getRoot, isLeafNode, set, setList
 
Methods inherited from class com.sas.collection.OrderedCollection
add, addItems, apply, clone, computeNewCapacity, contains, count, dumpComponent, equals, equals, get, getIndex, getItems, getItems, getLastIndex, moveHole, moveHoleEnsureCapacity, remove, removeAll, removeAll, removeAt, setSize, sort, sort, sort, sort, toArray, toArray, toString
 
Methods inherited from class com.sas.collection.BaseCollection
addContentsChangedListener, anyContentsChangedListeners, disableEvents, enableEvents, enableEvents, fireContentsChanged, map, removeContentsChangedListener, unmap
 
Methods inherited from class com.sas.Component
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, beansIsDesignTime, beansSetDesignTime, clone, detachModel, detachView, firePropertyChange, firePropertyChange, fireVetoableChange, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getLinkInfo, getModelInterface, getRequiredInterfaces, getResources, getStringResource, getViewInterfaceSupportInfo, initialize, initializeComponent, isDesignTime, isLinked, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setComponentDescription, setComponentSupportInfo, setDefaultValues, setLinkInfo, setModelInterface, setRequiredInterfaces, setViewInterfaceSupportInfo, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, validateObject
 
Methods inherited from interface com.sas.collection.ContentsChangedSource
addContentsChangedListener, removeContentsChangedListener
 
Methods inherited from interface com.sas.beans.PropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

RB_KEY

protected static final java.lang.String RB_KEY
See Also:
Constant Field Values
Constructor Detail

DefaultColorList

public DefaultColorList()
Default constructor that fills the list with java defined colors.


DefaultColorList

public DefaultColorList(java.util.Enumeration e)
A constructor that takes enumeration of java.awt.Color or com.sas.awt.Color objects and creates a list based on that. If the enumeration is empty, an empty list is created. If the enumeration does not contain java.awt.Colors or com.sas.awt.Colors then creates an empty list.

Parameters:
Enumeration - of com.sas.awt.Color objects
Method Detail

getExtendedBeanInfo

public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Create a copy of the current model

Specified by:
clone in interface CollectionInterface
Specified by:
clone in interface OrderedCollectionInterface
Specified by:
clone in interface StaticCollectionInterface
Specified by:
clone in interface StaticOrderedCollectionInterface
Specified by:
clone in interface com.sas.PublicClonable
Overrides:
clone in class ColorList
Returns:
a clone of this collection.
Throws:
java.lang.CloneNotSupportedException - if the clone fails.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.