net.sf.doolin.gui.swing
Class KeyLabelInfoProvider

java.lang.Object
  extended by net.sf.doolin.gui.swing.KeyLabelInfoProvider
All Implemented Interfaces:
LabelInfoProvider

public class KeyLabelInfoProvider
extends Object
implements LabelInfoProvider

LabelInfoProvider based on a map of keys, that give access to the text and icons.

Author:
Damien Coraboeuf (x74639)

Constructor Summary
KeyLabelInfoProvider()
           
 
Method Summary
 IconService getIconService()
          Gets the icon service used to access icons
 Map<Object,String> getKeyMap()
          Gets the key map.
 LabelInfo getLabelIcon(Object item)
          Gets the label information.
 void setIconService(IconService iconService)
          Sets the icon service used to access icons
 void setKeyMap(Map<Object,String> keyMap)
          Sets the key map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyLabelInfoProvider

public KeyLabelInfoProvider()
Method Detail

getLabelIcon

public LabelInfo getLabelIcon(Object item)
Description copied from interface: LabelInfoProvider
Gets the label information.

Specified by:
getLabelIcon in interface LabelInfoProvider
Parameters:
item - the item
Returns:
the label information

getKeyMap

public Map<Object,String> getKeyMap()
Gets the key map.

Returns:
the key map

setKeyMap

public void setKeyMap(Map<Object,String> keyMap)
Sets the key map.

Parameters:
keyMap - the key map

getIconService

public IconService getIconService()
Gets the icon service used to access icons

Returns:
Icon service

setIconService

public void setIconService(IconService iconService)
Sets the icon service used to access icons

Parameters:
iconService - Icon service


Copyright © 2011. All Rights Reserved.