|
||||||||||
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.form.AbstractForm
org.springframework.richclient.widget.AbstractWidgetForm
public abstract class AbstractWidgetForm
Provides an easy way to create widgets based on an AbstractForm.
Field Summary | |
---|---|
static String |
SAVE_CMD_ID
Id for the save command. |
protected boolean |
showing
|
static String |
UNDO_CMD_ID
Id for the undo command. |
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
---|
logger |
Fields inherited from interface org.springframework.richclient.widget.Widget |
---|
EMPTY_WIDGET |
Constructor Summary | |
---|---|
protected |
AbstractWidgetForm()
|
protected |
AbstractWidgetForm(FormModel pageFormModel)
|
protected |
AbstractWidgetForm(FormModel formModel,
String formId)
|
protected |
AbstractWidgetForm(HierarchicalFormModel parentFormModel,
String formId,
String childFormObjectPropertyPath)
|
protected |
AbstractWidgetForm(HierarchicalFormModel parentFormModel,
String formId,
ValueModel childFormObjectHolder)
|
protected |
AbstractWidgetForm(Object formObject)
|
protected |
AbstractWidgetForm(String formId)
|
Method Summary | |
---|---|
boolean |
canClose()
Checks whether this component can be closed visually, for example when there are no unsaved changes. |
List<? extends AbstractCommand> |
getCommands()
Returns a list of commands for this widget. |
protected String |
getCommitCommandFaceDescriptorId()
|
JComponent |
getComponent()
|
protected String |
getRevertCommandFaceDescriptorId()
|
boolean |
isShowing()
Encompasses the status of the widget between onAboutToShow() and onAboutToHide(). |
void |
onAboutToHide()
Hook method called before moving the component to the background (=hiding) |
void |
onAboutToShow()
Hook method called before showing the component on screen. |
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 |
Field Detail |
---|
public static final String UNDO_CMD_ID
public static final String SAVE_CMD_ID
protected boolean showing
Constructor Detail |
---|
protected AbstractWidgetForm()
protected AbstractWidgetForm(String formId)
protected AbstractWidgetForm(Object formObject)
protected AbstractWidgetForm(FormModel pageFormModel)
protected AbstractWidgetForm(FormModel formModel, String formId)
protected AbstractWidgetForm(HierarchicalFormModel parentFormModel, String formId, String childFormObjectPropertyPath)
protected AbstractWidgetForm(HierarchicalFormModel parentFormModel, String formId, ValueModel childFormObjectHolder)
Method Detail |
---|
public boolean canClose()
Widget
canClose
in interface Widget
true
if the widget can be closed without problems.public List<? extends AbstractCommand> getCommands()
Widget
getCommands
in interface Widget
public JComponent getComponent()
getComponent
in interface Widget
null
graphical component built using the
parameters held in the widget instance.public void onAboutToHide()
Widget
onAboutToHide
in interface Widget
public void onAboutToShow()
Widget
onAboutToShow
in interface Widget
public boolean isShowing()
Widget
isShowing
in interface Widget
true
if the widget is shown in the foreground.protected String getCommitCommandFaceDescriptorId()
getCommitCommandFaceDescriptorId
in class AbstractForm
protected String getRevertCommandFaceDescriptorId()
getRevertCommandFaceDescriptorId
in class AbstractForm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |