Package com.iizigo.prop
Class PropertyEditorInfo
java.lang.Object
com.iizigo.prop.PropertyEditorInfo
- All Implemented Interfaces:
- Cloneable
Class used to map property name to texts.
- Author:
- Christopher Mindus
- Nested Class SummaryNested ClassesModifier and TypeClassDescription- static classClass used to hold information about an edited item during creation.
- Field SummaryFieldsModifier and TypeFieldDescription- final AtomThe property Atom, null for special ones.- final StringThe default property value.- final StringThe definition name in the properties file.- final String[]Options for the composite editor, null for none.- final IEditedPropertyEntry- <?, - ?> Class providing the property editor.- final StringThe group.- final IGroupTextFormatterThe group formatter, null for none.- final StringThe group text prompt.- final StringThe group tool tip text.- final booleanPrivate property flag.The required flag.The GProp class.- final StringThe name of the property.- final PropertyEditorSetupThe property editor object.- final StringThe text prompt.- final StringThe tooltip text.- final IEntryValidatorThe validator/property converter, null if none.
- Constructor SummaryConstructorsConstructorDescriptionDynamic creation of a editable property item for the Java Action Actor.- PropertyEditorInfo- (PropertyEditorSetup pes, String propertyName, String definitionName, PropertyEditorInfoOptions options) Constructor.
- Method SummaryModifier and TypeMethodDescription- copyForParent- (String altParentPropertyName) Creates a copy of the instance with an alternate parent.- createControls- (PropertyEditor editor, Composite entryPart, com.iizigo.prop.PropertyEditorLayout pl, MultiPropLabel mlabel, DefinedButton definedButton, PropertyEditor.Node node, PropCnr[] containers) Creates the controls required.- getCombinedPropertyEditorInfos- (PropCnr[] pcs, ArrayList<PropertyEditorInfo>[] infosArray) Creates the combined EditProperties for an array of properties.- getCombinedPropertyEditorInfos- (PropCnr pc, ArrayList<PropertyEditorInfo> infosArray) Creates the combined EditProperties for a single property that are edited.Gets the group info.Gets the parent property name that must be present, null for none.- static boolean- hasAtLeastOnePropertyInGroup- (Collection<PropertyEditorInfo> infos, String[] propertyNames) Helper to check for at least one property in group.- boolean- isName()Checks if this is the property name editor.- booleanChecks if this is a special property for extends, or the property name itself etc.- static String- verifyPropertiesPresentInGroup- (Collection<PropertyEditorInfo> infos, String[] propertyNames) Helper to verify properties are present for a group.
- Field Details- propertyNameThe name of the property.
- definitionNameThe definition name in the properties file.
- atomThe property Atom, null for special ones.
- optionsThe required flag.
- textPromptThe text prompt.
- toolTipTextThe tooltip text.
- groupThe group.
- groupTextPromptThe group text prompt.
- groupToolTipTextThe group tool tip text.
- propertyClassThe GProp class.
- defaultPropertyValueThe default property value.
- editPropertyClass providing the property editor.
- editOptionsOptions for the composite editor, null for none.
- validatorThe validator/property converter, null if none.
- groupFormatterThe group formatter, null for none.
- setupThe property editor object.
- isPrivatepublic final boolean isPrivatePrivate property flag.
 
- Constructor Details- PropertyEditorInfopublic PropertyEditorInfo- (PropertyEditorSetup pes, String propertyName, String definitionName, PropertyEditorInfoOptions options) Constructor.
- PropertyEditorInfoDynamic creation of a editable property item for the Java Action Actor.- Parameters:
- jap- The annotation.
- Throws:
- IllegalArgumentException- For errors.
- ParseException- For value parsing errors.
 
 
- Method Details- getGroupInfoGets the group info.- Returns:
- The group info, null for none.
 
- getParentPropertyNameGets the parent property name that must be present, null for none.
- copyForParentCreates a copy of the instance with an alternate parent.
- createControlspublic MultiPropEditor createControls- (PropertyEditor editor, Composite entryPart, com.iizigo.prop.PropertyEditorLayout pl, MultiPropLabel mlabel, DefinedButton definedButton, PropertyEditor.Node node, PropCnr[] containers) Creates the controls required.
- verifyPropertiesPresentInGrouppublic static String verifyPropertiesPresentInGroup- (Collection<PropertyEditorInfo> infos, String[] propertyNames) Helper to verify properties are present for a group.- Parameters:
- infos- The array of edit's for the property.
- propertyNames- The property names to verify.
- Returns:
- null for no error, otherwise the missing name(s) (comma separated preceded with "missing property name:").
 
- hasAtLeastOnePropertyInGrouppublic static boolean hasAtLeastOnePropertyInGroup- (Collection<PropertyEditorInfo> infos, String[] propertyNames) Helper to check for at least one property in group.- Parameters:
- infos- The array of edit's for the property.
- propertyNames- The names to verify.
- Returns:
- null for no error, otherwise the missing name(s) (comma separated preceded with "missing property name:").
 
- isNamepublic boolean isName()Checks if this is the property name editor.
- isSpecialpublic boolean isSpecial()Checks if this is a special property for extends, or the property name itself etc. Special properties cannot be edited together in multi-edit's.
- getCombinedPropertyEditorInfospublic static ArrayList<PropertyEditorInfo.CreateItem> getCombinedPropertyEditorInfos- (PropCnr pc, ArrayList<PropertyEditorInfo> infosArray) Creates the combined EditProperties for a single property that are edited.
- getCombinedPropertyEditorInfospublic static ArrayList<PropertyEditorInfo.CreateItem> getCombinedPropertyEditorInfos- (PropCnr[] pcs, ArrayList<PropertyEditorInfo>[] infosArray) Creates the combined EditProperties for an array of properties.