Skip to content

Commit

Permalink
(split)Initial version of IItemsModel, ListItemsModel, ItemsView
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-miryanov committed Jan 14, 2012
1 parent e9fbda7 commit 265808a
Show file tree
Hide file tree
Showing 3 changed files with 594 additions and 0 deletions.
42 changes: 42 additions & 0 deletions bit101/components/IItemsModel.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* IItemsModel.hx
* Sergey Miryanov
* version 0.9.10
*
* An inteface for items models.
*
* Copyright (c) 2011 Sergey Miryanov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package com.bit101.components;

import com.bit101.components.ListItem;

interface IItemsModel
{
public var rowCount (getRowCount, null) : Int;
public var columnCount (getColumnCount, null) : Int;

public function getRowCount () : Int;
public function getColumnCount () : Int;

public function data (row : Int, column : Int) : ListItem;
}
Loading

0 comments on commit 265808a

Please sign in to comment.