本文整理了Java中org.openide.util.Utilities.initNameAndValues()
方法的一些代码示例,展示了Utilities.initNameAndValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.initNameAndValues()
方法的具体详情如下:
包路径:org.openide.util.Utilities
类名称:Utilities
方法名:initNameAndValues
[英]Initialization of the names and values
[中]初始化名称和值
代码示例来源:origin: org.netbeans.api/org-openide-util
private static void appendRest(StringBuilder sb, KeyStroke stroke) {
String c = initNameAndValues().keyToString.get(Integer.valueOf(stroke.getKeyCode()));
if (c == null) {
sb.append(stroke.getKeyChar());
} else {
sb.append(c);
}
}
代码示例来源:origin: org.netbeans.api/org-openide-util
Map<String,Integer> names = initNameAndValues().stringToKey;
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
private static void appendRest(StringBuilder sb, KeyStroke stroke) {
String c = initNameAndValues().keyToString.get(Integer.valueOf(stroke.getKeyCode()));
if (c == null) {
sb.append(stroke.getKeyChar());
} else {
sb.append(c);
}
}
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
Map<String,Integer> names = initNameAndValues().stringToKey;
代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util
private static void appendRest(StringBuilder sb, KeyStroke stroke) {
String c = initNameAndValues().keyToString.get(Integer.valueOf(stroke.getKeyCode()));
if (c == null) {
sb.append(stroke.getKeyChar());
} else {
sb.append(c);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Converts a Swing key stroke descriptor to a familiar Emacs-like name.
* @param stroke key description
* @return name of the key (e.g. <code>CS-F1</code> for control-shift-function key one)
* @see #stringToKey
*/
public static String keyToString (KeyStroke stroke) {
StringBuffer sb = new StringBuffer ();
// add modifiers that must be pressed
if (addModifiers (sb, stroke.getModifiers ())) {
sb.append ('-');
}
HashMap[] namesAndValues = initNameAndValues ();
String c = (String)namesAndValues[1].get (new Integer (stroke.getKeyCode ()));
if (c == null) {
sb.append (stroke.getKeyChar ());
} else {
sb.append (c);
}
return sb.toString ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Converts a Swing key stroke descriptor to a familiar Emacs-like name.
* @param stroke key description
* @return name of the key (e.g. <code>CS-F1</code> for control-shift-function key one)
* @see #stringToKey
*/
public static String keyToString (KeyStroke stroke) {
StringBuffer sb = new StringBuffer ();
// add modifiers that must be pressed
if (addModifiers (sb, stroke.getModifiers ())) {
sb.append ('-');
}
HashMap[] namesAndValues = initNameAndValues ();
String c = (String)namesAndValues[1].get (new Integer (stroke.getKeyCode ()));
if (c == null) {
sb.append (stroke.getKeyChar ());
} else {
sb.append (c);
}
return sb.toString ();
}
代码示例来源:origin: in.jlibs/org-openide-util
/** Converts a Swing key stroke descriptor to a familiar Emacs-like name.
* @param stroke key description
* @return name of the key (e.g. <code>CS-F1</code> for control-shift-function key one)
* @see #stringToKey
*/
public static String keyToString(KeyStroke stroke) {
StringBuilder sb = new StringBuilder();
// add modifiers that must be pressed
if (addModifiers(sb, stroke.getModifiers())) {
sb.append('-');
}
String c = initNameAndValues().keyToString.get(Integer.valueOf(stroke.getKeyCode()));
if (c == null) {
sb.append(stroke.getKeyChar());
} else {
sb.append(c);
}
return sb.toString();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
HashMap names = initNameAndValues ()[0];
代码示例来源:origin: in.jlibs/org-openide-util
Map<String,Integer> names = initNameAndValues().stringToKey;
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
HashMap names = initNameAndValues ()[0];
代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util
Map<String,Integer> names = initNameAndValues().stringToKey;
内容来源于网络,如有侵权,请联系作者删除!