|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.basics.util.AbstractFormManager
org.sandev.basics.util.RootedFormManager
public class RootedFormManager
An implementation of a UIFormManager used for working with a tree of non-persistent objects. This is typically used for structure editors, which also override dereference operations to translate them into movements within the tree.
| Field Summary | |
|---|---|
static java.lang.String |
BADREF_PREFIX
Default prefix text for output of each bad reference found. |
static java.lang.String |
BRANCH_DISALLOWED
Text for disallowed branching notification. |
static java.lang.String |
FIX_BADREFS_BEFORE_SAVE
Default output text added if bad references are found. |
static java.lang.String |
REF_VALIDATION_FAILURE
Default output text used if reference validation processing fails for any reason. |
| Fields inherited from class org.sandev.basics.util.AbstractFormManager |
|---|
CLASS_DISAMBIGUATION_PROMPT, FIELDVALIDATIONERRORCODE, FIX_FIELDS_BEFORE_SAVE, INVALID_FIELD_VALUE_PREFIX, RC_CANCELLED, RC_DONE, RC_QUERYING, uifa |
| Constructor Summary | |
|---|---|
RootedFormManager()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getBadReferenceFailureText()
Accessor for bad reference error. |
protected java.lang.String |
getBadReferencePrefix()
Accessor for bad reference prefix. |
protected java.lang.String |
getBranchDisallowedText()
Override this method to return custom text to display when branching is not possible. |
protected java.lang.String |
getReferenceValidationFailure()
Accessor for reference validation processing failure. |
protected boolean |
mergeChangesToParentBeforeAdd(UIFormContext uifc)
Merge or reject subtree editing of an unresolved parent. |
protected void |
resolveReferences(UIFormContext uifc,
UIFormOwner owner)
Validate references in the rootMsg. |
protected boolean |
supportsTopLevelAdd()
Returns true if this form manager allows new top level object instances to be created while in LISTING mode. |
protected boolean |
supportsTopLevelFind()
Returns true if this form manager allows other top level object instances to be found while in LISTING mode. |
protected void |
trackUpdates(SandUpdateMessage update,
UIFormContext uifc)
Lower level changes will have been merged into the root when they were added. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sandev.basics.util.UIFormManager |
|---|
disableUnsupportedActions, initFormAdaptor, processForm |
| Field Detail |
|---|
public static final java.lang.String BRANCH_DISALLOWED
public static final java.lang.String REF_VALIDATION_FAILURE
public static final java.lang.String FIX_BADREFS_BEFORE_SAVE
public static final java.lang.String BADREF_PREFIX
| Constructor Detail |
|---|
public RootedFormManager()
| Method Detail |
|---|
protected java.lang.String getBranchDisallowedText()
protected java.lang.String getReferenceValidationFailure()
protected java.lang.String getBadReferenceFailureText()
protected java.lang.String getBadReferencePrefix()
protected boolean mergeChangesToParentBeforeAdd(UIFormContext uifc)
throws UIFormManagerException
Examples:
Handling branching undo/merge operations requires holding a
tree of context information and is not supported at this level.
However a context tree is fairly typical for any GUI application
with a comprehensive undo action infrastructure, so this behavior
may be supported in extended classes.
mergeChangesToParentBeforeAdd in class AbstractFormManagerUIFormManagerException
protected void resolveReferences(UIFormContext uifc,
UIFormOwner owner)
throws UIFormManagerException
resolveReferences in class AbstractFormManagerUIFormManagerExceptionprotected boolean supportsTopLevelAdd()
AbstractFormManager
supportsTopLevelAdd in class AbstractFormManagerprotected boolean supportsTopLevelFind()
AbstractFormManager
supportsTopLevelFind in class AbstractFormManager
protected void trackUpdates(SandUpdateMessage update,
UIFormContext uifc)
throws UIFormManagerException
trackUpdates in class AbstractFormManagerUIFormManagerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||