PlatformDefaults.setDefaultVerticalUnit(unit);
}
- static {
- if(LayoutUtil.HAS_BEANS){
- LayoutUtil.setDelegate(UnitValue.class, new PersistenceDelegate() {
- @Override
- protected Expression instantiate(Object oldInstance, Encoder out)
- {
- UnitValue uv = (UnitValue) oldInstance;
- String cs = uv.getConstraintString();
- if (cs == null)
- throw new IllegalStateException("Design time must be on to use XML persistence. See LayoutUtil.");
-
- return new Expression(oldInstance, ConstraintParser.class, "parseUnitValueOrAlign", new Object[] {
- uv.getConstraintString(), (uv.isHorizontal() ? Boolean.TRUE : Boolean.FALSE), null
- });
- }
- });
- }
- }
+// static {
+// if(LayoutUtil.HAS_BEANS){
+// LayoutUtil.setDelegate(UnitValue.class, new PersistenceDelegate() {
+// @Override
+// protected Expression instantiate(Object oldInstance, Encoder out)
+// {
+// UnitValue uv = (UnitValue) oldInstance;
+// String cs = uv.getConstraintString();
+// if (cs == null)
+// throw new IllegalStateException("Design time must be on to use XML persistence. See LayoutUtil.");
+//
+// return new Expression(oldInstance, ConstraintParser.class, "parseUnitValueOrAlign", new Object[] {
+// uv.getConstraintString(), (uv.isHorizontal() ? Boolean.TRUE : Boolean.FALSE), null
+// });
+// }
+// });
+// }
+// }
// ************************************************
// Persistence Delegate and Serializable combined.