Decision Center API

ilog.webui.dhtml.components
Class IlxWDefaultListCellRenderer

java.lang.Object
  extended by ilog.webui.dhtml.IlxWContainer
      extended by ilog.webui.dhtml.IlxWComponent
          extended by ilog.webui.dhtml.components.IlxWLabel
              extended by ilog.webui.dhtml.components.IlxWDefaultListCellRenderer
All Implemented Interfaces:
IlxWListCellRenderer, ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, Serializable

public class IlxWDefaultListCellRenderer
extends IlxWLabel
implements IlxWListCellRenderer

Renders an item in a list.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent
IlxWComponent.DynamicStyleMap
 
Field Summary
static String DEFAULT_NULL_VALUE_RENDER_STRING
           
 
Fields inherited from class ilog.webui.dhtml.IlxWContainer
listenerList
 
Constructor Summary
IlxWDefaultListCellRenderer()
          Constructs a default renderer object for an item in a list.
 
Method Summary
protected  void firePropertyChange(String propertyName, Object oldValue, Object newValue)
          Overridden for performance reasons.
 IlxWComponent getListCellRendererComponent(IlxWList list, Object value, int index, boolean isSelected)
          Return a component that has been configured to display the specified value.
 
Methods inherited from class ilog.webui.dhtml.components.IlxWLabel
getIcon, getIconPath, getText, getTextElement, printComponent, setIconPath, setText
 
Methods inherited from class ilog.webui.dhtml.IlxWComponent
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate
 
Methods inherited from class ilog.webui.dhtml.IlxWContainer
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NULL_VALUE_RENDER_STRING

public static String DEFAULT_NULL_VALUE_RENDER_STRING
Constructor Detail

IlxWDefaultListCellRenderer

public IlxWDefaultListCellRenderer()
Constructs a default renderer object for an item in a list.

Method Detail

getListCellRendererComponent

public IlxWComponent getListCellRendererComponent(IlxWList list,
                                                  Object value,
                                                  int index,
                                                  boolean isSelected)
Description copied from interface: IlxWListCellRenderer
Return a component that has been configured to display the specified value. That component's print method is then called to "render" the cell.

Specified by:
getListCellRendererComponent in interface IlxWListCellRenderer
Parameters:
list - The IlxWList we want to render.
value - The value returned by list.getModel().getElementAt(index).
index - The cells index.
isSelected - True if the specified cell was selected.
Returns:
A component whose print() method will render the specified value.
See Also:
IlxWList, ListSelectionModel, ListModel

firePropertyChange

protected void firePropertyChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)
Overridden for performance reasons.

Overrides:
firePropertyChange in class IlxWComponent
Parameters:
propertyName - The name of the property that was changed.
oldValue - The old value of the property.
newValue - The new value of the property.
See Also:
PropertyChangeSupport

Decision Center API

© Copyright IBM Corp. 1987, 2013