Exemplo n.º 1
0
        /// <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";
        }
Exemplo n.º 2
0
        /// <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";
        }
Exemplo n.º 3
0
		/// <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)
		{
		}
Exemplo n.º 4
0
		/// <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)
		{
		}
Exemplo n.º 5
0
 /// <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)
 {
 }
Exemplo n.º 6
0
 /// <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)
 {
 }