当前位置: 首页>>代码示例>>Java>>正文


Java AccessibleRole.PANEL属性代码示例

本文整理汇总了Java中javax.accessibility.AccessibleRole.PANEL属性的典型用法代码示例。如果您正苦于以下问题:Java AccessibleRole.PANEL属性的具体用法?Java AccessibleRole.PANEL怎么用?Java AccessibleRole.PANEL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.accessibility.AccessibleRole的用法示例。


在下文中一共展示了AccessibleRole.PANEL属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAccessibleContext

public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new JComponent.AccessibleJComponent() {
            public AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }

            public String getAccessibleName() {
                return Bundle.ProfilerWindow_accessName(getDisplayName());
            }

            public String getAccessibleDescription() {
                ProfilerFeature selected = featuresView == null ? null :
                                featuresView.getSelectedFeature();
                return selected == null ? WelcomePanel.CAPTION :
                       (selected.getName() + " " + selected.getDescription()); // NOI18N
            }
        };
    }
    return accessibleContext;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:ProfilerWindow.java

示例2: getAccessibleContext

public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new JComponent.AccessibleJComponent() {
                    public AccessibleRole getAccessibleRole() {
                        return AccessibleRole.PANEL;
                    }

                    public String getAccessibleName() {
                        if (accessibleName != null) {
                            return accessibleName;
                        }

                        return getName();
                    }

                    /* Fix for 19344: Null accessible decription of all TopComponents on JDK1.4 */
                    public String getToolTipText() {
                        return TopComponent.this.getToolTipText();
                    }
                };
    }

    return accessibleContext;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:24,代码来源:TopComponent.java

示例3: getAccessibleContext

@Override
public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
                    @Override
                    public AccessibleRole getAccessibleRole() {
                        // is it really a panel?
                        return AccessibleRole.PANEL;
                    }

                    @Override
                    public String getAccessibleName() {
                        if (accessibleName != null) {
                            return accessibleName;
                        }
                        return getName();
                    }
                };
    }

    return accessibleContext;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:AbstractOutputTab.java

示例4: getAccessibleContext

public AccessibleContext getAccessibleContext () {
    if(accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            public AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }
            public String getAccessibleName() {
                if (accessibleName != null) {
                    return accessibleName;
                }
                return getName();
            }
            /* Fix for 19344: Null accessible decription of all TopComponents on JDK1.4 */
            public String getToolTipText() {
                return TopComponent.this.getToolTipText();
            }
        };
    }
    return accessibleContext;
}
 
开发者ID:CharlesSkelton,项目名称:studio,代码行数:20,代码来源:TopComponent.java

示例5: getAccessibleContext

@Override
public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            public @Override AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }
        };
        accessibleContext.setAccessibleName(NbBundle.getMessage(CodeFoldingSideBar.class, "ACSN_CodeFoldingSideBar")); //NOI18N
    accessibleContext.setAccessibleDescription(NbBundle.getMessage(CodeFoldingSideBar.class, "ACSD_CodeFoldingSideBar")); //NOI18N
    }
    return accessibleContext;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:CodeFoldingSideBar.java

示例6: getAccessibleContext

@Override
public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            @Override
            public AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }
        };
        accessibleContext.setAccessibleName(NbBundle.getMessage(AnnotationView.class, "ACSN_AnnotationView")); //NOI18N
        accessibleContext.setAccessibleDescription(NbBundle.getMessage(AnnotationView.class, "ACSD_AnnotationView")); //NOI18N
    }
    return accessibleContext;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:AnnotationView.java

示例7: getAccessibleContext

public @Override AccessibleContext getAccessibleContext () {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            public @Override AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }
        };
    }
    return accessibleContext;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:LinesComponent.java

示例8: main

public static void main(String... args) throws Exception {
    JLayer l = new JLayer();
    AccessibleContext acc = l.getAccessibleContext();
    if (acc == null) {
        throw new RuntimeException("JLayer's AccessibleContext is null");
    }
    if (acc.getAccessibleRole() != AccessibleRole.PANEL) {
        throw new RuntimeException("JLayer's AccessibleRole must be PANEL");
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:10,代码来源:bug6986385.java

示例9: getAccessibleRole

@Override
public AccessibleRole getAccessibleRole() {
    toolkit.lockAWT();
    try {
        return AccessibleRole.PANEL;
    } finally {
        toolkit.unlockAWT();
    }
}
 
开发者ID:mike10004,项目名称:appengine-imaging,代码行数:9,代码来源:Panel.java

示例10: getAccessibleContext

public AccessibleContext getAccessibleContext () {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            public AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }
        };
    }
    return accessibleContext;
}
 
开发者ID:CharlesSkelton,项目名称:studio,代码行数:10,代码来源:GlyphGutter.java

示例11: getAccessibleContext

@Override
public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            @Override
            public AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }
        };
    }
    return accessibleContext;
}
 
开发者ID:pdf4j,项目名称:icepdf,代码行数:12,代码来源:JXLayer.java

示例12: getAccessibleRole

@Override
public AccessibleRole getAccessibleRole() {
    return AccessibleRole.PANEL;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:SheetCell.java

示例13: getAccessibleRole

/**
 * getAccessibleRole
 * @return AccessibleRole
 */
public AccessibleRole getAccessibleRole()
{
  return AccessibleRole.PANEL;
}
 
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:CellRendererPane.java

示例14: getAccessibleRole

public AccessibleRole getAccessibleRole()
{
  return AccessibleRole.PANEL;
}
 
开发者ID:vilie,项目名称:javify,代码行数:4,代码来源:JTableHeader.java

示例15: getAccessibleRole

public AccessibleRole getAccessibleRole() {
    return AccessibleRole.PANEL;
}
 
开发者ID:shannah,项目名称:cn1,代码行数:3,代码来源:JPanel.java


注:本文中的javax.accessibility.AccessibleRole.PANEL属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。