Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.swingx

Class ComponentResources

com.gentleware.services.swingx.ComponentResources

public class ComponentResources


Helper class: A container for all resource specific data of a JComponent. The fields defined here hava a mapping to properties of a XAbstractAction.
Authors:
Stephen Kelvin


 Attribute Summary
private static String  RESOURCEID_ACCELERATOR2_POSTFIX
 
private static String  RESOURCEID_ACCELERATOR_POSTFIX
 
private static String  RESOURCEID_ENABLED_POSTFIX
 
private static String  RESOURCEID_ICON_POSTFIX
 
private static String  RESOURCEID_MNEMONIC_INDEX_POSTFIX
 
private static String  RESOURCEID_MNEMONIC_POSTFIX
 
private static String  RESOURCEID_NAME_POSTFIX
 
private static String  RESOURCEID_TOGGLE_POSTFIX
 
private static String  RESOURCEID_TOOLTIP_POSTFIX
 
private boolean  _enabled
 
private Integer  _mnemonic
 
private Integer  _mnemonicIndex
 
private String  _name
 
private String  _text
 
private boolean  _toggleAction
 
private String  _toolTip
 
arrow_up
 

 Association Summary
private KeyStroke  _accelerator
 
private KeyStroke  _accelerator2
 
private ImageIcon  _icon
 
public XTab  xTab
 
arrow_up
 

 Constructor Summary
public   ComponentResources(ResourceId resourceId)
Constructor that gets data from a resource bundle. 
public   ComponentResources(Action action)
Constructor that gets data from action properties  
arrow_up
 

 Method Summary
public void   configureAction(Action action)
Configure an action with data from this ComponentResources object  
public KeyStroke   getAccelerator()
 
public KeyStroke   getAccelerator2()
 
public static final String[]   getAllSuffixes()
 
public ImageIcon   getIcon()
 
public Integer   getMnemonic()
 
public Integer   getMnemonicIndex()
 
public String   getName()
 
public String   getText()
 
public String   getToolTip()
 
public boolean   isEnabled()
 
public boolean   isToggleAction()
 
private static KeyStroke   retrieveAccelerator(Localizer localizer, ResourceId resourceId)
 
private static KeyStroke   retrieveAccelerator2(Localizer localizer, ResourceId resourceId)
 
private static boolean   retrieveEnabled(Localizer localizer, ResourceId resourceId)
 
public static ImageIcon   retrieveIcon(ResourceId resourceId)
 
private static ImageIcon   retrieveIcon(Localizer localizer, ResourceId resourceId)
 
private static Integer   retrieveMnemonic(Localizer localizer, ResourceId resourceId)
 
private static Integer   retrieveMnemonicIndex(Localizer localizer, ResourceId resourceId, int textLength)
 
private static String   retrieveName(Localizer localizer, ResourceId resourceId)
 
public static String   retrieveText(ResourceId resourceId)
 
private static String   retrieveText(Localizer localizer, ResourceId resourceId)
 
private static boolean   retrieveToggleAction(Localizer localizer, ResourceId resourceId)
 
public static String   retrieveTooltip(ResourceId resourceId)
 
private static String   retrieveTooltip(Localizer localizer, ResourceId resourceId)
 
public void   setAccelerator(KeyStroke accelerator)
 
public void   setAccelerator2(KeyStroke accelerator)
 
public void   setEnabled(boolean enabled)
 
public void   setIcon(ImageIcon icon)
 
public void   setMnemonic(Integer mnemonic)
 
public void   setMnemonicIndex(Integer mnemonicIndex)
 
public void   setName(String name)
 
public void   setText(String text)
 
public void   setToggleAction(boolean toggleAction)
 
public void   setToolTip(String toolTip)
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

RESOURCEID_ACCELERATOR2_POSTFIX

private static String RESOURCEID_ACCELERATOR2_POSTFIX

arrow_up


RESOURCEID_ACCELERATOR_POSTFIX

private static String RESOURCEID_ACCELERATOR_POSTFIX

arrow_up


RESOURCEID_ENABLED_POSTFIX

private static String RESOURCEID_ENABLED_POSTFIX

arrow_up


RESOURCEID_ICON_POSTFIX

private static String RESOURCEID_ICON_POSTFIX

arrow_up


RESOURCEID_MNEMONIC_INDEX_POSTFIX

private static String RESOURCEID_MNEMONIC_INDEX_POSTFIX

arrow_up


RESOURCEID_MNEMONIC_POSTFIX

private static String RESOURCEID_MNEMONIC_POSTFIX

arrow_up


RESOURCEID_NAME_POSTFIX

private static String RESOURCEID_NAME_POSTFIX

arrow_up


RESOURCEID_TOGGLE_POSTFIX

private static String RESOURCEID_TOGGLE_POSTFIX

arrow_up


RESOURCEID_TOOLTIP_POSTFIX

private static String RESOURCEID_TOOLTIP_POSTFIX

arrow_up


_enabled

private boolean _enabled

arrow_up


_mnemonic

private Integer _mnemonic

arrow_up


_mnemonicIndex

private Integer _mnemonicIndex

arrow_up


_name

private String _name

arrow_up


_text

private String _text

arrow_up


_toggleAction

private boolean _toggleAction

arrow_up


_toolTip

private String _toolTip

arrow_up
 Association Detail

_accelerator

private KeyStroke _accelerator

arrow_up


_accelerator2

private KeyStroke _accelerator2

arrow_up


_icon

private ImageIcon _icon

arrow_up


xTab

public XTab xTab

arrow_up
 Constructor Detail

ComponentResources

public ComponentResources ComponentResources(ResourceId resourceId)


Constructor that gets data from a resource bundle.  
Parameters:
resourceId -
Returns:
arrow_up


ComponentResources

public ComponentResources ComponentResources(Action action)


Constructor that gets data from action properties  
Parameters:
action -
Returns:
arrow_up
 Method Detail

configureAction

public void configureAction(Action action)


Configure an action with data from this ComponentResources object  
Parameters:
action -
arrow_up


getAccelerator

public KeyStroke getAccelerator()

Returns:
arrow_up


getAccelerator2

public KeyStroke getAccelerator2()

Returns:
arrow_up


getAllSuffixes

public static final String[] getAllSuffixes()

Returns:
arrow_up


getIcon

public ImageIcon getIcon()

Returns:
arrow_up


getMnemonic

public Integer getMnemonic()

Returns:
arrow_up


getMnemonicIndex

public Integer getMnemonicIndex()

Returns:
arrow_up


getName

public String getName()

Returns:
arrow_up


getText

public String getText()

Returns:
arrow_up


getToolTip

public String getToolTip()

Returns:
arrow_up


isEnabled

public boolean isEnabled()

Returns:
arrow_up


isToggleAction

public boolean isToggleAction()

Returns:
arrow_up


retrieveAccelerator

private static KeyStroke retrieveAccelerator(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveAccelerator2

private static KeyStroke retrieveAccelerator2(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveEnabled

private static boolean retrieveEnabled(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveIcon

public static ImageIcon retrieveIcon(ResourceId resourceId)

Parameters:
resourceId -
Returns:
arrow_up


retrieveIcon

private static ImageIcon retrieveIcon(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveMnemonic

private static Integer retrieveMnemonic(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveMnemonicIndex

private static Integer retrieveMnemonicIndex(Localizer localizer, ResourceId resourceId, int textLength)

Parameters:
localizer -
resourceId -
textLength -
Returns:
arrow_up


retrieveName

private static String retrieveName(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveText

public static String retrieveText(ResourceId resourceId)

Parameters:
resourceId -
Returns:
arrow_up


retrieveText

private static String retrieveText(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveToggleAction

private static boolean retrieveToggleAction(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


retrieveTooltip

public static String retrieveTooltip(ResourceId resourceId)

Parameters:
resourceId -
Returns:
arrow_up


retrieveTooltip

private static String retrieveTooltip(Localizer localizer, ResourceId resourceId)

Parameters:
localizer -
resourceId -
Returns:
arrow_up


setAccelerator

public void setAccelerator(KeyStroke accelerator)

Parameters:
accelerator -
arrow_up


setAccelerator2

public void setAccelerator2(KeyStroke accelerator)

Parameters:
accelerator -
arrow_up


setEnabled

public void setEnabled(boolean enabled)

Parameters:
enabled -
arrow_up


setIcon

public void setIcon(ImageIcon icon)

Parameters:
icon -
arrow_up


setMnemonic

public void setMnemonic(Integer mnemonic)

Parameters:
mnemonic -
arrow_up


setMnemonicIndex

public void setMnemonicIndex(Integer mnemonicIndex)

Parameters:
mnemonicIndex -
arrow_up


setName

public void setName(String name)

Parameters:
name -
arrow_up


setText

public void setText(String text)

Parameters:
text -
arrow_up


setToggleAction

public void setToggleAction(boolean toggleAction)

Parameters:
toggleAction -
arrow_up


setToolTip

public void setToolTip(String toolTip)

Parameters:
toolTip -
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.