org.springframework.richclient.widget
Class WidgetView

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.factory.AbstractControlFactory
          extended by org.springframework.richclient.application.support.AbstractView
              extended by org.springframework.richclient.widget.WidgetView
All Implemented Interfaces:
PropertyChangePublisher, PageComponent, View, DescribedElement, VisualizedElement, ControlFactory

public class WidgetView
extends AbstractView

View implementation to show a widget


Field Summary
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Fields inherited from interface org.springframework.richclient.core.DescribedElement
CAPTION_PROPERTY, DESCRIPTION_PROPERTY, DISPLAY_NAME_PROPERTY
 
Constructor Summary
WidgetView()
           
WidgetView(Widget widget)
           
 
Method Summary
 boolean canClose()
           
 void componentFocusGained()
           
 void componentFocusLost()
           
protected  JComponent createControl()
          Subclasses must override this method to create a new instance of the control that this factory produces.
 Widget getWidget()
           
 void setWidget(Widget widget)
           
 
Methods inherited from class org.springframework.richclient.application.support.AbstractView
addPropertyChangeListener, addPropertyChangeListener, close, componentClosed, componentOpened, dispose, getCaption, getContext, getDescription, getDescriptor, getDisplayName, getIcon, getId, getImage, getStatusBar, getWindowCommandManager, getWindowControl, registerLocalCommandExecutors, removePropertyChangeListener, removePropertyChangeListener, setContext, setDescriptor, setInput
 
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.factory.ControlFactory
getControl
 

Constructor Detail

WidgetView

public WidgetView()

WidgetView

public WidgetView(Widget widget)
Method Detail

setWidget

public void setWidget(Widget widget)

getWidget

public Widget getWidget()

createControl

protected JComponent createControl()
Description copied from class: AbstractControlFactory
Subclasses must override this method to create a new instance of the control that this factory produces.

Specified by:
createControl in class AbstractView
Returns:
The newly created control, never null.

canClose

public boolean canClose()
Specified by:
canClose in interface PageComponent
Overrides:
canClose in class AbstractView

componentFocusGained

public void componentFocusGained()
Specified by:
componentFocusGained in interface PageComponent
Overrides:
componentFocusGained in class AbstractView

componentFocusLost

public void componentFocusLost()
Specified by:
componentFocusLost in interface PageComponent
Overrides:
componentFocusLost in class AbstractView


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