Package org.openbp.jaspira.action.keys

Examples of org.openbp.jaspira.action.keys.KeySequence


      StringTokenizer sto = new StringTokenizer(keys, JaspiraAction.KEY_SEQUENCE_DELIM);
      KeySequence[] sequences = new KeySequence[sto.countTokens()];

      for (int i = 0; sto.hasMoreTokens(); i++)
      {
        sequences[i] = new KeySequence(sto.nextToken());
      }

      // Simply perform a requestFocus operation when activated
      JaspiraAction action = new JaspiraAction(getName(), getTitle(), getDescription(), null, sequences, 0, JaspiraAction.TYPE_ACTION)
      {
View Full Code Here


      StringTokenizer sto = new StringTokenizer(keys, KEY_SEQUENCE_DELIM);
      keySequences = new KeySequence [sto.countTokens()];

      for (int i = 0; sto.hasMoreTokens(); i++)
      {
        keySequences [i] = new KeySequence(sto.nextToken());
      }
    }

    // Parse the names of the Jaspira pages that should display this action in the page menu or toolbar
    String pageNameStr = getActionPropertyString(PROPERTY_PAGE_NAMES);
View Full Code Here

      KeySequence [] sequences = action.getKeySequences();
      if (sequences != null)
      {
        for (int is = 0; is < sequences.length; ++is)
        {
          KeySequence sequence = sequences [is];
          if (sequence.length() == 1)
          {
            String actionId = "OE" + i;

            // Register the action id for the provided key code
            KeyStroke ks = sequence.getKeyAt(0);
            focusInputMap.put(ks, actionId);
            focusAncestorInputMap.put(ks, actionId);

            // Determine the command
            actionMap.put(actionId, action);
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.action.keys.KeySequence

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.