home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import javax.accessibility.AccessibleRole;
- import javax.accessibility.AccessibleValue;
-
- public class JInternalFrame$AccessibleJInternalFrame extends JComponent.AccessibleJComponent implements AccessibleValue {
- // $FF: synthetic field
- final JInternalFrame this$0;
-
- protected JInternalFrame$AccessibleJInternalFrame(JInternalFrame var1) {
- super(var1);
- this.this$0 = var1;
- }
-
- public String getAccessibleName() {
- String var1 = this.accessibleName;
- if (var1 == null) {
- var1 = (String)this.this$0.getClientProperty("AccessibleName");
- }
-
- if (var1 == null) {
- var1 = this.this$0.getTitle();
- }
-
- return var1;
- }
-
- public AccessibleRole getAccessibleRole() {
- return AccessibleRole.INTERNAL_FRAME;
- }
-
- public AccessibleValue getAccessibleValue() {
- return this;
- }
-
- public Number getCurrentAccessibleValue() {
- return new Integer(this.this$0.getLayer());
- }
-
- public boolean setCurrentAccessibleValue(Number var1) {
- if (var1 == null) {
- return false;
- } else {
- this.this$0.setLayer(new Integer(var1.intValue()));
- return true;
- }
- }
-
- public Number getMinimumAccessibleValue() {
- return new Integer(Integer.MIN_VALUE);
- }
-
- public Number getMaximumAccessibleValue() {
- return new Integer(Integer.MAX_VALUE);
- }
- }
-