+ public static RowLayoutBean getRowLayout(RequestProcessor processor, Resource configuration) throws DatabaseException {\r
+ return processor.sync(new ResourceRead<RowLayoutBean>(configuration) {\r
+ @Override\r
+ public RowLayoutBean perform(ReadGraph graph) throws DatabaseException {\r
+ ViewsResources VIEW = ViewsResources.getInstance(graph);\r
+ Integer type = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_type, Bindings.INTEGER);\r
+ Integer spacing = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_spacing, Bindings.INTEGER);\r
+ Boolean center = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_center, Bindings.BOOLEAN);\r
+ Boolean fill = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_fill, Bindings.BOOLEAN);\r
+ Boolean justify = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_justify, Bindings.BOOLEAN);\r
+ Boolean pack = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_pack, Bindings.BOOLEAN);\r
+ Boolean wrap = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_wrap, Bindings.BOOLEAN);\r
+ ExtendedMargins extendedMargins = graph.getPossibleRelatedValue(resource, VIEW.RowLayout_extendedMargins, EXTENDED_MARGINS_BINDING);\r
+\r
+ RowLayoutBean layout = new RowLayoutBean();\r
+ layout.type = type;\r
+ layout.spacing = spacing;\r
+ layout.center = center;\r
+ layout.fill = fill;\r
+ layout.justify = justify;\r
+ layout.pack = pack;\r
+ layout.wrap = wrap;\r
+ layout.marginLeft = extendedMargins.left;\r
+ layout.marginRight = extendedMargins.right;\r
+ layout.marginTop = extendedMargins.top;\r
+ layout.marginBottom = extendedMargins.bottom;\r
+ return layout;\r
+ }\r
+ });\r
+ }\r
+\r
+ public static RowDataBean getRowData(RequestProcessor processor, Resource configuration) throws DatabaseException {\r
+ return processor.sync(new ResourceRead<RowDataBean>(configuration) {\r
+ @Override\r
+ public RowDataBean perform(ReadGraph graph) throws DatabaseException {\r
+ ViewsResources VIEW = ViewsResources.getInstance(graph);\r
+ RowDataBean data = new RowDataBean();\r
+ data.width = graph.getPossibleRelatedValue(resource, VIEW.GridLayout_GridData_preferredWidth, Bindings.INTEGER);\r
+ data.height = graph.getPossibleRelatedValue(resource, VIEW.GridLayout_GridData_preferredHeight, Bindings.INTEGER);\r
+ return data;\r
+ }\r
+ });\r
+ }\r
+\r