|
||||||||||
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 PageComponent
public final void setContext(PageComponentContext context)
setContext
in interface PageComponent
public String getId()
getId
in interface PageComponent
public PageComponentDescriptor getDescriptor()
public PageComponentContext getContext()
getContext
in interface PageComponent
public void componentOpened()
componentOpened
in interface PageComponent
public void componentClosed()
componentClosed
in interface PageComponent
public void componentFocusGained()
componentFocusGained
in interface PageComponent
public void componentFocusLost()
componentFocusLost
in interface PageComponent
public String getCaption()
DescribedElement
getCaption
in interface DescribedElement
null
.public String getDescription()
DescribedElement
getDescription
in interface DescribedElement
null
.public String getDisplayName()
DescribedElement
getDisplayName
in interface DescribedElement
null
.public Icon getIcon()
VisualizedElement
getIcon
in interface VisualizedElement
public Image getImage()
VisualizedElement
getImage
in interface VisualizedElement
protected final Window getWindowControl()
protected final CommandManager getWindowCommandManager()
protected final StatusBar getStatusBar()
protected abstract JComponent createControl()
AbstractControlFactory
createControl
in class AbstractControlFactory
protected void registerLocalCommandExecutors(PageComponentContext context)
context
- the view contextpublic void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener
in interface PropertyChangePublisher
listener
- the PropertyChangeListener
to register.public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangePublisher
addPropertyChangeListener
in interface PropertyChangePublisher
propertyName
- 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 propertyName, PropertyChangeListener listener)
PropertyChangePublisher
removePropertyChangeListener
in interface PropertyChangePublisher
propertyName
- the property that was being monitored.listener
- the PropertyChangeListener
to remove.public void dispose()
dispose
in interface PageComponent
public boolean canClose()
canClose
in interface PageComponent
public void close()
close
in interface PageComponent
public 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 View
input
- the input, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |