/// <summary> /// Creates a list that displays the elements in the specified model. /// </summary> /// <param name="listModel"></param> public G2DList(ListModel listModel) : base() { if (listModel == null) { throw new ArgumentException("listModel has to be non-null value"); } this.listModel = listModel; selectionModel = new DefaultListSelectionModel(); cellRenderer = new DefaultListCellRenderer(); backgroundColor = Color.White; selectionBackgroundColor = Color.SkyBlue; selectionForegroundColor = Color.White; pressedKeys = new List <Keys>(); scrollableTracksViewportHeight = false; scrollableTracksViewportWidth = false; name = "G2DList"; }
/// <summary> /// Creates a list that displays the elements in the specified model. /// </summary> /// <param name="listModel"></param> public G2DList(ListModel listModel) : base() { if (listModel == null) throw new ArgumentException("listModel has to be non-null value"); this.listModel = listModel; selectionModel = new DefaultListSelectionModel(); cellRenderer = new DefaultListCellRenderer(); backgroundColor = Color.White; selectionBackgroundColor = Color.SkyBlue; selectionForegroundColor = Color.White; pressedKeys = new List<Keys>(); scrollableTracksViewportHeight = false; scrollableTracksViewportWidth = false; name = "G2DList"; }
/// <summary> /// Constructs a <code>JTable</code> that is initialized with /// <code>dm</code> as the data model, <code>cm</code> as the /// column model, and <code>sm</code> as the selection model. /// </summary> public JTable(TableModel @dm, TableColumnModel @cm, ListSelectionModel @sm) { }
/// <summary> /// Sets the row selection model for this table to <code>newModel</code> /// and registers for listener notifications from the new selection model. /// </summary> public void setSelectionModel(ListSelectionModel @newModel) { }