|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.core.LabeledObjectSupport
org.springframework.richclient.dialog.AbstractDialogPage
public abstract class AbstractDialogPage
A convenience implementation of the DialogPage interface. Recommended to be used as a base class for all GUI dialog pages (or panes.)
DialogPage
Field Summary |
---|
Fields inherited from class org.springframework.richclient.core.LabeledObjectSupport |
---|
logger |
Fields inherited from interface org.springframework.richclient.dialog.DialogPage |
---|
DESCRIPTION_PROPERTY, PAGE_COMPLETE_PROPERTY |
Fields inherited from interface org.springframework.richclient.dialog.Messagable |
---|
MESSAGE_PROPERTY |
Fields inherited from interface org.springframework.richclient.core.DescribedElement |
---|
CAPTION_PROPERTY, DESCRIPTION_PROPERTY, DISPLAY_NAME_PROPERTY |
Constructor Summary | |
---|---|
protected |
AbstractDialogPage(String pageId)
Creates a new dialog page. |
protected |
AbstractDialogPage(String pageId,
boolean autoConfigure)
Creates a new dialog page. |
protected |
AbstractDialogPage(String pageId,
boolean autoConfigure,
String title)
Creates a new dialog page with the given title. |
protected |
AbstractDialogPage(String pageId,
boolean autoConfigure,
String title,
Image icon)
Creates a new dialog page with the given title and image. |
Method Summary | |
---|---|
protected abstract JComponent |
createControl()
|
JComponent |
getControl()
Returns the control that this factory is responsible for producing. |
Icon |
getIcon()
Returns the icon associated with the application component, or null. |
String |
getId()
Returns this page's name. |
Message |
getMessage()
Returns the current message for this dialog page. |
Window |
getParentWindowControl()
|
String |
getTitle()
Returns this dialog page's title. |
boolean |
hasErrorMessage()
|
boolean |
hasInfoMessage()
|
boolean |
hasWarningMessage()
|
boolean |
isControlCreated()
|
boolean |
isEnabled()
Indicates if the object is in an enabled state. |
boolean |
isPageComplete()
Returns whether this page is complete or not. |
boolean |
isVisible()
Returns the visibility of this dialog page. |
void |
performHelp()
This default implementation of an AbstractDialogPage
method does nothing. |
void |
setEnabled(boolean enabled)
Sets the enabled state of the object. |
void |
setIcon(Icon icon)
|
protected void |
setId(String pageId,
boolean autoConfigure)
|
void |
setMessage(Message newMessage)
Sets or clears the message for this page. |
void |
setPageComplete(boolean pageComplete)
|
void |
setVisible(boolean visible)
Sets the visibility of this dialog page. |
Methods inherited from class org.springframework.richclient.core.LabeledObjectSupport |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getAccelerator, getCaption, getDescription, getDisplayName, getImage, getLabel, getMnemonic, getMnemonicIndex, hasChanged, hasChanged, hasChanged, removePropertyChangeListener, removePropertyChangeListener, setCaption, setDescription, setImage, setLabelInfo, setTitle, toString |
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, wait, wait, wait |
Methods inherited from interface org.springframework.richclient.dialog.DialogPage |
---|
getDescription, getImage |
Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
protected AbstractDialogPage(String pageId)
pageId
- the id of this dialog page. This will be used to configure
the page.protected AbstractDialogPage(String pageId, boolean autoConfigure)
pageId
- the id of this dialog pageautoConfigure
- whether or not to use an ObjectConfigurer to
configure the titles of this dialog page using the given pageIdprotected AbstractDialogPage(String pageId, boolean autoConfigure, String title)
pageId
- the id of this dialog pageautoConfigure
- whether or not to use an ObjectConfigurer to
configure the titles of this dialog page using the given pageIdtitle
- the title of this dialog page, or null
if
noneprotected AbstractDialogPage(String pageId, boolean autoConfigure, String title, Image icon)
pageId
- the id of this dialog pageautoConfigure
- whether or not to use an ObjectConfigurer to
configure the titles of this dialog page using the given pageIdtitle
- the title of this dialog page, or null
if
noneicon
- the image for this dialog page, or null
if
noneMethod Detail |
---|
public String getId()
DialogPage
getId
in interface DialogPage
protected void setId(String pageId, boolean autoConfigure)
public String getTitle()
DialogPage
getTitle
in interface DialogPage
null
if nonepublic Message getMessage()
DialogPage
getMessage
in interface DialogPage
null
if nonepublic void setMessage(Message newMessage)
setMessage
in interface Messagable
newMessage
- the message, or null
to clear the
messagepublic boolean hasErrorMessage()
public boolean hasWarningMessage()
public boolean hasInfoMessage()
public void setVisible(boolean visible)
DialogPage
setVisible
in interface DialogPage
visible
- true
to make this page visible, and
false
to hide itpublic boolean isVisible()
DialogPage
isVisible
in interface DialogPage
true
this page is visible, or false
if this page is hiddenpublic boolean isPageComplete()
DialogPage
This information is typically to decide when it is okay to submit a form.
isPageComplete
in interface DialogPage
true
if this page is complete, and
false
otherwisepublic void setPageComplete(boolean pageComplete)
public boolean isEnabled()
Guarded
isEnabled
in interface Guarded
public void setEnabled(boolean enabled)
Guarded
setEnabled
in interface Guarded
enabled
- true
to enable the object, false
to disable it.public JComponent getControl()
ControlFactory
getControl
in interface ControlFactory
null
.public boolean isControlCreated()
public Window getParentWindowControl()
public void performHelp()
AbstractDialogPage
method does nothing. Subclasses should override to take some action in
response to a help request.
performHelp
in interface DialogPage
protected abstract JComponent createControl()
public void setIcon(Icon icon)
setIcon
in interface IconConfigurable
public Icon getIcon()
VisualizedElement
getIcon
in interface VisualizedElement
getIcon
in interface DialogPage
getIcon
in class LabeledObjectSupport
null
if none
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |