Kaydet (Commit) 3c07f6e1 authored tarafından Jürgen Schmidt's avatar Jürgen Schmidt

#121510# apply patch to handle new focus check in Java 7

Patch By: David Ostrovsky
Reviewed By: jsc
üst df03a043
......@@ -110,4 +110,16 @@ public class ComboBox extends Container {
return 1;
}
}
/**
* Returns whether this Component can be focused.
*
* @return <code>true</code> if this Component is focusable;
* <code>false</code> otherwise.
* @see #setFocusable
* @since 1.4
*/
public boolean isFocusable() {
return true;
}
}
......@@ -118,19 +118,40 @@ public class Dialog extends java.awt.Dialog implements javax.accessibility.Acces
public void removeNotify() {
}
/**
* Determines if the object is visible. Note: this means that the
* object intends to be visible; however, it may not in fact be
* showing on the screen because one of the objects that this object
* is contained by is not visible. To determine if an object is
* showing on the screen, use <code>isShowing</code>.
*
* @return true if object is visible; otherwise, false
*/
/**
* Determines if the object is visible. Note: this means that the
* object intends to be visible; however, it may not in fact be
* showing on the screen because one of the objects that this object
* is contained by is not visible. To determine if an object is
* showing on the screen, use <code>isShowing</code>.
*
* @return true if object is visible; otherwise, false
*/
public boolean isVisible(){
return visible;
}
/**
* Determines whether this component is displayable. A component is
* displayable when it is connected to a native screen resource.
* <p>
* A component is made displayable either when it is added to
* a displayable containment hierarchy or when its containment
* hierarchy is made displayable.
* A containment hierarchy is made displayable when its ancestor
* window is either packed or made visible.
* <p>
* A component is made undisplayable either when it is removed from
* a displayable containment hierarchy or when its containment hierarchy
* is made undisplayable. A containment hierarchy is made
* undisplayable when its ancestor window is disposed.
*
* @return <code>true</code> if the component is displayable
*/
public boolean isDisplayable() {
return true;
}
/**
* Shows or hides this component depending on the value of parameter
* <code>b</code>.
......
......@@ -638,5 +638,28 @@ public class Frame extends java.awt.Frame implements javax.accessibility.Accessi
unoAccessibleComponent.grabFocus();
}
}
/**
* Determines whether this component is displayable. A component is
* displayable when it is connected to a native screen resource.
* <p>
* A component is made displayable either when it is added to
* a displayable containment hierarchy or when its containment
* hierarchy is made displayable.
* A containment hierarchy is made displayable when its ancestor
* window is either packed or made visible.
* <p>
* A component is made undisplayable either when it is removed from
* a displayable containment hierarchy or when its containment hierarchy
* is made undisplayable. A containment hierarchy is made
* undisplayable when its ancestor window is disposed.
*
* @return <code>true</code> if the component is displayable
*/
@Override
public boolean isDisplayable() {
return true;
}
}
......@@ -543,5 +543,28 @@ public class Window extends java.awt.Window implements javax.accessibility.Acces
unoAccessibleComponent.grabFocus();
}
}
/**
* Determines whether this component is displayable. A component is
* displayable when it is connected to a native screen resource.
* <p>
* A component is made displayable either when it is added to
* a displayable containment hierarchy or when its containment
* hierarchy is made displayable.
* A containment hierarchy is made displayable when its ancestor
* window is either packed or made visible.
* <p>
* A component is made undisplayable either when it is removed from
* a displayable containment hierarchy or when its containment hierarchy
* is made undisplayable. A containment hierarchy is made
* undisplayable when its ancestor window is disposed.
*
* @return <code>true</code> if the component is displayable
*/
@Override
public boolean isDisplayable() {
return true;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment