|
||||||||||
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.factory.AbstractControlFactory
org.springframework.richclient.form.AbstractForm
org.springframework.richclient.widget.AbstractWidgetForm
org.springframework.richclient.widget.AbstractTitledWidgetForm
public abstract class AbstractTitledWidgetForm
Field Summary |
---|
Fields inherited from class org.springframework.richclient.widget.AbstractWidgetForm |
---|
SAVE_CMD_ID, showing, UNDO_CMD_ID |
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 | |
---|---|
AbstractTitledWidgetForm(FormModel model)
|
|
AbstractTitledWidgetForm(FormModel model,
String formId)
|
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. |
boolean |
canClose()
Checks whether this component can be closed visually, for example when there are no unsaved changes. |
List<? extends AbstractCommand> |
getCommands()
Returns a list of commands for this widget. |
JComponent |
getComponent()
|
protected Message |
getDescription()
|
void |
onAboutToHide()
Hook method called before moving the component to the background (=hiding) |
void |
onAboutToShow()
Hook method called before showing the component on screen. |
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 name)
|
void |
setCaption(String shortDescription)
|
void |
setDescription(String longDescription)
|
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.AbstractWidgetForm |
---|
getCommitCommandFaceDescriptorId, getRevertCommandFaceDescriptorId, isShowing |
Methods inherited from class org.springframework.richclient.factory.AbstractControlFactory |
---|
createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton |
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.TitledWidget |
---|
getId, newSingleLineResultsReporter |
Methods inherited from interface org.springframework.richclient.widget.Widget |
---|
isShowing |
Methods inherited from interface org.springframework.richclient.core.Guarded |
---|
isEnabled, setEnabled |
Methods inherited from interface org.springframework.richclient.factory.ControlFactory |
---|
getControl |
Constructor Detail |
---|
public AbstractTitledWidgetForm(FormModel model)
public AbstractTitledWidgetForm(FormModel model, String formId)
Method Detail |
---|
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
protected Message getDescription()
public void setDescription(String longDescription)
setDescription
in interface DescriptionConfigurable
public JComponent getComponent()
getComponent
in interface Widget
getComponent
in class AbstractWidgetForm
null
graphical component built using the
parameters held in the widget instance.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.public boolean canClose()
Widget
canClose
in interface Widget
canClose
in class AbstractWidgetForm
true
if the widget can be closed without problems.public List<? extends AbstractCommand> getCommands()
Widget
getCommands
in interface Widget
getCommands
in class AbstractWidgetForm
public void onAboutToHide()
Widget
onAboutToHide
in interface Widget
onAboutToHide
in class AbstractWidgetForm
public void onAboutToShow()
Widget
onAboutToShow
in interface Widget
onAboutToShow
in class AbstractWidgetForm
public void setCaption(String shortDescription)
setCaption
in interface DescriptionConfigurable
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |