コード例 #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";
        }
コード例 #2
0
ファイル: G2DList.cs プロジェクト: NinjaSteph/SureShot
        /// <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";
        }
コード例 #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)
		{
		}
コード例 #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)
		{
		}
コード例 #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)
 {
 }
コード例 #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)
 {
 }