mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
When editing component properties, group Length and Width properties
together
This commit is contained in:
@@ -83,5 +83,5 @@ public @interface EditableProperty {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int sortOrder() default Integer.MAX_VALUE;
|
int sortOrder() default 100;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3418,6 +3418,10 @@
|
|||||||
<releaseDate>2020-12-28 00:00:00.000 CET</releaseDate>
|
<releaseDate>2020-12-28 00:00:00.000 CET</releaseDate>
|
||||||
<name></name>
|
<name></name>
|
||||||
<changes>
|
<changes>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>When editing component properties, group Length and Width properties together</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>NEW_FEATURE</changeType>
|
<changeType>NEW_FEATURE</changeType>
|
||||||
<description>Português translation added (thanks Pedro Rizzi!)</description>
|
<description>Português translation added (thanks Pedro Rizzi!)</description>
|
||||||
|
|||||||
@@ -623,7 +623,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractLabeledComponen
|
|||||||
this.borderColor = borderColor;
|
this.borderColor = borderColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EditableProperty(name = "Length", defaultable = true, validatorClass = PositiveNonZeroMeasureValidator.class)
|
@EditableProperty(name = "Length", defaultable = true, validatorClass = PositiveNonZeroMeasureValidator.class, sortOrder = 101)
|
||||||
public Size getLength() {
|
public Size getLength() {
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
@@ -632,7 +632,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractLabeledComponen
|
|||||||
this.length = length;
|
this.length = length;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EditableProperty(name = "Width", defaultable = true, validatorClass = PositiveNonZeroMeasureValidator.class)
|
@EditableProperty(name = "Width", defaultable = true, validatorClass = PositiveNonZeroMeasureValidator.class, sortOrder = 102)
|
||||||
public Size getWidth() {
|
public Size getWidth() {
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user