public class LettringSelectionModel extends DefaultListSelectionModel
| Modifier and Type | Field and Description |
|---|---|
protected Entry |
entry |
protected LetteringTableModel |
letteringTableModel |
protected int |
lineSelected |
protected PropertyChangeSupport |
pcs |
leadAnchorNotificationEnabled, listenerListMULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION| Constructor and Description |
|---|
LettringSelectionModel(LetteringTableModel letteringTableModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
addSelectionInterval(int row,
int column) |
protected void |
firePropertyChange(String propertyName,
Object newValue) |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue) |
Entry |
getCurrentEntrySelected() |
String |
getCurrentLettring() |
List<Entry> |
getEntries() |
int |
getSelectionMode() |
boolean |
letteringNotExist(int row)
return true if lettering is null, or not null but empty
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
selectRoundedAndNewEntries(int indexFirstRoundedEntry,
int indexSecondRoundedEntry,
Entry newResultRoundedEntry)
After rounding one of two entries, selection of its, and of the new entry,
resulting of rounding
|
void |
setSelectionInterval(int row,
int column) |
addListSelectionListener, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toStringprotected LetteringTableModel letteringTableModel
protected Entry entry
protected int lineSelected
protected final PropertyChangeSupport pcs
public LettringSelectionModel(LetteringTableModel letteringTableModel)
public void addSelectionInterval(int row,
int column)
addSelectionInterval in interface ListSelectionModeladdSelectionInterval in class DefaultListSelectionModelpublic void setSelectionInterval(int row,
int column)
setSelectionInterval in interface ListSelectionModelsetSelectionInterval in class DefaultListSelectionModelpublic boolean letteringNotExist(int row)
row - index of the line to testpublic String getCurrentLettring()
public Entry getCurrentEntrySelected()
public void selectRoundedAndNewEntries(int indexFirstRoundedEntry,
int indexSecondRoundedEntry,
Entry newResultRoundedEntry)
public int getSelectionMode()
getSelectionMode in interface ListSelectionModelgetSelectionMode in class DefaultListSelectionModelpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
Copyright © 2008–2013 CodeLutin. All rights reserved.