本文整理了Java中org.openide.nodes.Node.getString()
方法的一些代码示例,展示了Node.getString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getString()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:getString
[英]Obtains a resource string from bundle.
[中]从包中获取资源字符串。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Convenience method to create new sheet set named {@link #PROPERTIES}.
*
* @return a new properties sheet set
*/
public static Sheet.Set createPropertiesSet() {
Sheet.Set ps = new Sheet.Set();
ps.setName(PROPERTIES);
ps.setDisplayName(Node.getString("Properties"));
ps.setShortDescription(Node.getString("HINT_Properties"));
return ps;
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Convenience method to create new sheet set named {@link #EXPERT}.
*
* @return a new expert properties sheet set
*/
public static Sheet.Set createExpertSet() {
Sheet.Set ps = new Sheet.Set();
ps.setExpert(true);
ps.setName(EXPERT);
ps.setDisplayName(Node.getString("Expert"));
ps.setShortDescription(Node.getString("HINT_Expert"));
return ps;
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
);
setTitle(Node.getString("LAB_order"));
JLabel l = new JLabel(Node.getString("LAB_listOrder"));
l.setDisplayedMnemonic(Node.getString("LAB_listOrder_Mnemonic").charAt(0));
constraints = new GridBagConstraints();
constraints.gridx = 0;
buttonClose = new JButton(Node.getString("Button_close"));
buttonClose.setMnemonic(Node.getString("Button_close_Mnemonic").charAt(0));
buttonUp = new JButton(Node.getString("Button_up"));
buttonUp.setMnemonic(Node.getString("Button_up_Mnemonic").charAt(0));
buttonDown = new JButton(Node.getString("Button_down"));
buttonDown.setMnemonic(Node.getString("Button_down_Mnemonic").charAt(0));
buttonClose.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_close"));
buttonUp.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_up"));
buttonDown.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_down"));
control.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_ListOrder"));
p.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
代码示例来源:origin: org.netbeans.api/org-openide-nodes
public void run() {
Index idx = (Index) TALK.get();
java.awt.Container p = new javax.swing.JPanel();
IndexedCustomizer ic = new IndexedCustomizer(p, false);
ic.setObject(idx);
ic.setImmediateReorder(false);
org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order"));
dd.setModal(true);
dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION);
Object result = org.openide.DialogDisplayer.getDefault().notify(dd);
if (result == org.openide.DialogDescriptor.OK_OPTION) {
ic.doClose();
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Convenience method to create new sheet set named {@link #PROPERTIES}.
*
* @return a new properties sheet set
*/
public static Sheet.Set createPropertiesSet () {
Sheet.Set ps = new Sheet.Set ();
ps.setName(PROPERTIES);
ps.setDisplayName(Node.getString("Properties"));
ps.setShortDescription(Node.getString("HINT_Properties"));
return ps;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Convenience method to create new sheet set named {@link #PROPERTIES}.
*
* @return a new properties sheet set
*/
public static Sheet.Set createPropertiesSet () {
Sheet.Set ps = new Sheet.Set ();
ps.setName(PROPERTIES);
ps.setDisplayName(Node.getString("Properties"));
ps.setShortDescription(Node.getString("HINT_Properties"));
return ps;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Convenience method to create new sheet set named {@link #EXPERT}.
*
* @return a new expert properties sheet set
*/
public static Sheet.Set createExpertSet () {
Sheet.Set ps = new Sheet.Set ();
ps.setName(EXPERT);
ps.setDisplayName(Node.getString("Expert"));
ps.setShortDescription(Node.getString("HINT_Expert"));
return ps;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Convenience method to create new sheet set named {@link #EXPERT}.
*
* @return a new expert properties sheet set
*/
public static Sheet.Set createExpertSet () {
Sheet.Set ps = new Sheet.Set ();
ps.setName(EXPERT);
ps.setDisplayName(Node.getString("Expert"));
ps.setShortDescription(Node.getString("HINT_Expert"));
return ps;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
);
setTitle(Node.getString("LAB_order"));
JLabel l = new JLabel (Node.getString("LAB_listOrder"));
l.setDisplayedMnemonic(Node.getString("LAB_listOrder_Mnemonic").charAt(0));
constraints = new GridBagConstraints();
constraints.gridx = 0;
buttonClose = new JButton (Node.getString("Button_close"));
buttonClose.setMnemonic(Node.getString("Button_close_Mnemonic").charAt(0));
buttonUp = new JButton (Node.getString("Button_up"));
buttonUp.setMnemonic(Node.getString("Button_up_Mnemonic").charAt(0));
buttonDown = new JButton (Node.getString("Button_down"));
buttonDown.setMnemonic(Node.getString("Button_down_Mnemonic").charAt(0));
buttonClose.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_close"));
buttonUp.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_up"));
buttonDown.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_down"));
control.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_ListOrder"));
p.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
);
setTitle(Node.getString("LAB_order"));
JLabel l = new JLabel (Node.getString("LAB_listOrder"));
l.setDisplayedMnemonic(Node.getString("LAB_listOrder_Mnemonic").charAt(0));
constraints = new GridBagConstraints();
constraints.gridx = 0;
buttonClose = new JButton (Node.getString("Button_close"));
buttonClose.setMnemonic(Node.getString("Button_close_Mnemonic").charAt(0));
buttonUp = new JButton (Node.getString("Button_up"));
buttonUp.setMnemonic(Node.getString("Button_up_Mnemonic").charAt(0));
buttonDown = new JButton (Node.getString("Button_down"));
buttonDown.setMnemonic(Node.getString("Button_down_Mnemonic").charAt(0));
buttonClose.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_close"));
buttonUp.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_up"));
buttonDown.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_Button_down"));
control.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_ListOrder"));
p.getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
getAccessibleContext().setAccessibleDescription(Node.getString("ACSD_IndexedCustomizer"));
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void run() {
Index idx = (Index)TALK.get();
java.awt.Container p = new javax.swing.JPanel();
IndexedCustomizer ic = new IndexedCustomizer(p, false);
ic.setObject(idx);
ic.setImmediateReorder(false);
org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order"));
dd.setModal(true);
dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION);
Object result = org.openide.DialogDisplayer.getDefault().notify(dd);
if (result == org.openide.DialogDescriptor.OK_OPTION) {
ic.doClose();
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void run() {
Index idx = (Index)TALK.get();
java.awt.Container p = new javax.swing.JPanel();
IndexedCustomizer ic = new IndexedCustomizer(p, false);
ic.setObject(idx);
ic.setImmediateReorder(false);
org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order"));
dd.setModal(true);
dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION);
Object result = org.openide.DialogDisplayer.getDefault().notify(dd);
if (result == org.openide.DialogDescriptor.OK_OPTION) {
ic.doClose();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!