本文整理汇总了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);
}
}
示例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);
}
示例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));
}
});
}
示例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;
}
示例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);
}
示例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);
}
示例7: customize
import com.intellij.uiDesigner.radComponents.LayoutManagerRegistry; //导入依赖的package包/类
@Override
protected void customize(@NotNull final String value) {
setText(LayoutManagerRegistry.getLayoutManagerDisplayName(value));
}