< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XCheckboxMenuItemPeer.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 29,39 ****
import java.awt.peer.*;
import java.awt.event.*;
import sun.awt.AWTAccessor;
! class XCheckboxMenuItemPeer extends XMenuItemPeer implements CheckboxMenuItemPeer {
/************************************************
*
* Construction
*
--- 29,40 ----
import java.awt.peer.*;
import java.awt.event.*;
import sun.awt.AWTAccessor;
! final class XCheckboxMenuItemPeer extends XMenuItemPeer
! implements CheckboxMenuItemPeer {
/************************************************
*
* Construction
*
*** 47,56 ****
--- 48,58 ----
* Implementaion of interface methods
*
************************************************/
//Prom CheckboxMenuItemtPeer
+ @Override
public void setState(boolean t) {
repaintIfShowing();
}
/************************************************
*** 70,81 ****
************************************************/
/**
* Toggles state and generates ItemEvent
*/
! void action(final long when) {
XToolkit.executeOnEventHandlerThread((CheckboxMenuItem)getTarget(), new Runnable() {
public void run() {
doToggleState(when);
}
});
}
--- 72,85 ----
************************************************/
/**
* Toggles state and generates ItemEvent
*/
! @Override
! void action(long when, int modifiers) {
XToolkit.executeOnEventHandlerThread((CheckboxMenuItem)getTarget(), new Runnable() {
+ @Override
public void run() {
doToggleState(when);
}
});
}
< prev index next >