include stuck components in drag

This commit is contained in:
bancika
2011-01-13 21:34:45 +00:00
parent f3ed8d1a7c
commit e5c0b01aca
18 changed files with 113 additions and 41 deletions
@@ -23,11 +23,12 @@ public class ComponentType {
private Class<? extends IDIYComponent> instanceClass;
private double zOrder;
private boolean stretchable;
private boolean sticky;
@SuppressWarnings("unchecked")
public ComponentType(String name, String description, String category, String namePrefix,
String author, Icon icon, Class<? extends IDIYComponent> instanceClass,
double zOrder, boolean stretchable) {
double zOrder, boolean stretchable, boolean sticky) {
super();
this.name = name;
this.description = description;
@@ -38,6 +39,7 @@ public class ComponentType {
this.instanceClass = instanceClass;
this.zOrder = zOrder;
this.stretchable = stretchable;
this.sticky = sticky;
}
public String getName() {
@@ -76,6 +78,10 @@ public class ComponentType {
public boolean isStretchable() {
return stretchable;
}
public boolean isSticky() {
return sticky;
}
@Override
public String toString() {