javax.swing.JEditorPane.getAccessibleContext()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(9.1k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中javax.swing.JEditorPane.getAccessibleContext()方法的一些代码示例,展示了JEditorPane.getAccessibleContext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.getAccessibleContext()方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:getAccessibleContext

JEditorPane.getAccessibleContext介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-editor

@Override
public JComponent getPreviewComponent() {
  if (previewPane == null) {
    previewPane = new JEditorPane();
    previewPane.getAccessibleContext().setAccessibleName(NbBundle.getMessage(FmtOptions.class, "AN_Preview")); //NOI18N
    previewPane.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FmtOptions.class, "AD_Preview")); //NOI18N
    previewPane.setEditorKit(CloneableEditorSupport.getEditorKit(FileUtils.PHP_MIME_TYPE));
    previewPane.setEditable(false);
  }
  return previewPane;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-editor

@Override
public JComponent getPreviewComponent() {
  if (previewPane == null) {
    previewPane = new JEditorPane();
    previewPane.getAccessibleContext().setAccessibleName(NbBundle.getMessage(FmtOptions.class, "AN_Preview")); //NOI18N
    previewPane.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FmtOptions.class, "AD_Preview")); //NOI18N
    previewPane.putClientProperty("HighlightsLayerIncludes", "^org\\.netbeans\\.modules\\.editor\\.lib2\\.highlighting\\.SyntaxHighlighting$"); //NOI18N
    previewPane.setEditorKit(CloneableEditorSupport.getEditorKit(MIMENames.FORTRAN_MIME_TYPE));
    previewPane.setEditable(false);
  }
  return previewPane;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby

public JComponent getPreviewComponent() {
  if (previewPane == null) {
    previewPane = new JEditorPane();
    previewPane.getAccessibleContext().setAccessibleName(NbBundle.getMessage(FmtOptions.class, "AN_Preview")); //NOI18N
    previewPane.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FmtOptions.class, "AD_Preview")); //NOI18N
    previewPane.putClientProperty("HighlightsLayerIncludes", "^org\\.netbeans\\.modules\\.editor\\.lib2\\.highlighting\\.SyntaxHighlighting$"); //NOI18N
    previewPane.setEditorKit(CloneableEditorSupport.getEditorKit(RubyInstallation.RUBY_MIME_TYPE));
    previewPane.setEditable(false);
  }
  return previewPane;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-editor

@Override
public JComponent getPreviewComponent() {
  if (previewPane == null) {
    previewPane = new JEditorPane();
    previewPane.getAccessibleContext().setAccessibleName(NbBundle.getMessage(EditorOptionsPanelController.class, "AN_Preview")); //NOI18N
    previewPane.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(EditorOptionsPanelController.class, "AD_Preview")); //NOI18N
    previewPane.putClientProperty("HighlightsLayerIncludes", "^org\\.netbeans\\.modules\\.editor\\.lib2\\.highlighting\\.SyntaxHighlighting$"); //NOI18N
    previewPane.setEditorKit(CloneableEditorSupport.getEditorKit(language.toMime()));
    previewPane.setEditable(false);
  }
  return previewPane;
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-vmd-midp

textPane.getAccessibleContext().setAccessibleName( label.getText());
textPane.getAccessibleContext().setAccessibleDescription( label.getText());

代码示例来源:origin: org.netbeans.modules/org-netbeans-core

public PropertiesCustomEditor(PropertiesEditor ed) {
  editor = ed;
  initComponents ();
  Properties props = (Properties) editor.getValue ();
  if (props == null) props = new Properties ();
  ByteArrayOutputStream baos = new ByteArrayOutputStream ();
  try {
    props.store (baos, ""); // NOI18N
  } catch (IOException e) {
    throw new AssertionError(e);
  }
  try {
    // Remove all comments from text.
    editorPane.setText(baos.toString("ISO-8859-1").replaceAll("(?m)^#.*" + System.getProperty("line.separator"), "")); // NOI18N
  } catch (UnsupportedEncodingException x) {
    throw new AssertionError(x);
  }
  HelpCtx.setHelpIDString (this, PropertiesCustomEditor.class.getName ());
  
  editorPane.getAccessibleContext().setAccessibleName(NbBundle.getBundle(PropertiesCustomEditor.class).getString("ACS_PropertiesEditorPane"));
  editorPane.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle(PropertiesCustomEditor.class).getString("ACSD_PropertiesEditorPane"));
  editorPane.getDocument().addDocumentListener(this);
  getAccessibleContext().setAccessibleDescription(NbBundle.getBundle(PropertiesCustomEditor.class).getString("ACSD_CustomPropertiesEditor"));
}

代码示例来源:origin: dcaoyuan/nbscala

panel.add (BorderLayout.CENTER, sp);
editorPane.getAccessibleContext ().setAccessibleDescription (bundle.getString ("ACSD_CTL_Watch_Name")); // NOI18N
editorPane.setText (expression);
editorPane.selectAll ();

代码示例来源:origin: stackoverflow.com

editorPane.getAccessibleContext().setAccessibleName("first editorpane");
editorPane.getAccessibleContext().setAccessibleDescription("");
editorPane.getAccessibleContext();
JScrollPane scrollPane = new JScrollPane( editorPane, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

messageEditorPane.setOpaque(false);
jScrollPane1.setViewportView(messageEditorPane);
messageEditorPane.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LandingPagePanel.class, "LandingPagePanel.messageEditorPane.AccessibleContext.accessibleName")); // NOI18N
messageEditorPane.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LandingPagePanel.class, "LandingPagePanel.messageEditorPane.AccessibleContext.accessibleDescription")); // NOI18N

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

editorPane.setContentType("text/javascript"); // NOI18N
editorPane.setText(string);
editorPane.getAccessibleContext().setAccessibleName(ResourceBundle.getBundle("org.netbeans.modules.visualweb.propertyeditors.Bundle").getString(
    "JavaScriptPropertyPanel.editor.accessibleName"));
label.setLabelFor(editorPane);

代码示例来源:origin: dcaoyuan/nbscala

tfCondition.setToolTipText(org.openide.util.NbBundle.getMessage(ConditionsPanel.class, "ConditionsPanel.tfCondition.toolTipText")); // NOI18N
spCondition.setViewportView(tfCondition);
tfCondition.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ConditionsPanel.class, "ACSN_ConditionTF")); // NOI18N

代码示例来源:origin: dcaoyuan/nbscala

className = ClassBreakpointPanel.concatClassFilters(cf);
tfClassName = new JEditorPane("text/x-scala", className);
tfClassName.getAccessibleContext().setAccessibleName(NbBundle.getMessage(MethodBreakpointPanel.class, "ACSN_Method_Breakpoint_ClassName"));
tfClassName.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(MethodBreakpointPanel.class, "ACSD_Method_Breakpoint_ClassName"));
jLabel3.setLabelFor(tfClassName);
panelClassName.add(java.awt.BorderLayout.CENTER, WatchPanel.createScrollableLineEditor(tfClassName));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui

AccessibleContext ac = textPane.getAccessibleContext();
ac.setAccessibleName(NbBundle.getMessage(getClass(),
                    "ACSN_OutputTextPane"));//NOI18N

代码示例来源:origin: org.netbeans.api/org-openide-explorer

jep.setEditable(false);
jep.setOpaque(false);
jep.getAccessibleContext().setAccessibleName( NbBundle.getMessage(DescriptionComponent.class, "ACS_Description") );
jep.getAccessibleContext().setAccessibleDescription( NbBundle.getMessage(DescriptionComponent.class, "ACSD_Description") );

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-beans

myScopeLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CDIPanel.class, "ACSN_Scope")); // NOI18N
myScopeLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CDIPanel.class, "ACSD_Scope")); // NOI18N
myScope.getAccessibleContext().setAccessibleName(myScopeLabel.getAccessibleContext().getAccessibleName());
myScope.getAccessibleContext().setAccessibleDescription(myScopeLabel.getAccessibleContext().getAccessibleDescription());
myStereotypesLbl.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CDIPanel.class, "ACSN_Stereotypes")); // NOI18N
myStereotypesLbl.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CDIPanel.class, "ACSD_Stereotypes")); // NOI18N

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-vmd-midp

JScrollPane jsp = new JScrollPane();
userCodeEditorPane = new JEditorPane();
userCodeEditorPane.getAccessibleContext().setAccessibleName(
    userCodeRadioButton.getAccessibleContext().getAccessibleName());
userCodeEditorPane.getAccessibleContext().setAccessibleDescription(
    userCodeRadioButton.getAccessibleContext().getAccessibleDescription());

代码示例来源:origin: javax.help/javahelp

html.getAccessibleContext().setAccessibleName(HelpUtilities.getString(HelpUtilities.getLocale(html), "access.contentViewer"));
html.setEditable(false);
html.addHyperlinkListener(this);

相关文章

JEditorPane类方法