本文整理了Java中javax.swing.JTextField.getAccessibleContext()
方法的一些代码示例,展示了JTextField.getAccessibleContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.getAccessibleContext()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:getAccessibleContext
暂无
代码示例来源:origin: org.netbeans.api/org-openide-dialogs
NbBundle.getMessage(NotifyDescriptor.class, "ACSD_InputPanel")
);
textField.getAccessibleContext().setAccessibleDescription(
NbBundle.getMessage(NotifyDescriptor.class, "ACSD_InputField")
);
代码示例来源:origin: org.netbeans.api/org-openide-awt
bReload.getAccessibleContext().setAccessibleName(bReload.getToolTipText());
bStop.getAccessibleContext().setAccessibleName(bStop.getToolTipText());
txtLocation.getAccessibleContext().setAccessibleDescription(
NbBundle.getMessage(HtmlBrowser.class, "ACSD_HtmlBrowser_Location")
);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors
public CellEditor( JTable table, JTextField component ) {
super( component );
this.table = table;
component.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TabularPropertyPanel.class, "TablePropertyPanel.textField.accessibleName")); // NOI18N
component.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TabularPropertyPanel.class, "TablePropertyPanel.textField.accessibleDesc")); // NOI18N
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv
/** Creates new form NameValuePairEditor */
public NameValuePairEditor() {
initComponents();
getAccessibleContext().setAccessibleName(bundle.getString("LBL_NameValuePairEditorName")); // NOI18N
getAccessibleContext().setAccessibleDescription(bundle.getString("LBL_NameValuePairEditorDescription")); // NOI18N
// org.openide.util.HelpCtx.setHelpIDString(this, "AS_RTT_NameValueEditor"); // NOI18N
nameField.getAccessibleContext().setAccessibleDescription(bundle.getString("colHdrParamName")); // NOI18N
valueField.getAccessibleContext().setAccessibleDescription(bundle.getString("colHdrParamValue")); // NOI18N
//descField.getAccessibleContext().setAccessibleDescription(bundle.getString("colHdrParamDescription")); // NOI18N
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv
/** Creates new form PasswordPanel */
public PasswordPanel(String userName) {
initComponents();
usernameField.setText(userName);
usernameField.setSelectionStart(0);
usernameField.setSelectionEnd(userName.length());
usernameField.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_UserNameField"));
passwordField.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_PasswordField"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject
private void initAccessibility() {
// Accessibility
getAccessibleContext().setAccessibleDescription(getString("RUN_DIALOG_PANEL_AD"));
executableTextField.getAccessibleContext().setAccessibleDescription(getString("EXECUTABLE_AD"));
executableBrowseButton.getAccessibleContext().setAccessibleDescription(getString("BROWSE_BUTTON_AD"));
projectComboBox.getAccessibleContext().setAccessibleDescription(getString("ASSOCIATED_PROJECT_AD"));
runDirectoryTextField.getAccessibleContext().setAccessibleDescription(getString("RUN_DIRECTORY_LABEL_AD"));
runDirectoryBrowseButton.getAccessibleContext().setAccessibleDescription(getString("RUN_DIRECTORY_BUTTON_AD"));
argumentTextField.getAccessibleContext().setAccessibleDescription(getString("ARGUMENTS_LABEL_AD"));
environmentTextField.getAccessibleContext().setAccessibleDescription(getString("ENVIRONMENT_LABEL_AD"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_FileRecognitionPanel"));
rbByElement.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ByElement"));
rbByExtension.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ByExtension"));
txtExtension.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Extension"));
txtNamespace.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Namespace"));
txtMimeType.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Mimetype"));
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81
/** Creates new form PasswordPanel */
public PasswordPanel() {
initComponents();
usernameField.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle(AdminAuthenticator.class).getString("ACSD_UserNameField"));
passwordField.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle(AdminAuthenticator.class).getString("ACSD_PasswordField"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_NameIconLocationPanel"));
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_CreatedFiles"));
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_ModifiedFiles"));
libraryDisplayNameValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_DisplayName"));
libraryNameVale.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_Name"));
projectNameValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_ProjectName"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_NameAndLocationPanel"));
className.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ClassName"));
createdFiles.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFiles"));
displayName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_DisplayName"));
icon.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Icon"));
iconButton.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_IconButton"));
modifiedFiles.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFiles"));
packageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PackageName"));
project.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Project"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_NameIconLocationPanel"));
classNamePrefix.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_ClassNamePrefix"));
displayName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_DisplayName"));
category.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_Category"));
icon.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_Icon"));
iconButton.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_IconBrowse"));
project.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_ProjectName"));
packageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_PackageName"));
createdFiles.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_CreatedFiles"));
modifiedFiles.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_ModifiedFiles"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_NameAndLocationPanel"));
comPackageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PackageName"));
comCategory.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Category"));
txtDisplayName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_DisplayName"));
txtName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Name"));
txtProjectName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ProjectName"));
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFilesValue"));
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFilesValue"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_NameAndLocationPanel"));
comPackageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PackageName"));
txtIcon.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Icon"));
txtPrefix.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Prefix"));
btnIcon.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_IconButton"));
txtProjectName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ProjectName"));
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFilesValue"));
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFilesValue"));
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders
/** Creates new form TemplateWizard2 */
public TemplateWizard2() {
initLocationFolder ();
initComponents ();
setName (DataObject.getString("LAB_TargetLocationPanelName")); // NOI18N
// registers itself to listen to changes in the content of document
java.util.ResourceBundle bundle = org.openide.util.NbBundle.getBundle(TemplateWizard2.class);
newObjectName.getDocument().addDocumentListener(this);
newObjectName.unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));
newObjectName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_NewObjectName")); // NOI18N
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_NameAndLocationPanel"));
comPackageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PackageName"));
txtIcon.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Icon"));
txtPrefix.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_Prefix"));
btnIcon.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_IconButton"));
txtProjectName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ProjectName"));
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFilesValue"));
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFilesValue"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_OptionsPanel0"));
advancedButton.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_Advanced"));
optionsCategoryButton.getAccessibleContext().setAccessibleDescription(getMessage("ACS_LBL_OptionsCategory"));
secondaryPanelTitle.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_DisplayName"));
categoryNameField.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CategoryName"));
iconField.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_IconPath"));
iconButton.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_IconButton"));
allowSecondaryPanelsCheckBox.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_AllowSecondaryPanels"));
primaryPanelCombo.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PrimaryPanelCombo"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_OptionsPanel"));
projectNameValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ProjectName"));
packageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PackageName"));
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFilesValue"));
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFilesValue"));
txtPrefix.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL__ClassNamePrefix"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
this.getAccessibleContext().setAccessibleDescription(getMessage("ACS_JavaHelpPanel"));//NOI18N
projectNameValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ProjectName"));//NOI18N
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFilesValue"));//NOI18N
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFilesValue"));//NOI18N
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-apisupport-wizards
private void initAccessibility() {
getAccessibleContext().setAccessibleDescription(getMessage("ACS_form"));
projectNameValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ProjectName"));
packageName.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_PackageName"));
createdFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_CreatedFilesValue"));
modifiedFilesValue.getAccessibleContext().setAccessibleDescription(getMessage("ACS_CTL_ModifiedFilesValue"));
}
代码示例来源:origin: net.java.abeille/abeille
/** Creates new form KeySequenceInputPanel with empty sequence */
public KeySequenceInputPanel() {
initComponents();
keySequenceLabel.setDisplayedMnemonic(LocaleSupport.getString("LBL_KSIP_Sequence_Mnemonic").charAt(0)); // NOI18N
keySequenceInputField.getAccessibleContext().setAccessibleDescription(LocaleSupport.getString("ACSD_LBL_KSIP_Sequence")); // NOI18N
getAccessibleContext().setAccessibleName(LocaleSupport.getString("MSP_AddTitle")); // NOI18N
getAccessibleContext().setAccessibleDescription(LocaleSupport.getString("ACSD_KSIP")); // NOI18N
}
内容来源于网络,如有侵权,请联系作者删除!