|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.structure.FxAssignment
com.flexive.shared.structure.FxPropertyAssignment
com.flexive.shared.structure.FxPropertyAssignmentEdit
public class FxPropertyAssignmentEdit
FxPropertyAssignment for editing
| Field Summary |
|---|
| Fields inherited from class com.flexive.shared.structure.FxPropertyAssignment |
|---|
ACL, defaultLang, defaultValue, flatStorageMapping, property |
| Fields inherited from class com.flexive.shared.structure.FxAssignment |
|---|
alias, baseAssignment, defaultMultCalc, defaultMultiplicity, enabled, hint, label, multiplicity, NO_BASE, NO_PARENT, options, parentGroupAssignment, position, POSITION_BOTTOM, ROOT_BASE, scriptMapping, TYPE_GROUP, TYPE_PROPERTY, XPath |
| Constructor Summary | |
|---|---|
FxPropertyAssignmentEdit(FxPropertyAssignment pa)
Create an editable instance from an existing FxPropertyAssignment |
|
FxPropertyAssignmentEdit(FxProperty property,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
Create a new FxPropertyAssignmentEdit from an existing property for a given type with a new alias and a given parentXPath |
|
| Method Summary | |
|---|---|
FxPropertyAssignmentEdit |
clearDefaultLanguage()
Reset the default language to the system language |
void |
clearDefaultValue()
Clear the default value |
void |
clearOption(java.lang.String key)
Clear an option entry |
static FxPropertyAssignmentEdit |
createNew(FxPropertyAssignment pa,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
Create a new FxPropertyAssignmentEdit from an existing FxPropertyAssignment as a new one for a given type with a new alias and a given parentXPath |
static FxPropertyAssignmentEdit |
createNew(FxPropertyAssignment pa,
FxType type,
java.lang.String alias,
java.lang.String parentXPath,
FxAssignment parent)
Create a new FxPropertyAssignmentEdit from an existing FxPropertyAssignment as a new one for a given type with a new alias and a given parentXPath |
static FxPropertyAssignmentEdit |
createNew(java.lang.String property,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
Create a new FxPropertyAssignmentEdit from an existing property for a given type with a new alias and a given parentXPath |
protected java.util.List<FxStructureOption> |
getAllAvailableOptions()
Returns a new List of all available options. |
FxPropertyEdit |
getPropertyEdit()
Returns the property of this assignment as editable. |
boolean |
isNew()
|
static FxPropertyAssignmentEdit |
reuse(java.lang.String originalAssignment,
java.lang.String type,
java.lang.String parentXPath)
Convenience method to create a new FxPropertyAssignmentEdit from an existing FxPropertyAssignment as a new one for a given type with a new alias and a given parentXPath |
static FxPropertyAssignmentEdit |
reuse(java.lang.String originalAssignment,
java.lang.String type,
java.lang.String parentXPath,
java.lang.String alias)
Convenience method to create a new FxPropertyAssignmentEdit from an existing FxPropertyAssignment as a new one for a given type with a new alias and a given parentXPath |
FxPropertyAssignmentEdit |
save()
Save this assignment and return the saved instance. |
FxPropertyAssignmentEdit |
setACL(ACL ACL)
|
FxPropertyAssignmentEdit |
setAlias(java.lang.String alias)
Set the alias of this property assignment. |
FxPropertyAssignmentEdit |
setDefaultLanguage(long language)
Set a default language. |
FxPropertyAssignmentEdit |
setDefaultMultiplicity(int defaultMultiplicity)
Set the default multiplicity (used i.e. |
FxPropertyAssignmentEdit |
setDefaultValue(FxValue defaultValue)
Set the default value for this property assignment |
FxPropertyAssignmentEdit |
setEnabled(boolean enabled)
Set this property assignment as (temporary) disabled - it will not be initialized when creating new instances, etc. |
FxPropertyAssignmentEdit |
setHint(FxString hint)
Set the hint message |
FxPropertyAssignmentEdit |
setInOverview(boolean inOverview)
Set overview appearance setting |
FxPropertyAssignmentEdit |
setLabel(FxString label)
Setter for the label |
FxPropertyAssignmentEdit |
setMaxLength(int maxLength)
Shortcut to set the maximum input length (if applicable to the component) |
FxPropertyAssignmentEdit |
setMultiLang(boolean multiLang)
Should this assignment support multilingual data? |
FxPropertyAssignmentEdit |
setMultiLine(boolean multiLine)
Set multiline display ability |
FxPropertyAssignmentEdit |
setMultiplicity(FxMultiplicity multiplicity)
Set the multiplicity of this assignment |
FxPropertyAssignmentEdit |
setOption(java.lang.String key,
boolean value)
Set a boolean option with defaults of overridable & isInherited == true |
FxPropertyAssignmentEdit |
setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
boolean value)
Set a boolean option |
FxPropertyAssignmentEdit |
setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
java.lang.String value)
Set an option |
FxPropertyAssignmentEdit |
setOption(java.lang.String key,
java.lang.String value)
Set an option with defaults of overridable & isInherited == true |
void |
setOptions(java.util.List<FxStructureOption> options)
Assign options |
void |
setParentGroupAssignment(FxGroupAssignment parent)
Sets the parent group assignment. |
FxPropertyAssignmentEdit |
setPosition(int position)
Set the position of this assignment (within the same parent group). |
FxPropertyAssignmentEdit |
setSearchable(boolean searchable)
Set if this property be used in the visual query editor (UI hint) |
FxPropertyAssignmentEdit |
setUseHTMLEditor(boolean useHTMLEditor)
Set if to use an HTML editor to edit values of this property? |
FxPropertyAssignmentEdit |
setXPath(java.lang.String XPath)
Set the XPath of this assignment - this is used mainly internally and affects new assignments only |
| Methods inherited from class com.flexive.shared.structure.FxPropertyAssignment |
|---|
asEditable, createEmptyData, createEmptyData, createRandomData, getACL, getDefaultLanguage, getDefaultValue, getDerivedAssignments, getEmptyValue, getFlatStorageMapping, getMaxLength, getMultiLines, getMultiplicity, getOption, getProperty, hasAssignmentDefaultValue, hasDefaultLanguage, hasMaxLength, hasOption, isFlatStorageEntry, isInOverview, isMultiLang, isMultiLine, isOverridingPropertyACL, isOverridingPropertyMultiplicity, isReferenceSelectOne, isSearchable, isUseHTMLEditor, isValid |
| Methods inherited from class com.flexive.shared.structure.FxAssignment |
|---|
_setSystemInternal, compareTo, createEmptyData, equals, getAlias, getAssignedType, getAssignedTypeId, getBaseAssignmentId, getDefaultMultiplicity, getDisplayLabel, getDisplayName, getDisplayName, getHint, getId, getLabel, getOptions, getParentGroupAssignment, getPosition, getScriptMapping, getXPath, hashCode, hasParentGroupAssignment, hasScriptMapping, hasScriptMappings, isDerivedAssignment, isDerivedFrom, isEnabled, isSystemInternal, resolveDependencies, resolveParentDependencies, resolvePreloadDependencies, resolveReferences, sort, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FxPropertyAssignmentEdit(FxPropertyAssignment pa)
pa - existing FxPropertyAssignment
public FxPropertyAssignmentEdit(FxProperty property,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
property - the property nametype - type to assign italias - new aliasparentXPath - parent XPath within the type to assign| Method Detail |
|---|
public boolean isNew()
public void clearDefaultValue()
public FxPropertyAssignmentEdit setACL(ACL ACL)
throws FxInvalidParameterException
FxInvalidParameterExceptionpublic FxPropertyAssignmentEdit setDefaultValue(FxValue defaultValue)
defaultValue - default value
public FxPropertyAssignmentEdit setOption(java.lang.String key,
java.lang.String value)
throws FxInvalidParameterException
key - option keyvalue - value of the option
FxInvalidParameterException - if the property does not allow overriding
public FxPropertyAssignmentEdit setOption(java.lang.String key,
boolean value)
throws FxInvalidParameterException
key - option keyvalue - value of the option
FxInvalidParameterException - if the property does not allow overriding
public FxPropertyAssignmentEdit setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
java.lang.String value)
throws FxInvalidParameterException
key - the option keyoverridable - the overridable statusisInherited - the isInherited status (inherited by derived assignments)value - the option value
FxInvalidParameterException - on errors
public FxPropertyAssignmentEdit setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
boolean value)
throws FxInvalidParameterException
key - the option keyoverridable - overridable statusisInherited - the isInherited status (inherited by derived assignments)value - the option value
FxInvalidParameterException - on errorspublic void clearOption(java.lang.String key)
key - option namepublic void setOptions(java.util.List<FxStructureOption> options)
options - options to assign
public FxPropertyAssignmentEdit setMultiLang(boolean multiLang)
throws FxInvalidParameterException
multiLang - multi lingual data supported?
FxInvalidParameterException - on errorspublic FxPropertyAssignmentEdit setDefaultLanguage(long language)
language - the default language
public FxPropertyAssignmentEdit clearDefaultLanguage()
public FxPropertyAssignmentEdit setSearchable(boolean searchable)
throws FxInvalidParameterException
searchable - property can be used in the visual query editor
FxInvalidParameterException - if overriding is not allowed
public FxPropertyAssignmentEdit setInOverview(boolean inOverview)
throws FxInvalidParameterException
inOverview - overview appearance setting
FxInvalidParameterException - if not allowed to override
public FxPropertyAssignmentEdit setUseHTMLEditor(boolean useHTMLEditor)
throws FxInvalidParameterException
useHTMLEditor - use HTML editor to edit values of this property?
FxInvalidParameterException - if not allowed to override
public FxPropertyAssignmentEdit setMultiLine(boolean multiLine)
throws FxInvalidParameterException
multiLine - render property in multiple lines?
FxInvalidParameterException - on errors
public FxPropertyAssignmentEdit setMaxLength(int maxLength)
throws FxInvalidParameterException
maxLength - desired maximum input length
FxInvalidParameterException - on errorspublic FxPropertyAssignmentEdit setEnabled(boolean enabled)
enabled - enabled flag
public FxPropertyAssignmentEdit setMultiplicity(FxMultiplicity multiplicity)
throws FxInvalidParameterException
multiplicity - new multiplicity
FxInvalidParameterException - on errors
public FxPropertyAssignmentEdit setDefaultMultiplicity(int defaultMultiplicity)
throws FxInvalidParameterException
defaultMultiplicity - the default multiplicity
FxInvalidParameterException - if the defaultMultiplicity is not within the range of min and maxpublic FxPropertyAssignmentEdit setPosition(int position)
position - position within the parent group
public FxPropertyAssignmentEdit setAlias(java.lang.String alias)
throws FxInvalidParameterException
alias - the alias of this assignment
FxInvalidParameterException - on errors
public FxPropertyAssignmentEdit setXPath(java.lang.String XPath)
throws FxInvalidParameterException
XPath - the XPath to set
FxInvalidParameterException - on errorspublic FxPropertyAssignmentEdit setLabel(FxString label)
label - label to set
public FxPropertyAssignmentEdit setHint(FxString hint)
hint - hint message
public static FxPropertyAssignmentEdit createNew(FxPropertyAssignment pa,
FxType type,
java.lang.String alias,
java.lang.String parentXPath,
FxAssignment parent)
throws FxNotFoundException,
FxInvalidParameterException
pa - original property assignmenttype - type to assign italias - new aliasparentXPath - parent XPath within the type to assignparent - optional parent assignment if already known (prevents lookup of parentXPath if valid)
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalid
public static FxPropertyAssignmentEdit createNew(FxPropertyAssignment pa,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
throws FxNotFoundException,
FxInvalidParameterException
pa - original property assignmenttype - type to assign italias - new aliasparentXPath - parent XPath within the type to assign
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalid
public static FxPropertyAssignmentEdit createNew(java.lang.String property,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
throws FxNotFoundException,
FxInvalidParameterException
property - the property nametype - type to assign italias - new aliasparentXPath - parent XPath within the type to assign
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalid
public static FxPropertyAssignmentEdit reuse(java.lang.String originalAssignment,
java.lang.String type,
java.lang.String parentXPath,
java.lang.String alias)
throws FxNotFoundException,
FxInvalidParameterException
originalAssignment - the original assignments XPath (like ROOT/CAPTION)type - name of the type to assign itparentXPath - parent XPath within the type to assignalias - new alias
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalid
public static FxPropertyAssignmentEdit reuse(java.lang.String originalAssignment,
java.lang.String type,
java.lang.String parentXPath)
throws FxNotFoundException,
FxInvalidParameterException
originalAssignment - the original assignments XPath (like ROOT/CAPTION)type - name of the type to assign itparentXPath - parent XPath within the type to assign
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalidpublic void setParentGroupAssignment(FxGroupAssignment parent)
parent - the parent group assignment.public FxPropertyEdit getPropertyEdit()
public FxPropertyAssignmentEdit save()
throws FxApplicationException
FxApplicationException - on errorsprotected java.util.List<FxStructureOption> getAllAvailableOptions()
FxPropertyAssignment.getOption(key) method
is used. If an option is contained in the returned List then hasOption(key)
==true, otherwise false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||