Package javax.swing.plaf

Examples of javax.swing.plaf.InputMapUIResource.keys()


    harness.check(defaults.get("TextField.font"), new FontUIResource("SansSerif", Font.PLAIN, 12));
    harness.check(defaults.get("TextField.margin"), new InsetsUIResource(0, 0, 0, 0));
    harness.check(UIManager.get("TextField.focusInputMap") instanceof InputMapUIResource);
    Object tf = UIManager.get("TextField.focusInputMap");
    InputMapUIResource tfim = (InputMapUIResource) tf;
    harness.check(tfim.keys().length == 33);
    harness.check(tfim.get(KeyStroke.getKeyStroke("ENTER")), "notify-field-accept");
    harness.check(tfim.get(KeyStroke.getKeyStroke("LEFT")), "caret-backward");
    harness.check(tfim.get(KeyStroke.getKeyStroke("RIGHT")), "caret-forward");
    harness.check(tfim.get(KeyStroke.getKeyStroke("BACK_SPACE")), "delete-previous");
    harness.check(tfim.get(KeyStroke.getKeyStroke("ctrl X")), "cut-to-clipboard");
View Full Code Here


    harness.check(defaults.get("TextPane.font"), new FontUIResource("Serif", Font.PLAIN, 12));
    harness.check(defaults.get("TextPane.margin"), new InsetsUIResource(3, 3, 3, 3));
    harness.check(UIManager.get("TextPane.focusInputMap") instanceof InputMapUIResource);
    Object tp = UIManager.get("TextPane.focusInputMap");
    InputMapUIResource tpim = (InputMapUIResource) tp;
    harness.check(tpim.keys().length == 55);
    harness.check(tpim.get(KeyStroke.getKeyStroke("shift UP")), "selection-up");
    harness.check(tpim.get(KeyStroke.getKeyStroke("ctrl RIGHT")), "caret-next-word");
    harness.check(tpim.get(KeyStroke.getKeyStroke("shift ctrl LEFT")), "selection-previous-word");
    harness.check(tpim.get(KeyStroke.getKeyStroke("shift KP_UP")), "selection-up");
    harness.check(tpim.get(KeyStroke.getKeyStroke("DOWN")), "caret-down");
View Full Code Here

    harness.check(defaults.get("Button.textIconGap"), new Integer(4));
    harness.check(defaults.get("Button.textShiftOffset"), new Integer(0));
    harness.check(defaults.get("Button.focusInputMap") instanceof InputMapUIResource);
    Object b = UIManager.get("Button.focusInputMap");
    InputMapUIResource bim = (InputMapUIResource) b;
    KeyStroke[] kb = bim.keys();
    harness.check(kb.length == 2);
    harness.check(bim.get(KeyStroke.getKeyStroke("SPACE")), "pressed");
    harness.check(bim.get(KeyStroke.getKeyStroke("released SPACE")), "released");
   
    harness.checkPoint("CheckBox");
View Full Code Here

    harness.check(b2.getInsideBorder() instanceof MarginBorder);
    harness.check(b2.getOutsideBorder() instanceof ButtonBorder);
    harness.check(defaults.get("CheckBox.focusInputMap") instanceof InputMapUIResource);
    Object c = UIManager.get("CheckBox.focusInputMap");
    InputMapUIResource cim = (InputMapUIResource) c;
    KeyStroke[] kc = cim.keys();
    harness.check(kc.length == 2);
    harness.check(cim.get(KeyStroke.getKeyStroke("SPACE")), "pressed");
    harness.check(cim.get(KeyStroke.getKeyStroke("released SPACE")), "released");
    harness.check(defaults.get("CheckBox.font"), new FontUIResource("Dialog", Font.PLAIN, 12));
    harness.check(defaults.get("CheckBox.icon") instanceof Icon);
View Full Code Here

    harness.check(defaults.get("EditorPane.caretBlinkRate"), new Integer(500));
    harness.check(defaults.get("EditorPane.font"), new FontUIResource("Serif", Font.PLAIN, 12));
    harness.check(defaults.get("EditorPane.margin"), new InsetsUIResource(3, 3, 3, 3));
    Object e = UIManager.get("EditorPane.focusInputMap");
    InputMapUIResource eim = (InputMapUIResource) e;
    KeyStroke[] ke = eim.keys();
    harness.check(ke.length == 55);
    harness.check(eim.get(KeyStroke.getKeyStroke("shift UP")), "selection-up");
    harness.check(eim.get(KeyStroke.getKeyStroke("ctrl RIGHT")), "caret-next-word");
    harness.check(eim.get(KeyStroke.getKeyStroke("shift ctrl LEFT")), "selection-previous-word");
    harness.check(eim.get(KeyStroke.getKeyStroke("shift KP_UP")), "selection-up");
View Full Code Here

    harness.check(defaults.get("PasswordField.font"), new FontUIResource("MonoSpaced", Font.PLAIN, 12));
    harness.check(defaults.get("PasswordField.margin"), new InsetsUIResource(0, 0, 0, 0));
    harness.check(UIManager.get("PasswordField.focusInputMap") instanceof InputMapUIResource);
    Object o = UIManager.get("PasswordField.focusInputMap");
    InputMapUIResource im = (InputMapUIResource) o;
    KeyStroke[] k = im.keys();
    harness.check(k.length == 33);
    harness.check(im.get(KeyStroke.getKeyStroke("END")), "caret-end-line");
  harness.check(im.get(KeyStroke.getKeyStroke("shift ctrl O")), "toggle-componentOrientation");
  harness.check(im.get(KeyStroke.getKeyStroke("shift KP_LEFT")), "selection-backward");
  harness.check(im.get(KeyStroke.getKeyStroke("shift RIGHT")), "selection-forward");
View Full Code Here

    harness.check(defaults.get("TabbedPane.ancestorInputMap") instanceof InputMapUIResource);
    harness.check(defaults.get("TabbedPane.contentBorderInsets"), new InsetsUIResource(2, 2, 3, 3));
    harness.check(defaults.get("TabbedPane.focusInputMap") instanceof InputMapUIResource);
    Object tab = UIManager.get("TabbedPane.focusInputMap");
    InputMapUIResource tabim = (InputMapUIResource) tab;
    harness.check(tabim.keys().length == 10);
    harness.check(tabim.get(KeyStroke.getKeyStroke("ctrl DOWN")),"requestFocusForVisibleComponent");
    harness.check(tabim.get(KeyStroke.getKeyStroke("KP_UP")),"navigateUp");
    harness.check(tabim.get(KeyStroke.getKeyStroke("LEFT")),"navigateLeft");
    harness.check(tabim.get(KeyStroke.getKeyStroke("ctrl KP_DOWN")),"requestFocusForVisibleComponent");
    harness.check(tabim.get(KeyStroke.getKeyStroke("UP")),"navigateUp");
View Full Code Here

    harness.check(defaults.get("TextArea.font"), new FontUIResource("MonoSpaced", Font.PLAIN, 12));
    harness.check(defaults.get("TextArea.margin"), new InsetsUIResource(0, 0, 0, 0));
    harness.check(UIManager.get("TextArea.focusInputMap") instanceof InputMapUIResource);
    Object ta = UIManager.get("TextArea.focusInputMap");
    InputMapUIResource taim = (InputMapUIResource) ta;
    harness.check(taim.keys().length == 55);
    harness.check(taim.get(KeyStroke.getKeyStroke("shift UP")), "selection-up");
    harness.check(taim.get(KeyStroke.getKeyStroke("ctrl RIGHT")), "caret-next-word");
    harness.check(taim.get(KeyStroke.getKeyStroke("shift ctrl LEFT")), "selection-previous-word");
    harness.check(taim.get(KeyStroke.getKeyStroke("shift KP_UP")), "selection-up");
    harness.check(taim.get(KeyStroke.getKeyStroke("DOWN")), "caret-down");
View Full Code Here

    harness.checkPoint("ToggleButton");
    harness.check(defaults.get("ToggleButton.border") instanceof BorderUIResource.CompoundBorderUIResource);
    harness.check(defaults.get("ToggleButton.focusInputMap") instanceof InputMapUIResource);
    Object to = UIManager.get("ToggleButton.focusInputMap");
    InputMapUIResource toim = (InputMapUIResource) to;
    harness.check(toim.keys().length == 2);
    harness.check(toim.get(KeyStroke.getKeyStroke("SPACE"))"pressed");
    harness.check(toim.get(KeyStroke.getKeyStroke("released SPACE")), "released");
    harness.check(defaults.get("ToggleButton.font"), new FontUIResource("Dialog", Font.PLAIN, 12));
    harness.check(defaults.get("ToggleButton.margin"), new InsetsUIResource(2, 14, 2, 14));
    harness.check(defaults.get("ToggleButton.textIconGap"), new Integer(4));
View Full Code Here

    harness.check(defaults.get("Tree.drawsFocusBorderAroundIcon"), Boolean.FALSE);
    harness.check(defaults.get("Tree.editorBorder") instanceof BorderUIResource.LineBorderUIResource);
    harness.check(defaults.get("Tree.focusInputMap") instanceof InputMapUIResource);
    Object tr = UIManager.get("Tree.focusInputMap");
    InputMapUIResource trim = (InputMapUIResource) tr;
    harness.check(trim.keys().length == 56);
  harness.check(trim.get(KeyStroke.getKeyStroke("ctrl DOWN")), "selectNextChangeLead");
  harness.check(trim.get(KeyStroke.getKeyStroke("shift UP")), "selectPreviousExtendSelection");
  harness.check(trim.get(KeyStroke.getKeyStroke("ctrl RIGHT")), "scrollRight");
  harness.check(trim.get(KeyStroke.getKeyStroke("shift KP_UP")), "selectPreviousExtendSelection");
  harness.check(trim.get(KeyStroke.getKeyStroke("DOWN")), "selectNext");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.