org.springframework.richclient.widget
Class TitledWidgetForm

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.widget.AbstractWidget
          extended by org.springframework.richclient.widget.AbstractTitledWidget
              extended by org.springframework.richclient.widget.TitledWidgetForm
All Implemented Interfaces:
BeanNameAware, PropertyChangePublisher, DescriptionConfigurable, Guarded, TitleConfigurable, Messagable, ImageConfigurable, TitledWidget, Widget

public class TitledWidgetForm
extends AbstractTitledWidget

A decorator to add a TitlePane to a Form. Adds the commit command as a default widget command to show. TODO check all widget functionality

Author:
Jan Hoskens

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
TitledWidgetForm()
           
 
Method Summary
 JComponent createWidgetContent()
           
 List<? extends AbstractCommand> getCommands()
          Returns a list of commands for this widget.
 AbstractForm getForm()
          Returns the form.
 ValidationResultsReporter newSingleLineResultsReporter(Messagable messagable)
           
 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 setForm(AbstractForm form)
          Set the inner form that needs decorating.
 
Methods inherited from class org.springframework.richclient.widget.AbstractTitledWidget
addPropertyChangeListener, addPropertyChangeListener, getComponent, getDescription, getId, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setBeanName, setCaption, setDescription, setEnabled, setId, setImage, setMessage, setTitle
 
Methods inherited from class org.springframework.richclient.widget.AbstractWidget
canClose, isShowing
 
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, isShowing
 

Constructor Detail

TitledWidgetForm

public TitledWidgetForm()
Method Detail

setForm

public void setForm(AbstractForm form)
Set the inner form that needs decorating.


getForm

public AbstractForm getForm()
Returns the form.


createWidgetContent

public JComponent createWidgetContent()
Specified by:
createWidgetContent in class AbstractTitledWidget

getCommands

public List<? extends AbstractCommand> getCommands()
Description copied from class: AbstractWidget
Returns a list of commands for this widget.

Specified by:
getCommands in interface Widget
Overrides:
getCommands in class AbstractWidget

newSingleLineResultsReporter

public ValidationResultsReporter newSingleLineResultsReporter(Messagable messagable)
Specified by:
newSingleLineResultsReporter in interface TitledWidget
Overrides:
newSingleLineResultsReporter in class AbstractTitledWidget

onAboutToHide

public void onAboutToHide()
Description copied from class: AbstractWidget
Hook method called before moving the component to the background (=hiding)

Specified by:
onAboutToHide in interface Widget
Overrides:
onAboutToHide in class AbstractWidget

onAboutToShow

public void onAboutToShow()
Description copied from class: AbstractWidget
Hook method called before showing the component on screen.

Specified by:
onAboutToShow in interface Widget
Overrides:
onAboutToShow in class AbstractWidget


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.