本文整理汇总了Java中com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager.insertGridCells方法的典型用法代码示例。如果您正苦于以下问题:Java RadAbstractGridLayoutManager.insertGridCells方法的具体用法?Java RadAbstractGridLayoutManager.insertGridCells怎么用?Java RadAbstractGridLayoutManager.insertGridCells使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager
的用法示例。
在下文中一共展示了RadAbstractGridLayoutManager.insertGridCells方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processDrop
import com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager; //导入方法依赖的package包/类
@Override
public void processDrop(final GuiEditor editor, final RadComponent[] components, final GridConstraints[] constraintsToAdjust,
final ComponentDragObject dragObject) {
RadAbstractGridLayoutManager gridLayout = myContainer.getGridLayoutManager();
if (myContainer.getGridRowCount() == 0) {
gridLayout.insertGridCells(myContainer, 0, true, true, true);
}
if (myContainer.getGridColumnCount() == 0) {
gridLayout.insertGridCells(myContainer, 0, false, true, true);
}
dropIntoGrid(myContainer, components, myRow, myColumn, dragObject);
FormLayout formLayout = (FormLayout) myContainer.getDelegee().getLayout();
if (myXPart == 0) {
formLayout.setColumnSpec(1, new ColumnSpec("d"));
}
else if (myXPart == 2) {
gridLayout.insertGridCells(myContainer, 0, false, true, true);
}
if (myYPart == 0) {
formLayout.setRowSpec(1, new RowSpec("d"));
}
else if (myYPart == 2) {
gridLayout.insertGridCells(myContainer, 0, true, true, true);
}
}
示例2: processDrop
import com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager; //导入方法依赖的package包/类
@Override
public void processDrop(final GuiEditor editor, final RadComponent[] components, final GridConstraints[] constraintsToAdjust,
final ComponentDragObject dragObject) {
RadAbstractGridLayoutManager gridLayout = myContainer.getGridLayoutManager();
if (myContainer.getGridRowCount() == 0) {
gridLayout.insertGridCells(myContainer, 0, true, true, true);
}
if (myContainer.getGridColumnCount() == 0) {
gridLayout.insertGridCells(myContainer, 0, false, true, true);
}
dropIntoGrid(myContainer, components, myRow, myColumn, dragObject);
FormLayout formLayout = (FormLayout) myContainer.getDelegee().getLayout();
if (myXPart == 0) {
formLayout.setColumnSpec(1, ColumnSpec.decode("d"));
}
else if (myXPart == 2) {
gridLayout.insertGridCells(myContainer, 0, false, true, true);
}
if (myYPart == 0) {
formLayout.setRowSpec(1, RowSpec.decode("d"));
}
else if (myYPart == 2) {
gridLayout.insertGridCells(myContainer, 0, true, true, true);
}
}
示例3: processDrop
import com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager; //导入方法依赖的package包/类
@Override public void processDrop(final GuiEditor editor,
final RadComponent[] components,
final GridConstraints[] constraintsToAdjust,
final ComponentDragObject dragObject) {
RadAbstractGridLayoutManager gridLayout = myContainer.getGridLayoutManager();
if (myContainer.getGridRowCount() == 0 && myContainer.getGridColumnCount() == 0) {
gridLayout.insertGridCells(myContainer, 0, false, true, true);
gridLayout.insertGridCells(myContainer, 0, true, true, true);
}
super.processDrop(editor, components, constraintsToAdjust, dragObject);
Palette palette = Palette.getInstance(editor.getProject());
ComponentItem hSpacerItem = palette.getItem(HSpacer.class.getName());
ComponentItem vSpacerItem = palette.getItem(VSpacer.class.getName());
InsertComponentProcessor icp = new InsertComponentProcessor(editor);
if (myXPart == 0) {
insertSpacer(icp, hSpacerItem, GridInsertMode.ColumnAfter);
}
if (myXPart == 2) {
insertSpacer(icp, hSpacerItem, GridInsertMode.ColumnBefore);
}
if (myYPart == 0) {
insertSpacer(icp, vSpacerItem, GridInsertMode.RowAfter);
}
if (myYPart == 2) {
insertSpacer(icp, vSpacerItem, GridInsertMode.RowBefore);
}
}