AttributeForm.js | |
Constants | |
i18n_form_button_commit_text | {String} Button text |
i18n_form_button_commit_tooltip | {String} Button tooltip |
i18n_form_button_cancel_text | {String} Button text |
i18n_form_button_cancel_tooltip | {String} Button tooltip |
Properties | |
DEFAULT_WINDOW_OFFSET | {Object} The default offset value in pixels of the window. |
DEFAULT_WINDOW_OPTIONS | {Object} The default options of the window to be opened |
DEFAULT_DEFAULTS | {String} Default default properties of the items of this FormPanel |
window | {Ext.Window} The window container created if if this.inwindow=true |
commiting | {Boolean} Used to validate commits made from this FormPanel. |
Functions | |
addOwner | Called right after this FeaturePanel has been added to an owner. |
getActiveOwner | Return the current activated owner (OpenLayers.Control). |
setSingleFeature | Set the singlefeature property. |
showFeaturePanel | Called by an owner. |
setWindowPosition | Sets the position of the window so that it’s the farest away form the selected feature(s) to be able to see them. |
hideFeaturePanel | Called by an owner. |
parseFeatureAttributesToFormFields | Copy each feature attributes in this form if it has a corresponding form field. |
parseFormFieldsToFeatureAttributes | Copy each form field value to its corresponding feature attribute. |
parseFormFieldsToFeatureAttributes | Called when the user click this form “Commit” button. |
setWindowPosition: function( features )
Sets the position of the window so that it’s the farest away form the selected feature(s) to be able to see them. Called just before showing window.
The position is relative to the GeoExt.MapPanel. Its id must be set to ‘gp’+MapName, like : ‘gpDefaultMap’.
N.B. currently supports only ONE feature
features | {Array(<OpenLayers.Vector.Feature>)} |
Called right after this FeaturePanel has been added to an owner.
addOwner: function( owner )
Return the current activated owner (OpenLayers.Control).
getActiveOwner: function()
Set the singlefeature property.
setSingleFeature: function( singlefeature )
Called by an owner.
showFeaturePanel: function( features )
Sets the position of the window so that it’s the farest away form the selected feature(s) to be able to see them.
setWindowPosition: function( features )
Called by an owner.
hideFeaturePanel: function()
Copy each feature attributes in this form if it has a corresponding form field.
parseFeatureAttributesToFormFields: function( feature )
Copy each form field value to its corresponding feature attribute.
parseFormFieldsToFeatureAttributes: function( feature )