net.curre.prefcount.gui.type
Interface UIItem

All Known Implementing Classes:
WindowComponent

public interface UIItem

This interface provides a common way to access text and shortcut attributes of a UI item (i.e. button, menu item, etc.).

Created date: May 8, 2008

Author:
Yevgeny Nyden

Method Summary
 java.lang.String getShortcutIndexKey()
          Gets the item shortcut index resource key.
 java.lang.String getShortcutKey()
          Gets the item shortcut resource key.
 java.lang.String getTextKey()
          Gets the item text resource key.
 

Method Detail

getTextKey

java.lang.String getTextKey()
Gets the item text resource key.

Returns:
the item text resource key.

getShortcutKey

java.lang.String getShortcutKey()
Gets the item shortcut resource key.

Returns:
the item shortcut resource key or null if there is no shortcut for this item.

getShortcutIndexKey

java.lang.String getShortcutIndexKey()
Gets the item shortcut index resource key. This is the index of the shortcut letter in the item's text string. Note, that "-1" indicates that the item's shortcut does not appear in the text string.

Returns:
the item shortcut index resource key or null if there is no shortcut for this item.


Copyright © 2008. All Rights Reserved.