Package org.pushingpixels.substance.api.inputmaps

Examples of org.pushingpixels.substance.api.inputmaps.InputMapSet


   *         the default Substance input map set.
   *
   * @see #setInputMapSet(InputMapSet)
   */
  public static InputMapSet getInputMapSet() {
    InputMapSet inputMapSet = (InputMapSet) UIManager
        .get(SUBSTANCE_INPUT_MAP_SET_KEY);
    if (inputMapSet != null)
      return inputMapSet;

    // return system input map set
View Full Code Here


    };
    table.putDefaults(defaults);

    // input maps
    InputMapSet inputMapSet = SubstanceInputMapUtilities
        .getSystemInputMapSet();
    if (inputMapSet == null) {
      throw new IllegalStateException("Input map set is null!");
    }

    table.put("Button.focusInputMap", inputMapSet.getButtonFocusInputMap()
        .getUiMap());
    table.put("CheckBox.focusInputMap", inputMapSet
        .getCheckBoxFocusInputMap().getUiMap());
    table.put("ComboBox.ancestorInputMap", inputMapSet
        .getComboBoxAncestorInputMap().getUiMap());
    table.put("Desktop.ancestorInputMap", inputMapSet
        .getDesktopAncestorInputMap().getUiMap());
    table.put("EditorPane.focusInputMap", inputMapSet
        .getEditorPaneFocusInputMap().getUiMap());
    table.put("FileChooser.ancestorInputMap", inputMapSet
        .getFileChooserAncestorInputMap().getUiMap());
    table.put("FormattedTextField.focusInputMap", inputMapSet
        .getFormattedTextFieldFocusInputMap().getUiMap());
    table.put("List.focusInputMap", inputMapSet.getListFocusInputMap()
        .getUiMap());
    table.put("PasswordField.focusInputMap", inputMapSet
        .getPasswordFieldFocusInputMap().getUiMap());
    table.put("RadioButton.focusInputMap", inputMapSet
        .getRadioButtonFocusInputMap().getUiMap());
    table.put("RootPane.ancestorInputMap", inputMapSet
        .getRootPaneAncestorInputMap().getUiMap());
    table.put("ScrollBar.ancestorInputMap", inputMapSet
        .getScrollBarAncestorInputMap().getUiMap());
    table.put("ScrollPane.ancestorInputMap", inputMapSet
        .getScrollPaneAncestorInputMap().getUiMap());
    table.put("Slider.focusInputMap", inputMapSet.getSliderFocusInputMap()
        .getUiMap());
    table.put("Spinner.ancestorInputMap", inputMapSet
        .getSpinnerAncestorInputMap().getUiMap());
    table.put("SplitPane.ancestorInputMap", inputMapSet
        .getSplitPaneAncestorInputMap().getUiMap());
    table.put("TabbedPane.ancestorInputMap", inputMapSet
        .getTabbedPaneAncestorInputMap().getUiMap());
    table.put("TabbedPane.focusInputMap", inputMapSet
        .getTabbedPaneFocusInputMap().getUiMap());
    table.put("Table.ancestorInputMap", inputMapSet
        .getTableAncestorInputMap().getUiMap());
    table.put("TableHeader.ancestorInputMap", inputMapSet
        .getTableHeaderAncestorInputMap().getUiMap());
    table.put("TextArea.focusInputMap", inputMapSet
        .getTextAreaFocusInputMap().getUiMap());
    table.put("TextField.focusInputMap", inputMapSet
        .getTextFieldFocusInputMap().getUiMap());
    table.put("TextPane.focusInputMap", inputMapSet
        .getTextPaneFocusInputMap().getUiMap());
    table.put("ToggleButton.focusInputMap", inputMapSet
        .getToggleButtonFocusInputMap().getUiMap());
    table.put("ToolBar.ancestorInputMap", inputMapSet
        .getToolBarAncestorInputMap().getUiMap());
    table.put("Tree.ancestorInputMap", inputMapSet
        .getTreeAncestorInputMap().getUiMap());
    table.put("Tree.focusInputMap", inputMapSet.getTreeFocusInputMap()
        .getUiMap());
  }
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.inputmaps.InputMapSet

Copyright © 2018 www.massapicom. 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.