* The Apache Software License, Version 1.1
* ============================================================================
*
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ * Copyright (C) 1999-2004 The Apache Software Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*/
public static int getPropertyId(String name) {
Integer i = (Integer) s_htPropNames.get(name);
- if (i == null)
+ if (i == null) {
return -1;
+ }
return i.intValue();
}
*/
public static int getSubPropertyId(String name) {
Integer i = (Integer) s_htSubPropNames.get(name);
- if (i == null)
+ if (i == null) {
return -1;
+ }
return i.intValue();
}
pdim = new DimensionPropertyMaker(m);
pdim.setCorresponding(PR_HEIGHT, PR_HEIGHT, PR_WIDTH);
pdim.setExtraCorresponding(new int[][] {
- { PR_MIN_HEIGHT, PR_MIN_HEIGHT, PR_MIN_WIDTH, },
- { PR_MAX_HEIGHT, PR_MAX_HEIGHT, PR_MAX_WIDTH, }
+ {PR_MIN_HEIGHT, PR_MIN_HEIGHT, PR_MIN_WIDTH, },
+ {PR_MAX_HEIGHT, PR_MAX_HEIGHT, PR_MAX_WIDTH, }
});
pdim.setRelative(true);
addPropertyMaker("block-progression-dimension", m);
l.setByShorthand(true);
m.addSubpropMaker(l);
- l= new LengthProperty.Maker(CP_OPTIMUM);
+ l = new LengthProperty.Maker(CP_OPTIMUM);
l.setDefault("auto");
l.setAutoOk(true);
l.setPercentBase(LengthBase.CONTAINING_BOX);
pdim.setRelative(true);
pdim.setCorresponding(PR_WIDTH, PR_WIDTH, PR_HEIGHT);
pdim.setExtraCorresponding(new int[][] {
- { PR_MIN_WIDTH, PR_MIN_WIDTH, PR_MIN_HEIGHT, },
- { PR_MAX_WIDTH, PR_MAX_WIDTH, PR_MAX_HEIGHT, }
+ {PR_MIN_WIDTH, PR_MIN_WIDTH, PR_MIN_HEIGHT, },
+ {PR_MAX_WIDTH, PR_MAX_WIDTH, PR_MAX_HEIGHT, }
});
addPropertyMaker("inline-progression-dimension", m);
return null;
}
int correspondingValue = corresponding.getEnum();
- if (correspondingValue == JUSTIFY)
+ if (correspondingValue == JUSTIFY) {
return new EnumProperty(START);
- else if (correspondingValue == END)
+ } else if (correspondingValue == END) {
return new EnumProperty(END);
- else if (correspondingValue == START)
+ } else if (correspondingValue == START) {
return new EnumProperty(START);
- else if (correspondingValue == CENTER)
+ } else if (correspondingValue == CENTER) {
return new EnumProperty(CENTER);
- return null;
+ } else {
+ return null;
+ }
}
};
m.setInherited(true);