mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
include stuck components in drag
This commit is contained in:
+7
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user