Class FileChooserBookmarksManagementPanel

    • Constructor Detail

      • FileChooserBookmarksManagementPanel

        public FileChooserBookmarksManagementPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Description copied from class: BasePanel
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
      • loadAll

        protected List<com.googlecode.jfilechooserbookmarks.Bookmark> loadAll()
        Loads all the objects.
        Overrides:
        loadAll in class AbstractManagementPanelWithProperties<com.googlecode.jfilechooserbookmarks.Bookmark>
        Returns:
        all available Objects
      • store

        protected boolean store​(com.googlecode.jfilechooserbookmarks.Bookmark value)
        Stores the object.
        Overrides:
        store in class AbstractManagementPanelWithProperties<com.googlecode.jfilechooserbookmarks.Bookmark>
        Parameters:
        value - the value to store
        Returns:
        true if successfully stored
      • remove

        protected boolean remove​(com.googlecode.jfilechooserbookmarks.Bookmark value)
        Removes the object.
        Overrides:
        remove in class AbstractManagementPanelWithProperties<com.googlecode.jfilechooserbookmarks.Bookmark>
        Parameters:
        value - the value to remove
        Returns:
        true if successfully removed
      • createKey

        protected String createKey​(com.googlecode.jfilechooserbookmarks.Bookmark value)
        Creates the key for storing the object in the properties.
        Specified by:
        createKey in class AbstractManagementPanelWithProperties<com.googlecode.jfilechooserbookmarks.Bookmark>
        Parameters:
        value - the object to create the key from
        Returns:
        the generated key
      • fromString

        protected com.googlecode.jfilechooserbookmarks.Bookmark fromString​(String s)
        Turns the string obtained from the properties file into an object.
        Specified by:
        fromString in class AbstractManagementPanelWithProperties<com.googlecode.jfilechooserbookmarks.Bookmark>
        Parameters:
        s - the string to parse
        Returns:
        always null
      • toString

        protected String toString​(com.googlecode.jfilechooserbookmarks.Bookmark value)
        Turns the object into a string to be stored in the properties file.
        Specified by:
        toString in class AbstractManagementPanelWithProperties<com.googlecode.jfilechooserbookmarks.Bookmark>
        Parameters:
        value - the object to convert
        Returns:
        always the name
      • getManagedClass

        protected Class getManagedClass()
        Returns the class that is being managed.
        Specified by:
        getManagedClass in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
        Returns:
        the class being managed
      • clear

        protected void clear()
        Resets the input fields.
        Specified by:
        clear in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
      • fieldsToObject

        protected com.googlecode.jfilechooserbookmarks.Bookmark fieldsToObject()
        Turns the fields into an object.
        Specified by:
        fieldsToObject in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
        Returns:
        the generated object
      • objectToFields

        protected void objectToFields​(com.googlecode.jfilechooserbookmarks.Bookmark value)
        Updates the field with the specified object.
        Specified by:
        objectToFields in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
        Parameters:
        value - the object to display
      • canClearFields

        protected boolean canClearFields()
        Returns whether the fields can be cleared, i.e., if there is any input.
        Specified by:
        canClearFields in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
        Returns:
        true if input can be cleared
      • isReadOnly

        protected boolean isReadOnly()
        Returns whether modified data cannot be stored.
        Specified by:
        isReadOnly in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
        Returns:
        true if storing is not available
      • canAddObject

        protected boolean canAddObject()
        Returns whether all the required fields are set to add the object.
        Specified by:
        canAddObject in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>
        Returns:
        true if required fields are filled in
      • updateButtons

        protected void updateButtons()
        Updates the enabled state of the buttons.
        Overrides:
        updateButtons in class AbstractManagementPanel<com.googlecode.jfilechooserbookmarks.Bookmark>