|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.core.LabeledObjectSupport
public class LabeledObjectSupport
A convenient super class for objects that can be labeled for display in a GUI.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Fields inherited from interface org.springframework.richclient.core.DescribedElement |
|---|
CAPTION_PROPERTY, DESCRIPTION_PROPERTY, DISPLAY_NAME_PROPERTY |
| Constructor Summary | |
|---|---|
LabeledObjectSupport()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
protected void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
|
protected void |
firePropertyChange(String propertyName,
int oldValue,
int newValue)
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
|
KeyStroke |
getAccelerator()
|
String |
getCaption()
Returns the caption for this object. |
String |
getDescription()
Returns a description of this object. |
String |
getDisplayName()
Returns the display name of this object. |
Icon |
getIcon()
Returns the icon associated with the application component, or null. |
Image |
getImage()
Returns the image associated with the application component, or null. |
CommandButtonLabelInfo |
getLabel()
|
int |
getMnemonic()
|
int |
getMnemonicIndex()
|
protected boolean |
hasChanged(boolean currentValue,
boolean proposedValue)
|
protected boolean |
hasChanged(int currentValue,
int proposedValue)
|
protected boolean |
hasChanged(Object currentValue,
Object proposedValue)
|
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
void |
setCaption(String caption)
|
void |
setDescription(String description)
|
void |
setImage(Image image)
|
void |
setLabelInfo(CommandButtonLabelInfo label)
|
void |
setTitle(String title)
Sets the title. |
String |
toString()
|
| Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
|---|
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public LabeledObjectSupport()
| Method Detail |
|---|
public void setLabelInfo(CommandButtonLabelInfo label)
setLabelInfo in interface CommandLabelConfigurablepublic void setCaption(String caption)
setCaption in interface DescriptionConfigurablepublic void setDescription(String description)
setDescription in interface DescriptionConfigurablepublic void setTitle(String title)
TitleConfigurable
setTitle in interface TitleConfigurabletitle - the titlepublic void setImage(Image image)
setImage in interface ImageConfigurablepublic String getDisplayName()
DescribedElement
getDisplayName in interface DescribedElementnull.public String getCaption()
DescribedElement
getCaption in interface DescribedElementnull.public String getDescription()
DescribedElement
getDescription in interface DescribedElementnull.public Image getImage()
VisualizedElement
getImage in interface VisualizedElementpublic Icon getIcon()
VisualizedElement
getIcon in interface VisualizedElementpublic int getMnemonic()
public int getMnemonicIndex()
public KeyStroke getAccelerator()
public CommandButtonLabelInfo getLabel()
public void addPropertyChangeListener(PropertyChangeListener l)
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
protected void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
protected void firePropertyChange(String propertyName,
int oldValue,
int newValue)
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
protected boolean hasChanged(Object currentValue,
Object proposedValue)
protected boolean hasChanged(boolean currentValue,
boolean proposedValue)
protected boolean hasChanged(int currentValue,
int proposedValue)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||