当前位置: 首页>>代码示例>>Java>>正文


Java LayoutManagerRegistry类代码示例

本文整理汇总了Java中com.intellij.uiDesigner.radComponents.LayoutManagerRegistry的典型用法代码示例。如果您正苦于以下问题:Java LayoutManagerRegistry类的具体用法?Java LayoutManagerRegistry怎么用?Java LayoutManagerRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LayoutManagerRegistry类属于com.intellij.uiDesigner.radComponents包,在下文中一共展示了LayoutManagerRegistry类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: collectUnknownLayoutManagerClasses

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
private void collectUnknownLayoutManagerClasses(final Project project, final SnapShotRemoteComponent rc,
                                                final Set<String> layoutManagerClasses) throws IOException {
  RadComponentFactory factory = InsertComponentProcessor.getRadComponentFactory(project, rc.getClassName());
  if (factory instanceof RadContainer.Factory && rc.getLayoutManager().length() > 0 &&
      !LayoutManagerRegistry.isKnownLayoutClass(rc.getLayoutManager())) {
    layoutManagerClasses.add(rc.getLayoutManager());
  }

  SnapShotRemoteComponent[] children = rc.getChildren();
  if (children == null) {
    children = myClient.listChildren(rc.getId());
    rc.setChildren(children);
  }
  for(SnapShotRemoteComponent child: children) {
    collectUnknownLayoutManagerClasses(project, child, layoutManagerClasses);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:CreateSnapShotAction.java

示例2: reset

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
public void reset() {
  final GuiDesignerConfiguration configuration = GuiDesignerConfiguration.getInstance(myProject);

  /*general*/
  if (configuration.INSTRUMENT_CLASSES) {
    myGeneralUI.myRbInstrumentClasses.setSelected(true);
  }
  else {
    myGeneralUI.myRbInstrumentSources.setSelected(true);
  }
  myGeneralUI.myChkCopyFormsRuntime.setSelected(configuration.COPY_FORMS_RUNTIME_TO_OUTPUT);

  myGeneralUI.myLayoutManagerCombo.setModel(new DefaultComboBoxModel(LayoutManagerRegistry.getNonDeprecatedLayoutManagerNames()));
  myGeneralUI.myLayoutManagerCombo.setRenderer(new ListCellRendererWrapper<String>() {
    @Override
    public void customize(JList list, String value, int index, boolean selected, boolean hasFocus) {
      setText(LayoutManagerRegistry.getLayoutManagerDisplayName(value));
    }
  });
  myGeneralUI.myLayoutManagerCombo.setSelectedItem(configuration.DEFAULT_LAYOUT_MANAGER);

  myGeneralUI.myDefaultFieldAccessibilityCombo.setSelectedItem(configuration.DEFAULT_FIELD_ACCESSIBILITY);
  
  myGeneralUI.myResizeHeaders.setSelected(configuration.RESIZE_HEADERS);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:GuiDesignerConfigurable.java

示例3: LayoutManagerEditor

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
public LayoutManagerEditor() {
  myCbx.setRenderer(new ListCellRendererWrapper<String>() {
    @Override
    public void customize(JList list, String value, int index, boolean selected, boolean hasFocus) {
      setText(LayoutManagerRegistry.getLayoutManagerDisplayName(value));
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:LayoutManagerProperty.java

示例4: getComponent

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
public JComponent getComponent(RadComponent component, String value, InplaceContext inplaceContext) {
  if (UIFormXmlConstants.LAYOUT_XY.equals(value)) {
    myCbx.setModel(new DefaultComboBoxModel(LayoutManagerRegistry.getLayoutManagerNames()));
  }
  else {
    myCbx.setModel(new DefaultComboBoxModel(LayoutManagerRegistry.getNonDeprecatedLayoutManagerNames()));
  }
  myCbx.setSelectedItem(value);
  return myCbx;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:LayoutManagerProperty.java

示例5: setValueImpl

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
protected void setValueImpl(RadContainer component, String value) throws Exception {
  final RadLayoutManager oldLayout = component.getLayoutManager();
  if (oldLayout != null && Comparing.equal(oldLayout.getName(), value)) {
    return;
  }

  RadLayoutManager newLayoutManager = LayoutManagerRegistry.createLayoutManager(value);
  newLayoutManager.changeContainerLayout(component);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:LayoutManagerProperty.java

示例6: reset

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
@Override
public void reset()
{
	final GuiDesignerConfiguration configuration = GuiDesignerConfiguration.getInstance(myProject);

   /*general*/
	if(configuration.INSTRUMENT_CLASSES)
	{
		myGeneralUI.myRbInstrumentClasses.setSelected(true);
	}
	else
	{
		myGeneralUI.myRbInstrumentSources.setSelected(true);
	}
	myGeneralUI.myChkCopyFormsRuntime.setSelected(configuration.COPY_FORMS_RUNTIME_TO_OUTPUT);
	myGeneralUI.myChkCopyForms.setSelected(configuration.COPY_FORMS_TO_OUTPUT);

	myGeneralUI.myLayoutManagerCombo.setModel(new DefaultComboBoxModel(LayoutManagerRegistry
			.getNonDeprecatedLayoutManagerNames()));
	myGeneralUI.myLayoutManagerCombo.setRenderer(new ListCellRendererWrapper<String>()
	{
		@Override
		public void customize(JList list, String value, int index, boolean selected, boolean hasFocus)
		{
			setText(LayoutManagerRegistry.getLayoutManagerDisplayName(value));
		}
	});
	myGeneralUI.myLayoutManagerCombo.setSelectedItem(configuration.DEFAULT_LAYOUT_MANAGER);

	myGeneralUI.myDefaultFieldAccessibilityCombo.setSelectedItem(configuration.DEFAULT_FIELD_ACCESSIBILITY);

	myGeneralUI.myResizeHeaders.setSelected(configuration.RESIZE_HEADERS);
	myGeneralUI.myUseJBScalingCheckBox.setSelected(configuration.USE_JB_SCALING);
}
 
开发者ID:consulo,项目名称:consulo-ui-designer,代码行数:35,代码来源:GuiDesignerConfigurable.java

示例7: customize

import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
@Override
protected void customize(@NotNull final String value) {
  setText(LayoutManagerRegistry.getLayoutManagerDisplayName(value));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:LayoutManagerProperty.java


注:本文中的com.intellij.uiDesigner.radComponents.LayoutManagerRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。