Class PaletteImpl.SingleObjectSelectionModel<R>
- java.lang.Object
-
- com.inductiveautomation.factorypmi.designer.palette.model.PaletteImpl.SingleObjectSelectionModel<R>
-
- Enclosing class:
- PaletteImpl
public static class PaletteImpl.SingleObjectSelectionModel<R> extends java.lang.Object
Implementation copied (and simplified) from DefaultSingleSelectionModel and modified to handle objects, not ints.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.event.ChangeEvent
changeEvent
protected javax.swing.event.EventListenerList
listenerList
The collection of registered listeners
-
Constructor Summary
Constructors Constructor Description SingleObjectSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(javax.swing.event.ChangeListener l)
void
clearSelection()
protected void
fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type.R
getSelected()
boolean
isSelected()
void
removeChangeListener(javax.swing.event.ChangeListener l)
void
setSelected(R obj)
-
-
-
Method Detail
-
getSelected
public R getSelected()
-
setSelected
public void setSelected(R obj)
-
clearSelection
public void clearSelection()
-
isSelected
public boolean isSelected()
-
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener l)
-
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener l)
-
fireStateChanged
protected void fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. The event instance is created lazily.- See Also:
EventListenerList
-
-