}
static {
- if(LayoutUtil.HAS_BEANS){
- LayoutUtil.setDelegate(BoundSize.class, new PersistenceDelegate() {
- @Override
- protected Expression instantiate(Object oldInstance, Encoder out)
- {
- BoundSize bs = (BoundSize) oldInstance;
- if (Grid.TEST_GAPS) {
- return new Expression(oldInstance, BoundSize.class, "new", new Object[] {
- bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getGapPush(), bs.getConstraintString()
- });
- } else {
- return new Expression(oldInstance, BoundSize.class, "new", new Object[] {
- bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getConstraintString()
- });
- }
- }
- });
- }
+// if(LayoutUtil.HAS_BEANS){
+// LayoutUtil.setDelegate(BoundSize.class, new PersistenceDelegate() {
+// @Override
+// protected Expression instantiate(Object oldInstance, Encoder out)
+// {
+// BoundSize bs = (BoundSize) oldInstance;
+// if (Grid.TEST_GAPS) {
+// return new Expression(oldInstance, BoundSize.class, "new", new Object[] {
+// bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getGapPush(), bs.getConstraintString()
+// });
+// } else {
+// return new Expression(oldInstance, BoundSize.class, "new", new Object[] {
+// bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getConstraintString()
+// });
+// }
+// }
+// });
+// }
}
// ************************************************