Class DockerContainersPanel

    • Field Detail

      • m_TextContainerID

        protected adams.gui.core.BaseTextField m_TextContainerID
        the container ID field.
      • m_TextImage

        protected adams.gui.core.BaseTextField m_TextImage
        the image field.
      • m_TextCommand

        protected adams.gui.core.BaseTextField m_TextCommand
        the command field.
      • m_TextCreated

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

        protected adams.gui.core.BaseTextField m_TextStatus
        the status field.
      • m_TextPorts

        protected adams.gui.core.BaseTextField m_TextPorts
        the ports field.
      • m_TextNames

        protected adams.gui.core.BaseTextField m_TextNames
        the names field.
      • m_ButtonStop

        protected adams.gui.core.BaseButton m_ButtonStop
        the button for stopping selected containers.
      • m_ButtonDelete

        protected adams.gui.core.BaseButton m_ButtonDelete
        the button for deleting selected containers.
      • m_ButtonPruneStopped

        protected adams.gui.core.BaseButton m_ButtonPruneStopped
        the button for pruning stopped containers.
    • Constructor Detail

      • DockerContainersPanel

        public DockerContainersPanel()
    • Method Detail

      • initGUI

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

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

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

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

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

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

        protected void objectToFields​(DockerContainer value)
        Updates the field with the specified object.
        Specified by:
        objectToFields in class adams.gui.tools.AbstractManagementPanel<DockerContainer>
        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<DockerContainer>
      • getListContainersFlow

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

        protected adams.flow.control.Flow getStopContainersFlow​(String[] ids)
        Creates the flow for stopping docker containers.
        Parameters:
        ids - the IDs of the containers to stop
        Returns:
        the flow
      • getPruneStoppedContainersFlow

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

        protected adams.flow.control.Flow getDeleteContainersFlow​(String[] ids)
        Creates the flow for deleting docker containers.
        Parameters:
        ids - the IDs of the containers to remove
        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<DockerContainer> loadAll()
        Loads all the objects.
        Specified by:
        loadAll in class adams.gui.tools.AbstractManagementPanel<DockerContainer>
        Returns:
        all available Objects
      • stopContainers

        protected void stopContainers()
        Stops the selected containers.
      • deleteContainers

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

        protected void deleteContainers()
        Deletes the selected containers.
      • pruneStoppedContainers

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

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

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

        protected boolean remove​(DockerContainer value)
        Removes the object.
        Specified by:
        remove in class adams.gui.tools.AbstractManagementPanel<DockerContainer>
        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<DockerContainer>
        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<DockerContainer>
        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<DockerContainer>
        Returns:
        true if required fields are filled in