org.gvsig.annotation.app.extension

Class AnnotationPreferencesPage

    • Constructor Detail

      • AnnotationPreferencesPage

        public AnnotationPreferencesPage()
        Creates a new panel containing View preferences settings.
    • Method Detail

      • initializeValues

        public void initializeValues()
        Description copied from interface: IPreference
        Initializes the components of this preferences page to the last settings.
      • getID

        public String getID()
        Description copied from interface: IPreference
        Returns an identifier for this preferences page that is used to reference it inside the Map.
        Returns:
        String, you'd typically use any kind of this.getClass().getName();
      • getTitle

        public String getTitle()
        Description copied from interface: IPreference
        Returns an string containing the title of the preferences page. This string will be shown whether in the tree entry or in the page header.
        Returns:
        String, the title of the page
      • getPanel

        public JPanel getPanel()
        Description copied from interface: IPreference
        The page must be contained in a JPanel and whatever to be shown will be returned by this function.

        The content is added, removed and repainted automatically upon the events received from the mouse. So, you only have to care about the content and the functionality to make it

        having sense.
        Returns:
        JPanel holding the contents to be shown in the page.
      • storeValues

        public void storeValues()
                         throws StoreException
        Description copied from class: AbstractPreferencePage

        Gathers the configurations and stores them in the system.

        storeValues() and setChangesApplied() are methods from AbstractPreferencePage not from IPreference. They both perform in combination what saveValue() should do by itself, but they exist for performance issues. In fact, you should not invoke them outside your PreferencePage class, you only need to code them.

        Specified by:
        storeValues in class AbstractPreferencePage
        Throws:
        StoreException
      • initializeDefaults

        public void initializeDefaults()
        Description copied from interface: IPreference
        Restores the default values of this preferences page's settings. Values are not saved until saveValues() is executed
      • getIcon

        public ImageIcon getIcon()
        Description copied from interface: IPreference
        Returns the image that will be shown in the header of this preferences page
        Returns:
      • isValueChanged

        public boolean isValueChanged()
        Description copied from interface: IPreference
        Tells if this preference page has changed any value (used for storing values when necessary)
        Returns:
        True if any value has changed, false otherwise.
      • setChangesApplied

        public void setChangesApplied()
        Description copied from class: AbstractPreferencePage

        After this method is invoked, the Preference page must return true as the result of invoking isValueChanged() method. It tells that the values have been saved in the system.

        storeValues() and setChangesApplied() are methods from AbstractPreferencePage not from IPreference. They both perform in combination what storeValue() should by itself, but they exist for performance issues. In fact, you should not invoke them outside your PreferencePage class, you only need to code them.

        Specified by:
        setChangesApplied in class AbstractPreferencePage