use of com.liferay.ide.layouttpl.core.model.PortletLayoutElement in project liferay-ide by liferay.
the class LayoutTemplatesFactory method add_Row_3.
public static void add_Row_3(CanAddPortletLayouts element) {
PortletLayoutElement row = element.getPortletLayouts().insert();
PortletColumnElement column1 = row.getPortletColumns().insert();
PortletColumnElement column2 = row.getPortletColumns().insert();
PortletColumnElement column3 = row.getPortletColumns().insert();
int fullWeight = column1.getFullWeight().content();
column1.setWeight(fullWeight / 3);
column2.setWeight(fullWeight / 3);
column3.setWeight(fullWeight / 3);
}
use of com.liferay.ide.layouttpl.core.model.PortletLayoutElement in project liferay-ide by liferay.
the class LayoutTemplatesFactory method add_Row_2_II.
public static void add_Row_2_II(CanAddPortletLayouts element) {
PortletLayoutElement row = element.getPortletLayouts().insert();
PortletColumnElement column1 = row.getPortletColumns().insert();
PortletColumnElement column2 = row.getPortletColumns().insert();
if (_isBootstrapStyle(element)) {
column1.setWeight(4);
column2.setWeight(8);
} else {
column1.setWeight(30);
column2.setWeight(70);
}
}
use of com.liferay.ide.layouttpl.core.model.PortletLayoutElement in project liferay-ide by liferay.
the class LayoutTemplatesFactory method add_Layout_1.
public static void add_Layout_1(LayoutTplElement layoutTpl) {
PortletLayoutElement row = layoutTpl.getPortletLayouts().insert();
PortletColumnElement column = row.getPortletColumns().insert();
column.setWeight(column.getFullWeight().content());
}
use of com.liferay.ide.layouttpl.core.model.PortletLayoutElement in project liferay-ide by liferay.
the class LayoutTemplatesFactory method add_Row_2_III.
public static void add_Row_2_III(CanAddPortletLayouts element) {
PortletLayoutElement row = element.getPortletLayouts().insert();
PortletColumnElement column1 = row.getPortletColumns().insert();
PortletColumnElement column2 = row.getPortletColumns().insert();
if (_isBootstrapStyle(element)) {
column1.setWeight(8);
column2.setWeight(4);
} else {
column1.setWeight(70);
column2.setWeight(30);
}
}
use of com.liferay.ide.layouttpl.core.model.PortletLayoutElement in project liferay-ide by liferay.
the class LayoutTemplatesFactory method add_Layout_2_2.
public static void add_Layout_2_2(LayoutTplElement layoutTpl) {
PortletLayoutElement row1 = layoutTpl.getPortletLayouts().insert();
PortletColumnElement column11 = row1.getPortletColumns().insert();
PortletColumnElement column12 = row1.getPortletColumns().insert();
PortletLayoutElement row2 = layoutTpl.getPortletLayouts().insert();
PortletColumnElement column21 = row2.getPortletColumns().insert();
PortletColumnElement column22 = row2.getPortletColumns().insert();
if (_isBootstrapStyle(layoutTpl)) {
column11.setWeight(8);
column12.setWeight(4);
column21.setWeight(4);
column22.setWeight(8);
} else {
column11.setWeight(70);
column12.setWeight(30);
column21.setWeight(30);
column22.setWeight(70);
}
}
Aggregations