Exemplo n.º 1
0
  @SuppressWarnings("serial")
  @Override
  public void setupToolBar() {
    getToolbar()
        .add(
            new WebLabel("Resting Hour Report Entry") {
              {
                setDrawShade(true);
                setMargin(10);
              }
            });

    getToolbar().addSeparator();

    WebButton btnSaveNext =
        WebButton.createIconWebButton(
            getIconsHelper().loadIcon("common/save_all_16x16.png"),
            StyleConstants.smallRound,
            true);
    btnSaveNext.putClientProperty("command", "saveAndNext");
    btnSaveNext.addActionListener(this);
    btnSaveNext.setToolTipText("Save and move to next date (CTRL + Shift + S)");

    getToolbar().add(btnSaveNext);

    HotkeyManager.registerHotkey(getOwner(), btnSaveNext, Hotkey.CTRL_SHIFT_S);

    super.setupToolBar();
  }
Exemplo n.º 2
0
  public void showNotify() {
    super.showNotify();

    // #if polish.blackberry.isTouchBuild == true
    DeviceControl.hideSoftKeyboard();
    // #endif

    // #if !polish.blackberry
    // #if not using.native.textfield:defined
    TextUtilities.loadTextFieldCharacterset(
        "la"); // Defaulting to latin characters as we only allow latin characters in input fields
    // #endif
    // #endif

  }
Exemplo n.º 3
0
 @Override
 public void reset(ActionMapping mapping, HttpServletRequest request) {
   super.reset(mapping, request);
   randomSeedRandom = false;
   randomSeed = 0;
 }
Exemplo n.º 4
0
 /**
  * Handles key events.
  *
  * <p>WARNING: When this method should be overwritten, one need to ensure that super.keyPressed(
  * int ) is called!
  *
  * @param keyCode The code of the pressed key
  */
 public void keyPressed(int keyCode) {
   if (Keypad.key(keyCode) == Keypad.KEY_ESCAPE) getCommandListener().commandAction(cmdQuit, this);
   else super.keyPressed(keyCode);
 }