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


Java RadTabbedPane类代码示例

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


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

示例1: saveTabbedPaneSelectedTabs

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private Map<String, String> saveTabbedPaneSelectedTabs() {
  final Map<String, String> result = new HashMap<String, String>();
  FormEditingUtil.iterate(getRootContainer(), new FormEditingUtil.ComponentVisitor() {
    public boolean visit(final IComponent component) {
      if (component instanceof RadTabbedPane) {
        RadTabbedPane tabbedPane = (RadTabbedPane)component;
        RadComponent c = tabbedPane.getSelectedTab();
        if (c != null) {
          result.put(tabbedPane.getId(), c.getId());
        }
      }
      return true;
    }
  });
  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:GuiEditor.java

示例2: restoreTabbedPaneSelectedTabs

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private void restoreTabbedPaneSelectedTabs(final Map<String, String> tabbedPaneSelectedTabs) {
  FormEditingUtil.iterate(getRootContainer(), new FormEditingUtil.ComponentVisitor() {
    public boolean visit(final IComponent component) {
      if (component instanceof RadTabbedPane) {
        RadTabbedPane tabbedPane = (RadTabbedPane)component;
        String selectedTabId = tabbedPaneSelectedTabs.get(tabbedPane.getId());
        if (selectedTabId != null) {
          for (RadComponent c : tabbedPane.getComponents()) {
            if (c.getId().equals(selectedTabId)) {
              tabbedPane.selectTab(c);
              break;
            }
          }
        }
      }
      return true;
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:GuiEditor.java

示例3: saveTabbedPaneSelectedTabs

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private Map<String, String> saveTabbedPaneSelectedTabs()
{
	final Map<String, String> result = new HashMap<String, String>();
	FormEditingUtil.iterate(getRootContainer(), new FormEditingUtil.ComponentVisitor()
	{
		@Override
		public boolean visit(final IComponent component)
		{
			if(component instanceof RadTabbedPane)
			{
				RadTabbedPane tabbedPane = (RadTabbedPane) component;
				RadComponent c = tabbedPane.getSelectedTab();
				if(c != null)
				{
					result.put(tabbedPane.getId(), c.getId());
				}
			}
			return true;
		}
	});
	return result;
}
 
开发者ID:consulo,项目名称:consulo-ui-designer,代码行数:23,代码来源:GuiEditor.java

示例4: actionPerformed

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
protected void actionPerformed(final GuiEditor editor, final List<RadComponent> selection, final AnActionEvent e) {
  RadTabbedPane tabbedPane = (RadTabbedPane) selection.get(0);
  Palette palette = Palette.getInstance(editor.getProject());

  final RadComponent radComponent = InsertComponentProcessor.createPanelComponent(editor);
  final ComponentDropLocation dropLocation = tabbedPane.getDropLocation(null);
  dropLocation.processDrop(editor, new RadComponent[] { radComponent }, null, 
                           new ComponentItemDragObject(palette.getPanelItem()));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:AddTabAction.java

示例5: refreshProperties

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private void refreshProperties() {
  final Ref<Boolean> anythingModified = new Ref<Boolean>();
  FormEditingUtil.iterate(myRootContainer, new FormEditingUtil.ComponentVisitor() {
    public boolean visit(final IComponent component) {
      final RadComponent radComponent = (RadComponent)component;
      boolean componentModified = false;
      for (IProperty prop : component.getModifiedProperties()) {
        if (prop instanceof IntroStringProperty) {
          IntroStringProperty strProp = (IntroStringProperty)prop;
          componentModified = strProp.refreshValue(radComponent) || componentModified;
        }
      }

      if (component instanceof RadContainer) {
        componentModified = ((RadContainer)component).updateBorder() || componentModified;
      }

      if (component.getParentContainer() instanceof RadTabbedPane) {
        componentModified = ((RadTabbedPane)component.getParentContainer()).refreshChildTitle(radComponent) || componentModified;
      }
      if (componentModified) {
        anythingModified.set(Boolean.TRUE);
      }

      return true;
    }
  });
  if (!anythingModified.isNull()) {
    refresh();
    DesignerToolWindow designerToolWindow = DesignerToolWindowManager.getInstance(this);
    ComponentTree tree = designerToolWindow.getComponentTree();
    if (tree != null) tree.repaint();
    PropertyInspector inspector = designerToolWindow.getPropertyInspector();
    if (inspector != null) inspector.synchWithTree(true);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:GuiEditor.java

示例6: refreshProperties

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private void refreshProperties() {
  final Ref<Boolean> anythingModified = new Ref<Boolean>();
  FormEditingUtil.iterate(myRootContainer, new FormEditingUtil.ComponentVisitor() {
    public boolean visit(final IComponent component) {
      final RadComponent radComponent = (RadComponent)component;
      boolean componentModified = false;
      for (IProperty prop : component.getModifiedProperties()) {
        if (prop instanceof IntroStringProperty) {
          IntroStringProperty strProp = (IntroStringProperty)prop;
          componentModified = strProp.refreshValue(radComponent) || componentModified;
        }
      }

      if (component instanceof RadContainer) {
        componentModified = ((RadContainer)component).updateBorder() || componentModified;
      }

      if (component.getParentContainer() instanceof RadTabbedPane) {
        componentModified = ((RadTabbedPane)component.getParentContainer()).refreshChildTitle(radComponent) || componentModified;
      }
      if (componentModified) {
        anythingModified.set(Boolean.TRUE);
      }

      return true;
    }
  });
  if (!anythingModified.isNull()) {
    refresh();
    final UIDesignerToolWindowManager twm = UIDesignerToolWindowManager.getInstance(getProject());
    twm.getComponentTree().repaint();
    twm.getPropertyInspector().synchWithTree(true);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:35,代码来源:GuiEditor.java

示例7: restoreTabbedPaneSelectedTabs

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private void restoreTabbedPaneSelectedTabs(final Map<String, String> tabbedPaneSelectedTabs)
{
	FormEditingUtil.iterate(getRootContainer(), new FormEditingUtil.ComponentVisitor()
	{
		@Override
		public boolean visit(final IComponent component)
		{
			if(component instanceof RadTabbedPane)
			{
				RadTabbedPane tabbedPane = (RadTabbedPane) component;
				String selectedTabId = tabbedPaneSelectedTabs.get(tabbedPane.getId());
				if(selectedTabId != null)
				{
					for(RadComponent c : tabbedPane.getComponents())
					{
						if(c.getId().equals(selectedTabId))
						{
							tabbedPane.selectTab(c);
							break;
						}
					}
				}
			}
			return true;
		}
	});
}
 
开发者ID:consulo,项目名称:consulo-ui-designer,代码行数:28,代码来源:GuiEditor.java

示例8: update

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
@Override protected void update(@NotNull GuiEditor editor, final ArrayList<RadComponent> selection, final AnActionEvent e) {
  e.getPresentation().setVisible(selection.size() == 1 && selection.get(0) instanceof RadTabbedPane);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:AddTabAction.java

示例9: isPropertyDescriptor

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private static boolean isPropertyDescriptor(final IProperty prop) {
  return !prop.getName().equals(BorderProperty.NAME) && !prop.getName().equals(RadTabbedPane.TAB_TITLE_PROPERTY) &&
         !prop.getName().equals(RadTabbedPane.TAB_TOOLTIP_PROPERTY);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:I18nFormInspection.java

示例10: getStringDescriptorValue

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
protected StringDescriptor getStringDescriptorValue() {
  RadTabbedPane tabbedPane = (RadTabbedPane) myComponent.getParent();
  return tabbedPane.getTabProperty(myComponent, myPropName);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:I18nizeTabTitleQuickFix.java

示例11: setStringDescriptorValue

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
protected void setStringDescriptorValue(final StringDescriptor descriptor) throws Exception {
  RadTabbedPane tabbedPane = (RadTabbedPane) myComponent.getParent();
  tabbedPane.setTabProperty(myComponent, myPropName, descriptor);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:I18nizeTabTitleQuickFix.java

示例12: refreshProperties

import com.intellij.uiDesigner.radComponents.RadTabbedPane; //导入依赖的package包/类
private void refreshProperties()
{
	final Ref<Boolean> anythingModified = new Ref<Boolean>();
	FormEditingUtil.iterate(myRootContainer, new FormEditingUtil.ComponentVisitor()
	{
		@Override
		public boolean visit(final IComponent component)
		{
			final RadComponent radComponent = (RadComponent) component;
			boolean componentModified = false;
			for(IProperty prop : component.getModifiedProperties())
			{
				if(prop instanceof IntroStringProperty)
				{
					IntroStringProperty strProp = (IntroStringProperty) prop;
					componentModified = strProp.refreshValue(radComponent) || componentModified;
				}
			}

			if(component instanceof RadContainer)
			{
				componentModified = ((RadContainer) component).updateBorder() || componentModified;
			}

			if(component.getParentContainer() instanceof RadTabbedPane)
			{
				componentModified = ((RadTabbedPane) component.getParentContainer()).refreshChildTitle(radComponent) || componentModified;
			}
			if(componentModified)
			{
				anythingModified.set(Boolean.TRUE);
			}

			return true;
		}
	});
	if(!anythingModified.isNull())
	{
		refresh();
		DesignerToolWindow designerToolWindow = DesignerToolWindowManager.getInstance(this);
		ComponentTree tree = designerToolWindow.getComponentTree();
		if(tree != null)
		{
			tree.repaint();
		}
		PropertyInspector inspector = designerToolWindow.getPropertyInspector();
		if(inspector != null)
		{
			inspector.synchWithTree(true);
		}
	}
}
 
开发者ID:consulo,项目名称:consulo-ui-designer,代码行数:53,代码来源:GuiEditor.java


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