net.sourceforge.rssowl.controller.properties
Class HotkeysProperties

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.properties.PropertyPage
      extended bynet.sourceforge.rssowl.controller.properties.HotkeysProperties

public class HotkeysProperties
extends PropertyPage

Class displays a PropertyPage to assign hotkeys to common actions in RSSOwl

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
(package private)  org.eclipse.swt.widgets.Button assignKeyButton
           
(package private)  org.eclipse.swt.widgets.Text charSequence
           
(package private)  int countFullKey
           
(package private)  boolean firstKeyPress
           
(package private)  boolean fullKeyWasPressed
           
(package private)  Vector keys
           
(package private)  int keyValue
           
(package private)  org.eclipse.swt.widgets.Combo selectCategoryCombo
           
(package private)  org.eclipse.swt.widgets.Combo selectCommandCombo
           
 
Fields inherited from class net.sourceforge.rssowl.controller.properties.PropertyPage
apply, composite, dialogFont, errorMessageLabel, parent, propertyChangeManager, restore, rssOwlGui
 
Constructor Summary
HotkeysProperties(org.eclipse.swt.widgets.Composite parent, GUI rssOwlGui)
          Instatiate a new HotkeysProperties PropertyPage
 
Method Summary
 void applyButtonPressed()
          The apply button has been pressed
protected  void initComponents()
          Init all components
(package private)  boolean isFullKey(int keyCode)
          A full key is any key, that is not Ctrl, Shift or Alt.
(package private)  String isKeyOccupied(int keySequence, boolean matchSelf)
          Check if a given key sequence is occupied by a command
(package private)  void onKeyPressed(org.eclipse.swt.events.KeyEvent e)
          A key was pressed inside the hotkey input field.
(package private)  void onKeyReleased()
          A key was released inside the hotkey input field.
protected  void restoreButtonPressed()
          The restore button has been pressed
(package private)  void setKeySequenceText()
          Set the entered key sequence formatted as text
 void updatePropertiesChangeManager()
          No action is done here.
 
Methods inherited from class net.sourceforge.rssowl.controller.properties.PropertyPage
createButtons, createComposite, dispose, getPropertyChangeManager, initPropertyChangeManager, setApplyButtonState, setButtonLayoutData, setButtonLayoutData, setErrorMessage, setRestoreButtonState, setSuccessMessage, setWarningMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assignKeyButton

org.eclipse.swt.widgets.Button assignKeyButton

charSequence

org.eclipse.swt.widgets.Text charSequence

countFullKey

int countFullKey

firstKeyPress

boolean firstKeyPress

fullKeyWasPressed

boolean fullKeyWasPressed

keys

Vector keys

keyValue

int keyValue

selectCategoryCombo

org.eclipse.swt.widgets.Combo selectCategoryCombo

selectCommandCombo

org.eclipse.swt.widgets.Combo selectCommandCombo
Constructor Detail

HotkeysProperties

public HotkeysProperties(org.eclipse.swt.widgets.Composite parent,
                         GUI rssOwlGui)
Instatiate a new HotkeysProperties PropertyPage

Parameters:
parent - Composite's parent
rssOwlGui - The MainController
Method Detail

applyButtonPressed

public void applyButtonPressed()
Description copied from class: PropertyPage
The apply button has been pressed

Specified by:
applyButtonPressed in class PropertyPage
See Also:
PropertyPage.applyButtonPressed()

updatePropertiesChangeManager

public void updatePropertiesChangeManager()
No action is done here. The definition of hotkeys need to be applyd pressing the "Assign" button.

Specified by:
updatePropertiesChangeManager in class PropertyPage

initComponents

protected void initComponents()
Init all components

Specified by:
initComponents in class PropertyPage

restoreButtonPressed

protected void restoreButtonPressed()
Description copied from class: PropertyPage
The restore button has been pressed

Specified by:
restoreButtonPressed in class PropertyPage
See Also:
PropertyPage.restoreButtonPressed()

isFullKey

boolean isFullKey(int keyCode)
A full key is any key, that is not Ctrl, Shift or Alt. These keys need a combination with a full key to work as accelerator (e.g. Ctrl+B)

Parameters:
keyCode - Selected key
Returns:
TRUE if key is a full key

isKeyOccupied

String isKeyOccupied(int keySequence,
                     boolean matchSelf)
Check if a given key sequence is occupied by a command

Parameters:
keySequence - Selected key sequence
matchSelf - TRUE if selected command should be checked too
Returns:
NULL if key sequence was not occupied, and the translation key of the assigend command if occupied. Returns "_SELF" if the key sequence is occupied by the selected command

onKeyPressed

void onKeyPressed(org.eclipse.swt.events.KeyEvent e)
A key was pressed inside the hotkey input field.

Parameters:
e - The occuring KeyEvent

onKeyReleased

void onKeyReleased()
A key was released inside the hotkey input field.


setKeySequenceText

void setKeySequenceText()
Set the entered key sequence formatted as text



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo