org.montsuqi.widgets
Class UIStock

java.lang.Object
  extended by org.montsuqi.widgets.UIStock

public class UIStock
extends java.lang.Object

This class provides mapping from a string name to a set of icon/text/tooltip/accelerator.


Method Summary
static UIStock get(java.lang.String key)
          Returns a ui stock named key.
 javax.swing.KeyStroke getAccelerator()
          Gets the accelerator resource of this ui scock.
 javax.swing.Icon getIcon()
          Gets the icon resource of this ui scock.
 java.lang.String getText()
          Gets the text resource of this ui scock.
 java.lang.String getToolTip()
          Gets the tooltip resource of this ui scock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getText

public java.lang.String getText()

Gets the text resource of this ui scock.

Returns:
a text.

getToolTip

public java.lang.String getToolTip()

Gets the tooltip resource of this ui scock.

Returns:
a tooltip.

getIcon

public javax.swing.Icon getIcon()

Gets the icon resource of this ui scock.

Returns:
an icon.

getAccelerator

public javax.swing.KeyStroke getAccelerator()

Gets the accelerator resource of this ui scock.

Returns:
an accelerator's key stroke.

get

public static UIStock get(java.lang.String key)

Returns a ui stock named key.

Parameters:
key - the key to look up the ui stock for.