com.highqsoft.fwk.dialog

Class FwkPropertyEditorDialogPaneValue

    • Field Detail

      • properties

        protected java.util.Map properties
      • disabledProperties

        protected java.util.Map disabledProperties
      • propertyAttributes

        protected java.util.Map propertyAttributes
    • Constructor Detail

      • FwkPropertyEditorDialogPaneValue

        public FwkPropertyEditorDialogPaneValue()
      • FwkPropertyEditorDialogPaneValue

        public FwkPropertyEditorDialogPaneValue(boolean sorted)
      • FwkPropertyEditorDialogPaneValue

        public FwkPropertyEditorDialogPaneValue(java.lang.String ident,
                                        java.util.Map properties)
        The constructor that receives the initial properties.
        Parameters:
        properties - The initial properties.
        ident - A name to distinguish two or more identical panes within one dialog.
    • Method Detail

      • getProperty

        public java.lang.Object getProperty(java.lang.String propertyName)
        Retrieves the property that belongs to the specified property name.
        Specified by:
        getProperty in interface FwkDialogPaneValueInterface
        Overrides:
        getProperty in class FwkDialogPaneValue
        Parameters:
        propertyName - The name name of the property.
        Returns:
        propertyValue The value of the property.
      • getPropertyAttribute

        public java.lang.Object getPropertyAttribute(java.lang.String propertyName,
                                            java.lang.String attrName)
        Retrieves a specific attribute of a property.
        Specified by:
        getPropertyAttribute in interface FwkPropertyEditorDialogPaneValueInterface
        Parameters:
        propertyName - The name name of the property.
        attrName - The attribute name.
        Returns:
        attrMap The attribute map of this property.
      • getPropertyAttributes

        public java.util.Map getPropertyAttributes(java.lang.String propertyName)
        Retrieves the attributes that belong to the specified property.
        Specified by:
        getPropertyAttributes in interface FwkPropertyEditorDialogPaneValueInterface
        Parameters:
        propertyName - The name name of the property.
        Returns:
        attrMap The attribute map of this property.
      • setProperty

        public void setProperty(java.lang.String propertyName,
                       java.lang.Object propertyValue)
        Sets a property (name-value pair).
        Specified by:
        setProperty in interface FwkDialogPaneValueInterface
        Overrides:
        setProperty in class FwkDialogPaneValue
        Parameters:
        propertyName - The name name of the property.
        propertyValue - The new value of the property.
      • setPropertyAttribute

        public void setPropertyAttribute(java.lang.String propertyName,
                                java.lang.String attrName,
                                java.lang.Object attrValue)
        Sets the attribute of a property.
        Specified by:
        setPropertyAttribute in interface FwkPropertyEditorDialogPaneValueInterface
        Parameters:
        propertyName - The name name of the property.
        attrName - The name of the property attribute.
        attrValue - The value of the property attribute.
      • setPropertyAttributes

        public void setPropertyAttributes(java.lang.String propertyName,
                                 java.util.Map attrMap)
        Sets the attributes of a property. The existing property attribute map is replaced by the new one. Values from the old map are lost.
        Specified by:
        setPropertyAttributes in interface FwkPropertyEditorDialogPaneValueInterface
        Parameters:
        propertyName - The name name of the property.
        propertyAttributes - The property attribute map.