|
||||||||||
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.widget.AbstractWidget
org.springframework.richclient.widget.AbstractTitledWidget
public abstract class AbstractTitledWidget
Field Summary |
---|
Fields inherited from class org.springframework.richclient.widget.AbstractWidget |
---|
showing |
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
---|
logger |
Fields inherited from interface org.springframework.richclient.widget.Widget |
---|
EMPTY_WIDGET |
Fields inherited from interface org.springframework.richclient.dialog.Messagable |
---|
MESSAGE_PROPERTY |
Constructor Summary | |
---|---|
AbstractTitledWidget()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener to all properties of this publisher. |
void |
addPropertyChangeListener(String txt,
PropertyChangeListener listener)
Register a listener to a specific property. |
abstract JComponent |
createWidgetContent()
|
JComponent |
getComponent()
Lazy creation of component |
protected Message |
getDescription()
|
String |
getId()
|
boolean |
isEnabled()
Indicates if the object is in an enabled state. |
ValidationResultsReporter |
newSingleLineResultsReporter(Messagable messagable)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove the listener from all properties of this publisher. |
void |
removePropertyChangeListener(String txt,
PropertyChangeListener listener)
Remove the listener from a specific property. |
void |
setBeanName(String beanName)
|
void |
setCaption(String shortDescription)
|
void |
setDescription(String longDescription)
|
void |
setEnabled(boolean enabled)
Sets the enabled state of the object. |
void |
setId(String id)
|
void |
setImage(Image image)
|
void |
setMessage(Message message)
Set the message. |
void |
setTitle(String title)
Sets the title. |
Methods inherited from class org.springframework.richclient.widget.AbstractWidget |
---|
canClose, getCommands, isShowing, onAboutToHide, onAboutToShow |
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, toString, wait, wait, wait |
Methods inherited from interface org.springframework.richclient.widget.Widget |
---|
canClose, getCommands, isShowing, onAboutToHide, onAboutToShow |
Constructor Detail |
---|
public AbstractTitledWidget()
Method Detail |
---|
public void setId(String id)
public String getId()
getId
in interface TitledWidget
public void setBeanName(String beanName)
setBeanName
in interface BeanNameAware
public boolean isEnabled()
Guarded
isEnabled
in interface Guarded
public void setEnabled(boolean enabled)
Guarded
setEnabled
in interface Guarded
enabled
- true
to enable the object, false
to disable it.public void setTitle(String title)
TitleConfigurable
setTitle
in interface TitleConfigurable
title
- the titlepublic void setImage(Image image)
setImage
in interface ImageConfigurable
public void setMessage(Message message)
Messagable
setMessage
in interface Messagable
public ValidationResultsReporter newSingleLineResultsReporter(Messagable messagable)
newSingleLineResultsReporter
in interface TitledWidget
protected Message getDescription()
public void setDescription(String longDescription)
setDescription
in interface DescriptionConfigurable
public void setCaption(String shortDescription)
setCaption
in interface DescriptionConfigurable
public final JComponent getComponent()
getComponent
in interface Widget
null
graphical component built using the
parameters held in the widget instance.public abstract JComponent createWidgetContent()
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener
in interface PropertyChangePublisher
listener
- the PropertyChangeListener
to register.public void addPropertyChangeListener(String txt, PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener
in interface PropertyChangePublisher
txt
- the property to monitor.listener
- the PropertyChangeListener
to register.public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener
in interface PropertyChangePublisher
listener
- the PropertyChangeListener
to remove.public void removePropertyChangeListener(String txt, PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener
in interface PropertyChangePublisher
txt
- the property that was being monitored.listener
- the PropertyChangeListener
to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |