|
||||||||||
| 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.selection.binding.support.SelectField
public abstract class SelectField
SelectField base class. Allows for customization of the renderer component.
A SelectField provides a renderer component (provided by subclasses), a select button and a clear button.
The renderer component shows the current value, the select button opens the selection dialog, and the clear button
sets the value to null.
| Field Summary |
|---|
| Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
|---|
logger |
| Constructor Summary | |
|---|---|
SelectField()
|
|
| 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. |
void |
clear()
Convenience method, calls setValue(null). |
protected JComponent |
createControl()
Subclasses must override this method to create a new instance of the control that this factory produces. |
protected abstract JComponent |
createRenderer()
Create the component that will do the rendering. |
LabelProvider |
getLabelProvider()
|
Object |
getValue()
|
boolean |
isEditable()
|
boolean |
isNullable()
Returns whether the property is nullable. |
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. |
protected abstract void |
render(Object value)
Render the given value. |
void |
setEditable(boolean editable)
|
void |
setEnabled(boolean enabled)
|
void |
setLabelProvider(LabelProvider labelProvider)
|
void |
setNullable(boolean nullable)
Sets whether the clear button is shown |
void |
setSelectionDialog(ApplicationDialog dialog)
|
void |
setValue(Object value)
|
| 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 |
| Constructor Detail |
|---|
public SelectField()
| Method Detail |
|---|
protected JComponent createControl()
AbstractControlFactory
createControl in class AbstractControlFactoryprotected abstract JComponent createRenderer()
null.
public void setEnabled(boolean enabled)
public void setEditable(boolean editable)
public boolean isEditable()
public void setValue(Object value)
public void clear()
setValue(null).
protected abstract void render(Object value)
null.
value - the valuepublic Object getValue()
public void setSelectionDialog(ApplicationDialog dialog)
public void setLabelProvider(LabelProvider labelProvider)
public LabelProvider getLabelProvider()
public boolean isNullable()
public void setNullable(boolean nullable)
nullable - whether the clear button is shownpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||