info.joseluismartin.gui.bind
Class ListAccessor

java.lang.Object
  extended by info.joseluismartin.gui.bind.AbstractControlAccessor
      extended by info.joseluismartin.gui.bind.ListAccessor
All Implemented Interfaces:
ControlAccessor, PropertyChangeListener, EventListener, ListDataListener

public class ListAccessor
extends AbstractControlAccessor
implements ListDataListener, PropertyChangeListener

ControlAccessor for JList

Since:
1.1
Author:
Jose Luis Martin - (jlm@joseluismartin.info)
See Also:
ControlAccessor

Constructor Summary
ListAccessor(Object list)
           
 
Method Summary
 void contentsChanged(ListDataEvent e)
          
 JList getControl()
           
 Collection<?> getControlValue()
          Gets the control value
 void intervalAdded(ListDataEvent e)
          
 void intervalRemoved(ListDataEvent e)
          
 void propertyChange(PropertyChangeEvent evt)
          
 void setControlValue(Object value)
          Sets the control value
 
Methods inherited from class info.joseluismartin.gui.bind.AbstractControlAccessor
addControlChangeListener, convertIfNecessary, fireControlChange, isEnabled, isTextControl, removeControlChangeListener, setControl, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListAccessor

public ListAccessor(Object list)
Method Detail

contentsChanged

public void contentsChanged(ListDataEvent e)

Specified by:
contentsChanged in interface ListDataListener

intervalAdded

public void intervalAdded(ListDataEvent e)

Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent e)

Specified by:
intervalRemoved in interface ListDataListener

getControlValue

public Collection<?> getControlValue()
Gets the control value

Specified by:
getControlValue in interface ControlAccessor
Returns:
the control value

setControlValue

public void setControlValue(Object value)
Sets the control value

Specified by:
setControlValue in interface ControlAccessor
Parameters:
value - the value to set

getControl

public JList getControl()
Overrides:
getControl in class AbstractControlAccessor
Returns:
the control

propertyChange

public void propertyChange(PropertyChangeEvent evt)

Specified by:
propertyChange in interface PropertyChangeListener


Copyright © 2013 JDAL. All Rights Reserved.