tit.gui.widget.KeyboardLayoutEditor.KeyModel Class Reference

List of all members.

Public Member Functions

 KeyModel (char ch)
Object getSelectedItem ()
void setSelectedItem (Object item)
Object getElementAt (int index)
int getSize ()
void addListDataListener (ListDataListener listener)
void removeListDataListener (ListDataListener listener)

Private Member Functions

void notifyListeners ()

Private Attributes

EventListenerList listeners
Character mykey

Detailed Description

A model for the keyboard layout.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.gui.widget.KeyboardLayoutEditor.KeyModel.KeyModel ( char  ch  ) 

Construct a new KeyModel.

Parameters:
ch This model's key.


Member Function Documentation

void tit.gui.widget.KeyboardLayoutEditor.KeyModel.notifyListeners (  )  [private]

Notify all listeners.

Object tit.gui.widget.KeyboardLayoutEditor.KeyModel.getSelectedItem (  ) 

Returns the selected key.

Returns:
The selected key.

void tit.gui.widget.KeyboardLayoutEditor.KeyModel.setSelectedItem ( Object  item  ) 

Changes the selected key.

Parameters:
item The new item.

Object tit.gui.widget.KeyboardLayoutEditor.KeyModel.getElementAt ( int  index  ) 

Gets an element from the list.

Parameters:
index The element's index.
Returns:
The element.

int tit.gui.widget.KeyboardLayoutEditor.KeyModel.getSize (  ) 

Get the list's size.

Returns:
The size of the list.

void tit.gui.widget.KeyboardLayoutEditor.KeyModel.addListDataListener ( ListDataListener  listener  ) 

Adds a ListDataListener to this model.

Parameters:
listener The listener to add.

void tit.gui.widget.KeyboardLayoutEditor.KeyModel.removeListDataListener ( ListDataListener  listener  ) 

Removes a ListDataListener from this model.

Parameters:
listener The listener to remove.


Member Data Documentation

EventListenerList tit.gui.widget.KeyboardLayoutEditor.KeyModel.listeners [private]

This KeyModel's listeners.

Character tit.gui.widget.KeyboardLayoutEditor.KeyModel.mykey [private]

My key.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:00 2007 by  doxygen 1.5.1