|
com.im.commons 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DFCustomizer
Special extension of standard Java Beans customizer
| Field Summary | |
|---|---|
static String |
PROP_DATA_VALID
|
static String |
PROP_ERROR_MESSAGE
|
static String |
PROP_FORCE_READ_ONLY
This property is recognized as clientProperty ( JComponent.putClientProperty(java.lang.Object, java.lang.Object))
and instructs the Customizer to render all fields disabled or make sure
by other means, that the underlying bean is not modified when the user
changes the UI. |
static String |
PROP_MODIFIED
|
static String |
PROP_UI_PROPERTIES
Additional UI properties to be set on the customizer - if it is not the same object as the DFCustomizer impl class. |
| Method Summary | |
|---|---|
void |
applyChanges()
Apply the changes and set all properties to edited object. |
void |
applyChanges(DFEnvironmentRW env)
Apply the changes and set all properties to edited object. |
void |
cancelChanges()
Cancel the changes and refresh all input fields from the edited object. |
String |
getErrorMessage()
Return the error message when customizer is not valid |
DFLockable |
getLockable()
Get lockable for customized item |
boolean |
isDataValid()
Is the currently filled values valid? |
boolean |
isModified()
Are input fields currently modified and not stored to edited object? |
| Methods inherited from interface java.beans.Customizer |
|---|
addPropertyChangeListener, removePropertyChangeListener, setObject |
| Field Detail |
|---|
static final String PROP_FORCE_READ_ONLY
JComponent.putClientProperty(java.lang.Object, java.lang.Object))
and instructs the Customizer to render all fields disabled or make sure
by other means, that the underlying bean is not modified when the user
changes the UI. The customizer in this mode can be used to present bean's
properties
static final String PROP_DATA_VALID
static final String PROP_MODIFIED
static final String PROP_ERROR_MESSAGE
static final String PROP_UI_PROPERTIES
| Method Detail |
|---|
boolean isDataValid()
boolean isModified()
String getErrorMessage()
void applyChanges()
IllegalStateException - when isDataValid is falsevoid applyChanges(DFEnvironmentRW env)
env -
IllegalStateException - when isDataValid is falseDFLockable getLockable()
void cancelChanges()
|
com.im.commons 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||