| |||||||||||||||||
| Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
| Model\AttributeModel\XFK.cs | - | 0,0 % | 0,0 % | 0,0 % |
|
||||||||||||
| 1 | #region Copyright | |
| 2 | /* | |
| 3 | ShowX. Maps business objects into presentation layer. | |
| 4 | Copyright (C) 2005 Jesus Diaz. | |
| 5 | ||
| 6 | This library is free software; you can redistribute it and/or | |
| 7 | modify it under the terms of the GNU Lesser General Public | |
| 8 | License as published by the Free Software Foundation; either | |
| 9 | version 2.1 of the License, or (at your option) any later version. | |
| 10 | ||
| 11 | This library is distributed in the hope that it will be useful, | |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | Lesser General Public License for more details. | |
| 15 | ||
| 16 | You should have received a copy of the GNU Lesser General Public | |
| 17 | License along with this library; if not, write to the Free Software | |
| 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
| 19 | ||
| 20 | For project details see: http://showx.sourceforge.net | |
| 21 | */ | |
| 22 | #endregion | |
| 23 | ||
| 24 | namespace ShowX.Model.AttributeModel | |
| 25 | { | |
| 26 | /// <summary> | |
| 27 | /// Decorate a property that represent a reference to another ShowX object | |
| 28 | /// </summary> | |
| 29 | /// <remarks> | |
| 30 | /// <para> | |
| 31 | /// In case of properties that returns ShowX objects (i.e, objects of | |
| 32 | /// classes that implements administrative methods as GetAllX and so) it is | |
| 33 | /// posible an special treatment over them. For example, to use a drowpdown list | |
| 34 | /// to show all the possible values of the foreign type, and mark as selected the | |
| 35 | /// associated value to the treated instance. | |
| 36 | /// </para> | |
| 37 | /// <para> | |
| 38 | /// This funcionality could be deduced | |
| 39 | /// from the return type of the property, so it migth be deleted in the future. | |
| 40 | /// </para> | |
| 41 | /// </remarks> | |
| 42 | public class XFK : XAttr, IForeignIdentifierMap | |
| 43 | { | |
| 44 | /// <summary> | |
| 45 | /// Constructor. Set to true the readOnly value. Set to false the | |
| 46 | /// editOnInset value. | |
| 47 | /// </summary> | |
| 48 | 0 | public XFK () |
| 49 | { | |
| 50 | this.readOnly = true; | |
| 51 | this.show = false; | |
| 52 | } | |
| 53 | ||
| 54 | /// <summary> | |
| 55 | /// Override the inherited ReadOnly property, so the value of the field | |
| 56 | /// readOnly can't be altered. | |
| 57 | /// </summary> | |
| 58 | 0 | public override bool ReadOnly |
| 59 | { | |
| 60 | set {} | |
| 61 | } | |
| 62 | } | |
| 63 | } | |
| 64 |
|
||||||||