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.ObjectImplementation copied (and simplified) from DefaultSingleSelectionModel and modified to handle objects, not ints.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.event.ChangeEventchangeEventprotected javax.swing.event.EventListenerListlistenerListThe collection of registered listeners
-
Constructor Summary
Constructors Constructor Description SingleObjectSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChangeListener(javax.swing.event.ChangeListener l)voidclearSelection()protected voidfireStateChanged()Notifies all listeners that have registered interest for notification on this event type.RgetSelected()booleanisSelected()voidremoveChangeListener(javax.swing.event.ChangeListener l)voidsetSelected(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
-
-