Skip to content
Snippets Groups Projects
Commit 0de79014 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

refactoring - setters added

parent 9762b975
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -8,9 +8,9 @@
*/
function LayoutReaction(javaObject) {
this.setId(javaObject.idObject);
this.width = javaObject.width;
this.color = javaObject.color;
this.reverse = javaObject.reverse;
this.setWidth(javaObject.width);
this.setColor(javaObject.color);
this.setReverse(javaObject.reverse);
}
LayoutReaction.prototype.getId = function() {
......@@ -21,6 +21,18 @@ LayoutReaction.prototype.setId = function(id) {
this.id = parseInt(id);
};
LayoutReaction.prototype.setWidth = function(width) {
this.width = width;
};
LayoutReaction.prototype.setColor = function(color) {
this.color = color;
};
LayoutReaction.prototype.setReverse= function(reverse) {
this.reverse = reverse;
};
LayoutReaction.prototype.getWidth = function() {
return this.width;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment