< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java
Print this page
*** 165,174 ****
--- 165,175 ----
}
public boolean isReparentSupported() {
return System.getProperty("sun.awt.X11.XComponentPeer.reparentNotSupported", "false").equals("false");
}
+ @SuppressWarnings("deprecation")
public boolean isObscured() {
Container container = (target instanceof Container) ?
(Container)target : target.getParent();
if (container == null) {
*** 277,286 ****
--- 278,288 ----
return null;
}
// TODO: consider moving it to KeyboardFocusManagerPeerImpl
+ @SuppressWarnings("deprecation")
final public boolean requestFocus(Component lightweightChild, boolean temporary,
boolean focusedWindowChangeAllowed, long time,
CausedFocusEvent.Cause cause)
{
if (XKeyboardFocusManagerPeer.
*** 386,395 ****
--- 388,398 ----
}
/**
* @see java.awt.peer.ComponentPeer
*/
+ @SuppressWarnings("deprecation")
public void setEnabled(final boolean value) {
if (enableLog.isLoggable(PlatformLogger.Level.FINE)) {
enableLog.fine("{0}ing {1}", (value ? "Enabl" : "Disabl"), this);
}
boolean status = value;
*** 1322,1331 ****
--- 1325,1335 ----
}finally{
XToolkit.awtUnlock();
}
}
+ @SuppressWarnings("deprecation")
private void addTree(Collection<Long> order, Set<Long> set, Container cont) {
for (int i = 0; i < cont.getComponentCount(); i++) {
Component comp = cont.getComponent(i);
ComponentPeer peer = comp.getPeer();
if (peer instanceof XComponentPeer) {
*** 1342,1351 ****
--- 1346,1356 ----
}
}
/****** DropTargetPeer implementation ********************/
+ @SuppressWarnings("deprecation")
public void addDropTarget(DropTarget dt) {
Component comp = target;
while(!(comp == null || comp instanceof Window)) {
comp = comp.getParent();
}
*** 1356,1365 ****
--- 1361,1371 ----
wpeer.addDropTarget();
}
}
}
+ @SuppressWarnings("deprecation")
public void removeDropTarget(DropTarget dt) {
Component comp = target;
while(!(comp == null || comp instanceof Window)) {
comp = comp.getParent();
}
< prev index next >