org.openide.nodes.Node.getString()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(168)

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

Node.getString介绍

[英]Obtains a resource string from bundle.
[中]从包中获取资源字符串。

代码示例

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

  1. /** Convenience method to create new sheet set named {@link #PROPERTIES}.
  2. *
  3. * @return a new properties sheet set
  4. */
  5. public static Sheet.Set createPropertiesSet() {
  6. Sheet.Set ps = new Sheet.Set();
  7. ps.setName(PROPERTIES);
  8. ps.setDisplayName(Node.getString("Properties"));
  9. ps.setShortDescription(Node.getString("HINT_Properties"));
  10. return ps;
  11. }

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

  1. /** Convenience method to create new sheet set named {@link #EXPERT}.
  2. *
  3. * @return a new expert properties sheet set
  4. */
  5. public static Sheet.Set createExpertSet() {
  6. Sheet.Set ps = new Sheet.Set();
  7. ps.setExpert(true);
  8. ps.setName(EXPERT);
  9. ps.setDisplayName(Node.getString("Expert"));
  10. ps.setShortDescription(Node.getString("HINT_Expert"));
  11. return ps;
  12. }

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

  1. );
  2. setTitle(Node.getString("LAB_order"));
  3. JLabel l = new JLabel(Node.getString("LAB_listOrder"));
  4. l.setDisplayedMnemonic(Node.getString("LAB_listOrder_Mnemonic").charAt(0));
  5. constraints = new GridBagConstraints();
  6. constraints.gridx = 0;
  7. buttonClose = new JButton(Node.getString("Button_close"));
  8. buttonClose.setMnemonic(Node.getString("Button_close_Mnemonic").charAt(0));
  9. buttonUp = new JButton(Node.getString("Button_up"));
  10. buttonUp.setMnemonic(Node.getString("Button_up_Mnemonic").charAt(0));
  11. buttonDown = new JButton(Node.getString("Button_down"));
  12. buttonDown.setMnemonic(Node.getString("Button_down_Mnemonic").charAt(0));
  13. buttonClose.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_close"));
  14. buttonUp.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_up"));
  15. buttonDown.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_down"));
  16. control.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_ListOrder"));
  17. p.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
  18. getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));

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

  1. public void run() {
  2. Index idx = (Index) TALK.get();
  3. java.awt.Container p = new javax.swing.JPanel();
  4. IndexedCustomizer ic = new IndexedCustomizer(p, false);
  5. ic.setObject(idx);
  6. ic.setImmediateReorder(false);
  7. org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order"));
  8. dd.setModal(true);
  9. dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION);
  10. Object result = org.openide.DialogDisplayer.getDefault().notify(dd);
  11. if (result == org.openide.DialogDescriptor.OK_OPTION) {
  12. ic.doClose();
  13. }
  14. }
  15. }

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. /** Convenience method to create new sheet set named {@link #PROPERTIES}.
  2. *
  3. * @return a new properties sheet set
  4. */
  5. public static Sheet.Set createPropertiesSet () {
  6. Sheet.Set ps = new Sheet.Set ();
  7. ps.setName(PROPERTIES);
  8. ps.setDisplayName(Node.getString("Properties"));
  9. ps.setShortDescription(Node.getString("HINT_Properties"));
  10. return ps;
  11. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. /** Convenience method to create new sheet set named {@link #PROPERTIES}.
  2. *
  3. * @return a new properties sheet set
  4. */
  5. public static Sheet.Set createPropertiesSet () {
  6. Sheet.Set ps = new Sheet.Set ();
  7. ps.setName(PROPERTIES);
  8. ps.setDisplayName(Node.getString("Properties"));
  9. ps.setShortDescription(Node.getString("HINT_Properties"));
  10. return ps;
  11. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. /** Convenience method to create new sheet set named {@link #EXPERT}.
  2. *
  3. * @return a new expert properties sheet set
  4. */
  5. public static Sheet.Set createExpertSet () {
  6. Sheet.Set ps = new Sheet.Set ();
  7. ps.setName(EXPERT);
  8. ps.setDisplayName(Node.getString("Expert"));
  9. ps.setShortDescription(Node.getString("HINT_Expert"));
  10. return ps;
  11. }

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. /** Convenience method to create new sheet set named {@link #EXPERT}.
  2. *
  3. * @return a new expert properties sheet set
  4. */
  5. public static Sheet.Set createExpertSet () {
  6. Sheet.Set ps = new Sheet.Set ();
  7. ps.setName(EXPERT);
  8. ps.setDisplayName(Node.getString("Expert"));
  9. ps.setShortDescription(Node.getString("HINT_Expert"));
  10. return ps;
  11. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. );
  2. setTitle(Node.getString("LAB_order"));
  3. JLabel l = new JLabel (Node.getString("LAB_listOrder"));
  4. l.setDisplayedMnemonic(Node.getString("LAB_listOrder_Mnemonic").charAt(0));
  5. constraints = new GridBagConstraints();
  6. constraints.gridx = 0;
  7. buttonClose = new JButton (Node.getString("Button_close"));
  8. buttonClose.setMnemonic(Node.getString("Button_close_Mnemonic").charAt(0));
  9. buttonUp = new JButton (Node.getString("Button_up"));
  10. buttonUp.setMnemonic(Node.getString("Button_up_Mnemonic").charAt(0));
  11. buttonDown = new JButton (Node.getString("Button_down"));
  12. buttonDown.setMnemonic(Node.getString("Button_down_Mnemonic").charAt(0));
  13. buttonClose.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_close"));
  14. buttonUp.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_up"));
  15. buttonDown.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_down"));
  16. control.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_ListOrder"));
  17. p.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
  18. getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. );
  2. setTitle(Node.getString("LAB_order"));
  3. JLabel l = new JLabel (Node.getString("LAB_listOrder"));
  4. l.setDisplayedMnemonic(Node.getString("LAB_listOrder_Mnemonic").charAt(0));
  5. constraints = new GridBagConstraints();
  6. constraints.gridx = 0;
  7. buttonClose = new JButton (Node.getString("Button_close"));
  8. buttonClose.setMnemonic(Node.getString("Button_close_Mnemonic").charAt(0));
  9. buttonUp = new JButton (Node.getString("Button_up"));
  10. buttonUp.setMnemonic(Node.getString("Button_up_Mnemonic").charAt(0));
  11. buttonDown = new JButton (Node.getString("Button_down"));
  12. buttonDown.setMnemonic(Node.getString("Button_down_Mnemonic").charAt(0));
  13. buttonClose.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_close"));
  14. buttonUp.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_up"));
  15. buttonDown.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_down"));
  16. control.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_ListOrder"));
  17. p.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
  18. getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. public void run() {
  2. Index idx = (Index)TALK.get();
  3. java.awt.Container p = new javax.swing.JPanel();
  4. IndexedCustomizer ic = new IndexedCustomizer(p, false);
  5. ic.setObject(idx);
  6. ic.setImmediateReorder(false);
  7. org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order"));
  8. dd.setModal(true);
  9. dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION);
  10. Object result = org.openide.DialogDisplayer.getDefault().notify(dd);
  11. if (result == org.openide.DialogDescriptor.OK_OPTION) {
  12. ic.doClose();
  13. }
  14. }
  15. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. public void run() {
  2. Index idx = (Index)TALK.get();
  3. java.awt.Container p = new javax.swing.JPanel();
  4. IndexedCustomizer ic = new IndexedCustomizer(p, false);
  5. ic.setObject(idx);
  6. ic.setImmediateReorder(false);
  7. org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order"));
  8. dd.setModal(true);
  9. dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION);
  10. Object result = org.openide.DialogDisplayer.getDefault().notify(dd);
  11. if (result == org.openide.DialogDescriptor.OK_OPTION) {
  12. ic.doClose();
  13. }
  14. }
  15. }

相关文章