mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
setup sticky and visibility policy for each point inidividually
This commit is contained in:
+1
-9
@@ -12,7 +12,6 @@ import org.diylc.core.IDIYComponent;
|
||||
*
|
||||
* @see IDIYComponent
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
public class ComponentType {
|
||||
|
||||
private String name;
|
||||
@@ -25,12 +24,10 @@ public class ComponentType {
|
||||
private Class<? extends IDIYComponent> instanceClass;
|
||||
private double zOrder;
|
||||
private boolean stretchable;
|
||||
private boolean sticky;
|
||||
|
||||
public ComponentType(String name, String description, CreationMethod creationMethod,
|
||||
String category, String namePrefix, String author, Icon icon,
|
||||
Class<? extends IDIYComponent> instanceClass, double zOrder, boolean stretchable,
|
||||
boolean sticky) {
|
||||
Class<? extends IDIYComponent> instanceClass, double zOrder, boolean stretchable) {
|
||||
super();
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
@@ -42,7 +39,6 @@ public class ComponentType {
|
||||
this.instanceClass = instanceClass;
|
||||
this.zOrder = zOrder;
|
||||
this.stretchable = stretchable;
|
||||
this.sticky = sticky;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@@ -85,10 +81,6 @@ public class ComponentType {
|
||||
return stretchable;
|
||||
}
|
||||
|
||||
public boolean isSticky() {
|
||||
return sticky;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user