|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
net.officefloor.eclipse.common.dialog.BeanDialog
public class BeanDialog
Popuates the input bean by user entered information via a dialog window.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
BeanDialog(org.eclipse.swt.widgets.Shell parentShell,
Object bean,
ClassLoader classLoader,
String... ignoreProperties)
Initiate. |
|
BeanDialog(org.eclipse.swt.widgets.Shell parentShell,
Object bean,
String... ignoreProperties)
Initiate without the ability to load Class instances. |
|
| Method Summary | |
|---|---|
void |
addIgnoreType(Class<?> type)
Adds type to be ignored. |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Control |
getDialogArea()
Obtains the Control of the dialog area. |
protected void |
okPressed()
|
boolean |
populate()
Populates the bean. |
void |
registerPropertyInput(String propertyName,
Input<?> input)
Registers a specialised Input for the property name. |
void |
registerPropertyValueTranslator(String propertyName,
ValueTranslator translator)
Registers a ValueTranslator for the property name. |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanDialog(org.eclipse.swt.widgets.Shell parentShell,
Object bean,
ClassLoader classLoader,
String... ignoreProperties)
parentShell - Parent shell.bean - Bean to be populated.classLoader - ClassLoader to use to validate specified classes are
available.ignoreProperties - Properties to not populate.
public BeanDialog(org.eclipse.swt.widgets.Shell parentShell,
Object bean,
String... ignoreProperties)
Class instances.
parentShell - Parent shell.bean - Bean to be populated.ignoreProperties - Properties to not populate.| Method Detail |
|---|
public boolean populate()
true if bean is populated.public void addIgnoreType(Class<?> type)
type - Type to be ignored. May allow multiple in the one statement.
public void registerPropertyInput(String propertyName,
Input<?> input)
Input for the property name.
propertyName - Name of property.builder - Specialised Input.
public void registerPropertyValueTranslator(String propertyName,
ValueTranslator translator)
Registers a ValueTranslator for the property name.
Named ValueTranslator instances override typed
ValueTranslator instances.
propertyName - Name of property.translator - ValueTranslator.protected org.eclipse.swt.widgets.Control getDialogArea()
Control of the dialog area.
getDialogArea in class org.eclipse.jface.dialogs.Dialogprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea in class org.eclipse.jface.dialogs.Dialogprotected void okPressed()
okPressed in class org.eclipse.jface.dialogs.Dialog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||