Class FormatAndRoutesModelImpl
java.lang.Object
javax.swing.AbstractListModel<BaseRoute<?,?>>
slash.navigation.converter.gui.models.FormatAndRoutesModelImpl
- All Implemented Interfaces:
Serializable,ComboBoxModel<BaseRoute<?,,?>> ListModel<BaseRoute<?,,?>> FormatAndRoutesModel,PositionListsModel
public class FormatAndRoutesModelImpl
extends AbstractListModel<BaseRoute<?,?>>
implements FormatAndRoutesModel
Acts as a
ComboBoxModel for the routes of a FormatAndRoutes.- Author:
- Christian Pesch
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionFormatAndRoutesModelImpl(PositionsModel positionsModel, CharacteristicsModel characteristicsModel) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPositionList(int index, BaseRoute<?, ?> route) BaseRoute<?, ?> getElementAt(int index) NavigationFormat<BaseRoute<?, ?>> intBaseRoute<?, ?> getRoute(int index) BaseRoute<?, ?> intgetSize()booleanvoidremovePositionList(BaseRoute<?, ?> route) voidrenamePositionList(String name) voidsetFormat(NavigationFormat<BaseRoute<?, ?>> format) voidsetModified(boolean modified) voidsetRoutes(FormatAndRoutes<?, ?, ?> formatAndRoutes) voidsetSelectedItem(Object anItem) voidsetSelectedRoute(BaseRoute<?, ?> route) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListenerMethods inherited from interface slash.navigation.converter.gui.models.PositionListsModel
addListDataListener, removeListDataListener
-
Constructor Details
-
Method Details
-
getRoutes
- Specified by:
getRoutesin interfaceFormatAndRoutesModel- Specified by:
getRoutesin interfacePositionListsModel
-
getFormat
- Specified by:
getFormatin interfaceFormatAndRoutesModel
-
renamePositionList
- Specified by:
renamePositionListin interfaceFormatAndRoutesModel
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAtin interfaceListModel<BaseRoute<?,?>>
-
getRoute
- Specified by:
getRoutein interfaceFormatAndRoutesModel
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceFormatAndRoutesModel
-
setModified
public void setModified(boolean modified) - Specified by:
setModifiedin interfaceFormatAndRoutesModel
-
addModifiedListener
- Specified by:
addModifiedListenerin interfaceFormatAndRoutesModel
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel<BaseRoute<?,?>>
-
getSelectedRoute
- Specified by:
getSelectedRoutein interfaceFormatAndRoutesModel- Specified by:
getSelectedRoutein interfacePositionListsModel
-
setSelectedItem
- Specified by:
setSelectedItemin interfaceComboBoxModel<BaseRoute<?,?>>
-