|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.Integer,InfoModule>
cz.cuni.jagrlib.reg.HashMapModules
public class HashMapModules
HashMap for modules and groups.
Into these HashMap it is posible insert only objects of InfoModule
.
HashMap
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary | |
---|---|
static int |
ACTION_ADD_MODULE
|
static int |
ACTION_DELETE_MODULE
|
Constructor Summary | |
---|---|
HashMapModules()
|
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action events from this object. |
int |
getMaxKey()
Find maximum value in set of keys contained in this map. |
void |
changePerformed(int id,
InfoModule _obj)
Group change - add/delete module. |
protected void |
processActionEvent(java.awt.event.ActionEvent e)
Processes action events occurring on this object by dispatching them to any registered ActionListener objects. |
InfoModule |
put(java.lang.Integer key,
InfoModule module)
Associates the module (or group) with the specified key in this map. |
InfoModule |
remove(java.lang.Integer key)
Removes the mapping for this key from this map if present. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer receives action events from this object. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static final int ACTION_DELETE_MODULE
public static final int ACTION_ADD_MODULE
Constructor Detail |
---|
public HashMapModules()
Method Detail |
---|
public int getMaxKey()
public InfoModule put(java.lang.Integer key, InfoModule module)
put
in interface java.util.Map<java.lang.Integer,InfoModule>
put
in class java.util.HashMap<java.lang.Integer,InfoModule>
key
- Module's key.module
- Module's info.
public InfoModule remove(java.lang.Integer key)
key
- Module's key.
public void changePerformed(int id, InfoModule _obj)
id
- Identification of action._obj
- Module.public void addActionListener(java.awt.event.ActionListener l)
l
- the action listenerremoveActionListener(java.awt.event.ActionListener)
,
ActionListener
public void removeActionListener(java.awt.event.ActionListener l)
l
- the action listeneraddActionListener(java.awt.event.ActionListener)
,
ActionListener
protected void processActionEvent(java.awt.event.ActionEvent e)
ActionListener
objects.
This method is not called unless action events are enabled for this object. Action events are enabled when one of the following occurs:
ActionListener
object is registered
via addActionListener(java.awt.event.ActionListener)
.
e
- the action eventActionListener
,
Component.enableEvents(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |