Class DockerImagesPanel

    • Field Detail

      • m_TextRepository

        protected adams.gui.core.BaseTextField m_TextRepository
        the repository field.
      • m_TextTag

        protected adams.gui.core.BaseTextField m_TextTag
        the tag field.
      • m_TextImageID

        protected adams.gui.core.BaseTextField m_TextImageID
        the image ID field.
      • m_TextCreated

        protected adams.gui.core.BaseTextField m_TextCreated
        the created field.
      • m_TextSize

        protected adams.gui.core.BaseTextField m_TextSize
        the size field.
      • m_ButtonDelete

        protected adams.gui.core.BaseButton m_ButtonDelete
        the button for deleting selected images.
      • m_ButtonPrune

        protected adams.gui.core.BaseButton m_ButtonPrune
        the button for pruning images.
    • Constructor Detail

      • DockerImagesPanel

        public DockerImagesPanel()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class adams.gui.tools.AbstractManagementPanel<DockerImage>
      • addFields

        protected void addFields​(adams.gui.core.ParameterPanelWithButtons panel)
        For adding all the fields.
        Specified by:
        addFields in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Parameters:
        panel - the panel to add the fields to
      • newTableModel

        protected DockerImagesPanel.TableModel newTableModel()
        Returns an instance of a new table model.
        Specified by:
        newTableModel in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Returns:
        the table model
      • getManagedClass

        protected Class getManagedClass()
        Returns the class that is being managed.
        Specified by:
        getManagedClass in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Returns:
        the class being managed
      • clear

        protected void clear()
        Resets the input fields.
        Specified by:
        clear in class adams.gui.tools.AbstractManagementPanel<DockerImage>
      • fieldsToObject

        protected DockerImage fieldsToObject()
        Turns the fields into an object.
        Specified by:
        fieldsToObject in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Returns:
        the generated object
      • objectToFields

        protected void objectToFields​(DockerImage value)
        Updates the field with the specified object.
        Specified by:
        objectToFields in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Parameters:
        value - the object to display
      • updateButtons

        protected void updateButtons()
        Updates the enabled state of the widgets.
        Overrides:
        updateButtons in class adams.gui.tools.AbstractManagementPanel<DockerImage>
      • getListImagesFlow

        protected adams.flow.control.Flow getListImagesFlow()
        Creates the flow for retrieving the docker image data.
        Returns:
        the flow
      • getDeleteImagesFlow

        protected adams.flow.control.Flow getDeleteImagesFlow​(String[] ids)
        Creates the flow for deleting docker images.
        Parameters:
        ids - the IDs of the images to remove
        Returns:
        the flow
      • getPruneImagesFlow

        protected adams.flow.control.Flow getPruneImagesFlow()
        Creates the flow for pruning stopped docker containers.
        Returns:
        the flow
      • cleanUp

        protected void cleanUp​(adams.flow.control.Flow flow)
        Frees up memory.
        Parameters:
        flow - the flow to clean up
      • loadAll

        protected List<DockerImage> loadAll()
        Loads all the objects.
        Specified by:
        loadAll in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Returns:
        all available Objects
      • deleteImages

        protected void deleteImages​(String[] ids)
        Deletes the images with the specified IDs.
        Parameters:
        ids - the IDs to delete
      • deleteImages

        protected void deleteImages()
        Deletes the selected images.
      • pruneImages

        protected void pruneImages()
        Prunes all stopped containers.
      • exists

        protected boolean exists​(DockerImage value)
        Checks whether the object already exists.
        Specified by:
        exists in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Parameters:
        value - the value to look for
        Returns:
        true if already available
      • store

        protected boolean store​(DockerImage value)
        Stores the object.
        Specified by:
        store in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Parameters:
        value - the value to store
        Returns:
        true if successfully stored
      • remove

        protected boolean remove​(DockerImage value)
        Removes the object.
        Specified by:
        remove in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        Parameters:
        value - the value to remove
        Returns:
        true if successfully removed
      • canClearFields

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

        protected boolean isReadOnly()
        Returns whether modified data cannot be stored.
        Specified by:
        isReadOnly in class adams.gui.tools.AbstractManagementPanel<DockerImage>
        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 adams.gui.tools.AbstractManagementPanel<DockerImage>
        Returns:
        true if required fields are filled in