class Layouts {

    public static int widthOrDefault(PanelDefinition def) {
        Integer width = toInteger(def.getWidthAsInt());
        return width == null ? DEFAULT_CHILD_SIZE : width;
    }

}