com.sas.swing.models
Class ListModelAdapter

com.sas.swing.models.ListModelAdapter
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.collection.ContentsChangedListener, ViewDefaultModel, com.sas.util.transforms.DisplayTransformInterface, java.io.Serializable, java.util.EventListener, javax.swing.ListModel
Direct Known Subclasses:
ComboBoxModelAdapter

public class ListModelAdapter
implements com.sas.collection.ContentsChangedListener, com.sas.beans.PropertyChangeSource, ViewDefaultModel, com.sas.util.transforms.DisplayTransformInterface

See Also:
Serialized Form

Field Summary
protected  boolean defaultModelAttached
           
protected  com.sas.util.transforms.TransformInterface displayTransform
           
protected  IndexedGetInterface model
           
protected  com.sas.beans.PropertyChangeSupport propertyChangeSupport
           
 
Constructor Summary
ListModelAdapter()
           
ListModelAdapter(IndexedGetInterface collection)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void contentsChanged(com.sas.collection.ContentsChangedEvent event)
           
protected  void firePropertyChange(java.beans.PropertyChangeEvent evt)
           
protected  void firePropertyChange(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
           
 com.sas.util.transforms.TransformInterface getDisplayTransform()
          Return current displayTransform, which can be null
 java.lang.Object getElementAt(int index)
           
static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
          Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about this ListModelAdapter.
 IndexedGetInterface getModel()
           
 int getSize()
           
 boolean isDefaultModelAttached()
          returns true is the component is using a default internal model.
protected  IndexedGetInterface newDefaultModel()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
protected  void setDefaultModelAttached(boolean defaultModelUsed)
           
 void setDisplayTransform(com.sas.util.transforms.TransformInterface newDisplayTransform)
          Sets the displayTransform to the given TransformInterface, which can be null
 void setModel(IndexedGetInterface collection)
           
 

Field Detail

defaultModelAttached

protected boolean defaultModelAttached

model

protected IndexedGetInterface model

propertyChangeSupport

protected com.sas.beans.PropertyChangeSupport propertyChangeSupport

displayTransform

protected com.sas.util.transforms.TransformInterface displayTransform
Constructor Detail

ListModelAdapter

public ListModelAdapter()

ListModelAdapter

public ListModelAdapter(IndexedGetInterface collection)
Method Detail

getExtendedBeanInfo

public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about this ListModelAdapter.

Returns:
the ExtendedBeanInfo for this class

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface com.sas.beans.PropertyChangeSource

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface com.sas.beans.PropertyChangeSource

firePropertyChange

protected void firePropertyChange(java.beans.PropertyChangeEvent evt)

firePropertyChange

protected void firePropertyChange(java.lang.String propName,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)

newDefaultModel

protected IndexedGetInterface newDefaultModel()

isDefaultModelAttached

public boolean isDefaultModelAttached()
Description copied from interface: ViewDefaultModel
returns true is the component is using a default internal model.

Specified by:
isDefaultModelAttached in interface ViewDefaultModel

setDefaultModelAttached

protected void setDefaultModelAttached(boolean defaultModelUsed)

getModel

public IndexedGetInterface getModel()

setModel

public void setModel(IndexedGetInterface collection)

getDisplayTransform

public com.sas.util.transforms.TransformInterface getDisplayTransform()
Return current displayTransform, which can be null

Specified by:
getDisplayTransform in interface com.sas.util.transforms.DisplayTransformInterface
Returns:
current displayTransform

setDisplayTransform

public void setDisplayTransform(com.sas.util.transforms.TransformInterface newDisplayTransform)
Sets the displayTransform to the given TransformInterface, which can be null

Specified by:
setDisplayTransform in interface com.sas.util.transforms.DisplayTransformInterface
Parameters:
newDisplayTransform - displayTransform to be set

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

contentsChanged

public void contentsChanged(com.sas.collection.ContentsChangedEvent event)
Specified by:
contentsChanged in interface com.sas.collection.ContentsChangedListener



Copyright © 2009 SAS Institute Inc. All Rights Reserved.