org.grinvin.list

Class DefaultGraphListsModel

Implemented Interfaces:
GraphListsModel

public class DefaultGraphListsModel
extends java.lang.Object
implements GraphListsModel

Model that contains a list of available graph lists and the current sequence number.

Constructor Summary

DefaultGraphListsModel(TypedListModel model)
Create a new graph lists model, backed by the given listmodel.

Method Summary

GraphBrowserWindow
createNewGraphBrowserWindow()
Create a new graph browser window and add it to this list.
TypedListModel
getListModel()
Return the list model for this window.
int
getListSequenceNumber()
Return the current sequence number, used for the name of a new list to be added to this window.
void
setListSequenceNumber(int listSequenceNumber)
Set the list sequence number.

Constructor Details

DefaultGraphListsModel

public DefaultGraphListsModel(TypedListModel model)
Create a new graph lists model, backed by the given listmodel.

Method Details

createNewGraphBrowserWindow

public GraphBrowserWindow createNewGraphBrowserWindow()
Create a new graph browser window and add it to this list. The list sequence number is used for the name of this list, and is incremented.
Specified by:
createNewGraphBrowserWindow in interface GraphListsModel
Returns:
the new window

getListModel

public TypedListModel getListModel()
Return the list model for this window.
Specified by:
getListModel in interface GraphListsModel

getListSequenceNumber

public int getListSequenceNumber()
Return the current sequence number, used for the name of a new list to be added to this window.
Specified by:
getListSequenceNumber in interface GraphListsModel

setListSequenceNumber

public void setListSequenceNumber(int listSequenceNumber)
Set the list sequence number.
Specified by:
setListSequenceNumber in interface GraphListsModel