Java 类javax.swing.plaf.MenuItemUI 实例源码
项目:intellij-ce-playground
文件:GtkPaintingUtil.java
public static boolean isSynthUI(final MenuItemUI ui) {
Class<?> aClass = ui.getClass();
while (aClass != null && aClass.getSimpleName().contains("Synth")) {
final Class<?>[] interfaces = aClass.getInterfaces();
for (int i = 0, length = interfaces.length; i < length; i++) {
final Class<?> anInterface = interfaces[i];
if (V6_SYNTH_UI_CLASS.equals(anInterface.getName()) || V7_SYNTH_UI_CLASS.equals(anInterface.getName())) {
return true;
}
}
aClass = aClass.getSuperclass();
}
return false;
}
项目:tools-idea
文件:GtkPaintingUtil.java
public static boolean isSynthUI(final MenuItemUI ui) {
Class<?> aClass = ui.getClass();
while (aClass != null && aClass.getSimpleName().contains("Synth")) {
final Class<?>[] interfaces = aClass.getInterfaces();
for (int i = 0, length = interfaces.length; i < length; i++) {
final Class<?> anInterface = interfaces[i];
if (V6_SYNTH_UI_CLASS.equals(anInterface.getName()) || V7_SYNTH_UI_CLASS.equals(anInterface.getName())) {
return true;
}
}
aClass = aClass.getSuperclass();
}
return false;
}
项目:consulo
文件:GtkPaintingUtil.java
public static boolean isSynthUI(final MenuItemUI ui) {
Class<?> aClass = ui.getClass();
while (aClass != null && aClass.getSimpleName().contains("Synth")) {
final Class<?>[] interfaces = aClass.getInterfaces();
for (int i = 0, length = interfaces.length; i < length; i++) {
final Class<?> anInterface = interfaces[i];
if (V6_SYNTH_UI_CLASS.equals(anInterface.getName()) || V7_SYNTH_UI_CLASS.equals(anInterface.getName())) {
return true;
}
}
aClass = aClass.getSuperclass();
}
return false;
}
项目:openjdk-jdk10
文件:JMenuItemOperator.java
/**
* Maps {@code JMenuItem.setUI(MenuItemUI)} through queue
*/
public void setUI(final MenuItemUI menuItemUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JMenuItem) getSource()).setUI(menuItemUI);
}
});
}
项目:openjdk9
文件:JMenuItemOperator.java
/**
* Maps {@code JMenuItem.setUI(MenuItemUI)} through queue
*/
public void setUI(final MenuItemUI menuItemUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JMenuItem) getSource()).setUI(menuItemUI);
}
});
}
项目:intellij-ce-playground
文件:GtkPaintingUtil.java
public static SynthContext getSynthContext(final MenuItemUI ui, final JComponent item) {
assert Patches.USE_REFLECTION_TO_ACCESS_JDK7;
try {
final Method getContext = ui.getClass().getMethod("getContext", JComponent.class);
getContext.setAccessible(true);
return (SynthContext)getContext.invoke(ui, item);
}
catch (Exception e) {
throw new RuntimeException(e);
}
}
项目:jailer
文件:JScrollC2Menu.java
@Override
public void updateUI() {
setUI((MenuItemUI) UIManager.getUI(this));
if(popupMenu != null) {
popupMenu.setUI((PopupMenuUI) UIManager.getUI(popupMenu));
}
}
项目:jailer
文件:JScrollMenu.java
@Override
public void updateUI() {
setUI((MenuItemUI) UIManager.getUI(this));
if (popupMenu != null) {
popupMenu.setUI((PopupMenuUI) UIManager.getUI(popupMenu));
}
}
项目:AppWoksUtils
文件:JScrollMenu.java
@Override
public void updateUI() {
setUI((MenuItemUI) UIManager.getUI(this));
if(popupMenu != null) {
popupMenu.setUI((PopupMenuUI) UIManager.getUI(popupMenu));
}
}
项目:tools-idea
文件:GtkPaintingUtil.java
public static SynthContext getSynthContext(final MenuItemUI ui, final JComponent item) {
assert Patches.USE_REFLECTION_TO_ACCESS_JDK7;
try {
final Method getContext = ui.getClass().getMethod("getContext", JComponent.class);
getContext.setAccessible(true);
return (SynthContext)getContext.invoke(ui, item);
}
catch (Exception e) {
throw new RuntimeException(e);
}
}
项目:j2se_for_android
文件:JMenuItem.java
public void setUI(MenuItemUI ui) {
super.setUI(ui);
}
项目:javify
文件:JMenu.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:javify
文件:JMenuItem.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:intellij-ce-playground
文件:ActionMenu.java
@Override
public void setUI(final MenuItemUI ui) {
final MenuItemUI newUi = !myTopLevel && UIUtil.isUnderGTKLookAndFeel() && GtkMenuUI.isUiAcceptable(ui) ? new GtkMenuUI(ui) : ui;
super.setUI(newUi);
}
项目:intellij-ce-playground
文件:ActionMenuItem.java
@Override
public void setUI(final MenuItemUI ui) {
final MenuItemUI newUi = UIUtil.isUnderGTKLookAndFeel() && GtkMenuItemUI.isUiAcceptable(ui) ? new GtkMenuItemUI(ui) : ui;
super.setUI(newUi);
}
项目:intellij-ce-playground
文件:GtkMenuUI.java
public GtkMenuUI(final MenuItemUI originalUI) {
assert isUiAcceptable(originalUI) : originalUI;
myOriginalUI = (BasicMenuUI)originalUI;
}
项目:intellij-ce-playground
文件:GtkMenuUI.java
public static boolean isUiAcceptable(final MenuItemUI ui) {
return ui instanceof BasicMenuUI && GtkPaintingUtil.isSynthUI(ui);
}
项目:intellij-ce-playground
文件:IconWrapper.java
public IconWrapper(final Icon icon, final MenuItemUI originalUI) {
myIcon = icon;
myOriginalUI = originalUI;
}
项目:intellij-ce-playground
文件:GtkMenuItemUI.java
public GtkMenuItemUI(final MenuItemUI originalUI) {
assert isUiAcceptable(originalUI) : originalUI;
myOriginalUI = (BasicMenuItemUI)originalUI;
}
项目:intellij-ce-playground
文件:GtkMenuItemUI.java
public static boolean isUiAcceptable(final MenuItemUI ui) {
return ui instanceof BasicMenuItemUI && GtkPaintingUtil.isSynthUI(ui);
}
项目:jvm-stm
文件:JMenu.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:jvm-stm
文件:JMenuItem.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:cn1
文件:JMenuItem.java
public void setUI(final MenuItemUI ui) {
super.setUI(ui);
}
项目:cn1
文件:JMenuItem.java
public void updateUI() {
setUI((MenuItemUI)UIManager.getUI(this));
}
项目:JamVM-PH
文件:JMenu.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:JamVM-PH
文件:JMenuItem.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:tools-idea
文件:ActionMenu.java
@Override
public void setUI(final MenuItemUI ui) {
final MenuItemUI newUi = !myTopLevel && UIUtil.isUnderGTKLookAndFeel() && GtkMenuUI.isUiAcceptable(ui) ? new GtkMenuUI(ui) : ui;
super.setUI(newUi);
}
项目:tools-idea
文件:ActionMenuItem.java
@Override
public void setUI(final MenuItemUI ui) {
final MenuItemUI newUi = UIUtil.isUnderGTKLookAndFeel() && GtkMenuItemUI.isUiAcceptable(ui) ? new GtkMenuItemUI(ui) : ui;
super.setUI(newUi);
}
项目:tools-idea
文件:GtkMenuUI.java
public GtkMenuUI(final MenuItemUI originalUI) {
assert isUiAcceptable(originalUI) : originalUI;
myOriginalUI = (BasicMenuUI)originalUI;
}
项目:tools-idea
文件:GtkMenuUI.java
public static boolean isUiAcceptable(final MenuItemUI ui) {
return ui instanceof BasicMenuUI && GtkPaintingUtil.isSynthUI(ui);
}
项目:tools-idea
文件:IconWrapper.java
public IconWrapper(final Icon icon, final MenuItemUI originalUI) {
myIcon = icon;
myOriginalUI = originalUI;
}
项目:tools-idea
文件:GtkMenuItemUI.java
public GtkMenuItemUI(final MenuItemUI originalUI) {
assert isUiAcceptable(originalUI) : originalUI;
myOriginalUI = (BasicMenuItemUI)originalUI;
}
项目:tools-idea
文件:GtkMenuItemUI.java
public static boolean isUiAcceptable(final MenuItemUI ui) {
return ui instanceof BasicMenuItemUI && GtkPaintingUtil.isSynthUI(ui);
}
项目:classpath
文件:JMenu.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:classpath
文件:JMenuItem.java
/**
* This method sets this menuItem's UI to the UIManager's default for the
* current look and feel.
*/
public void updateUI()
{
setUI((MenuItemUI) UIManager.getUI(this));
}
项目:freeVM
文件:JMenuItem.java
public void setUI(final MenuItemUI ui) {
super.setUI(ui);
}
项目:freeVM
文件:JMenuItem.java
public void updateUI() {
setUI((MenuItemUI)UIManager.getUI(this));
}
项目:freeVM
文件:JMenuItem.java
public void setUI(final MenuItemUI ui) {
super.setUI(ui);
}
项目:freeVM
文件:JMenuItem.java
public void updateUI() {
setUI((MenuItemUI)UIManager.getUI(this));
}
项目:consulo
文件:ActionMenu.java
@Override
public void setUI(final MenuItemUI ui) {
final MenuItemUI newUi = !myTopLevel && UIUtil.isUnderGTKLookAndFeel() && GtkMenuUI.isUiAcceptable(ui) ? new GtkMenuUI(ui) : ui;
super.setUI(newUi);
}