[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Attribute.java,1.6,1.7
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-02-09 11:52:12
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1171/src/net/sourceforge/bprocessor/model Modified Files: Attribute.java Log Message: Added a editable parameter Index: Attribute.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Attribute.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Attribute.java 8 Feb 2006 10:10:14 -0000 1.6 --- Attribute.java 9 Feb 2006 11:52:04 -0000 1.7 *************** *** 25,28 **** --- 25,31 ---- /** The precision of the object */ private int precision; + + /** If the attribute can be modified or not */ + private boolean editable; /** *************** *** 36,41 **** --- 39,61 ---- setValue(value); setPrecision(precision); + editable = true; } + /** + * True if the attribute is editable + * @return if the attribute is editable + */ + public boolean isEditable() { + return editable; + } + + /** + * Set the attribute editable to edit + * @param edit The truth value + */ + public void setEditable(boolean edit) { + editable = edit; + } + /** * Constructor |