|
||||||||||
| 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.application.support.AbstractView
public abstract class AbstractView
| 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 | |
|---|---|
AbstractView()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener to all properties of this publisher. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Register a listener to a specific property. |
boolean |
canClose()
|
void |
close()
|
void |
componentClosed()
|
void |
componentFocusGained()
|
void |
componentFocusLost()
|
void |
componentOpened()
|
protected abstract JComponent |
createControl()
Subclasses must override this method to create a new instance of the control that this factory produces. |
void |
dispose()
|
String |
getCaption()
Returns the caption for this object. |
PageComponentContext |
getContext()
|
String |
getDescription()
Returns a description of this object. |
PageComponentDescriptor |
getDescriptor()
|
String |
getDisplayName()
Returns the display name of this object. |
Icon |
getIcon()
Returns the icon associated with the application component, or null. |
String |
getId()
|
Image |
getImage()
Returns the image associated with the application component, or null. |
protected StatusBar |
getStatusBar()
|
protected CommandManager |
getWindowCommandManager()
|
protected Window |
getWindowControl()
|
protected void |
registerLocalCommandExecutors(PageComponentContext context)
Template method called once when this view is initialized; allows subclasses to register local executors for shared commands with the view context. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove the listener from all properties of this publisher. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove the listener from a specific property. |
void |
setContext(PageComponentContext context)
|
void |
setDescriptor(PageComponentDescriptor descriptor)
|
void |
setInput(Object input)
Sets the input for this View. |
| 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 |
|---|
public AbstractView()
| Method Detail |
|---|
public void setDescriptor(PageComponentDescriptor descriptor)
setDescriptor in interface PageComponentpublic final void setContext(PageComponentContext context)
setContext in interface PageComponentpublic String getId()
getId in interface PageComponentpublic PageComponentDescriptor getDescriptor()
public PageComponentContext getContext()
getContext in interface PageComponentpublic void componentOpened()
componentOpened in interface PageComponentpublic void componentClosed()
componentClosed in interface PageComponentpublic void componentFocusGained()
componentFocusGained in interface PageComponentpublic void componentFocusLost()
componentFocusLost in interface PageComponentpublic String getCaption()
DescribedElement
getCaption in interface DescribedElementnull.public String getDescription()
DescribedElement
getDescription in interface DescribedElementnull.public String getDisplayName()
DescribedElement
getDisplayName in interface DescribedElementnull.public Icon getIcon()
VisualizedElement
getIcon in interface VisualizedElementpublic Image getImage()
VisualizedElement
getImage in interface VisualizedElementprotected final Window getWindowControl()
protected final CommandManager getWindowCommandManager()
protected final StatusBar getStatusBar()
protected abstract JComponent createControl()
AbstractControlFactory
createControl in class AbstractControlFactoryprotected void registerLocalCommandExecutors(PageComponentContext context)
context - the view contextpublic void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener in interface PropertyChangePublisherlistener - the PropertyChangeListener to register.
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener in interface PropertyChangePublisherpropertyName - the property to monitor.listener - the PropertyChangeListener to register.public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener in interface PropertyChangePublisherlistener - the PropertyChangeListener to remove.
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener in interface PropertyChangePublisherpropertyName - the property that was being monitored.listener - the PropertyChangeListener to remove.public void dispose()
dispose in interface PageComponentpublic boolean canClose()
canClose in interface PageComponentpublic void close()
close in interface PageComponentpublic void setInput(Object input)
View. This method may be implemented so this View can update it's own
state (ui) when this method is called.
Normally this method is called from ApplicationPage.showView(String, Object), but may also be called
directly.
This implementation does nothing.
setInput in interface Viewinput - the input, can be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||