allensoft.javacvs.client.ui.swing
Class DefaultGraphicalClient

java.lang.Object
  |
  +--allensoft.javacvs.client.ui.swing.DefaultGraphicalClient
All Implemented Interfaces:
GraphicalClient

public class DefaultGraphicalClient
extends java.lang.Object
implements GraphicalClient

Provides the features and implementation for the default graphical client. This class could be extended to provide new features for the browser or change the implementation of a particular feature.


Constructor Summary
DefaultGraphicalClient(CVSClient client)
          Creates a DefaultGraphicalClient that will perfrom requests using the supplied client.
 
Method Summary
protected  void add(java.awt.Frame parentFrame, java.io.File[] files)
          Adds the supplied files to the repository.
protected  void addAddRequests(java.awt.Frame parentFrame, CVSRequestBatch batch, java.io.File[] files)
          Adds add requests to the specified batch to add the specified files.
 void addCVSActions(CVSActionPool actionPool)
          Adds any actions this graphical client supports to the supplied action pool for operating on files that are under CVS control.
 void addDirectoryActions(CVSActionPool actionPool)
          Adds any actions this graphical client supports to the supplied action pool for operating on a single directory.
 void addGeneralActions(CVSActionPool actionPool)
          Adds any actions this graphical client supports to the supplied action pool for operating on any general files.
 void addNonCVSActions(CVSActionPool actionPool)
          Adds any actions this graphical client supports to the supplied action pool for operating on files that are not under CVS control.
protected  boolean askQuestion(java.awt.Frame parentFrame, java.lang.Object message)
           
protected  void checkForFilesToAdd(java.awt.Frame parentFrame, CVSRequestBatch batch, java.io.File[] files)
          Checks for files to add from the specified files, recursing sub directories if necessary, and adds requests to the batch to add the required files.
protected  void checkForFilesToRemove(java.awt.Frame parentFrame, CVSRequestBatch batch, java.io.File[] files)
           
protected  CVSAction createAbortAction()
           
protected  CVSAction createAddAction()
          Creates an action used for adding files.
protected  CVSAction createCheckForFilesToAddAction()
           
protected  CVSAction createCheckoutAction()
          Creates an action used for checking out a repository.
protected  CVSAction createCommitAction()
          Creates an action used for committing files.
protected  CVSAction createDiffAction()
          Creates an action used for diffing files.
protected  CVSAction createEditRepositoriesAction()
           
protected  CVSAction createLogAction()
          Creates an action used for ogging files.
protected  CVSAction createRemoveAction()
          Creates an action used for removing files.
protected  CVSAction createStatusAction()
          Creates an action used for getting status of files.
protected  CVSAction createTagAction()
          Creates an action used for adding files.
protected  CVSAction createUpdateAction()
          Creates an action used for updating files.
protected  void displayError(java.awt.Frame parentFrame, java.lang.Object message)
           
protected  void displayInformation(java.awt.Frame parentFrame, java.lang.Object message)
           
 CVSClient getClient()
          Gets the client that requests will be used by this graphical client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGraphicalClient

public DefaultGraphicalClient(CVSClient client)
Creates a DefaultGraphicalClient that will perfrom requests using the supplied client.
Method Detail

getClient

public CVSClient getClient()
Gets the client that requests will be used by this graphical client.
Specified by:
getClient in interface GraphicalClient

addGeneralActions

public void addGeneralActions(CVSActionPool actionPool)
Adds any actions this graphical client supports to the supplied action pool for operating on any general files.
Specified by:
addGeneralActions in interface GraphicalClient

addCVSActions

public void addCVSActions(CVSActionPool actionPool)
Adds any actions this graphical client supports to the supplied action pool for operating on files that are under CVS control.
Specified by:
addCVSActions in interface GraphicalClient

addNonCVSActions

public void addNonCVSActions(CVSActionPool actionPool)
Adds any actions this graphical client supports to the supplied action pool for operating on files that are not under CVS control.
Specified by:
addNonCVSActions in interface GraphicalClient

addDirectoryActions

public void addDirectoryActions(CVSActionPool actionPool)
Adds any actions this graphical client supports to the supplied action pool for operating on a single directory.
Specified by:
addDirectoryActions in interface GraphicalClient

createAbortAction

protected CVSAction createAbortAction()

createCheckForFilesToAddAction

protected CVSAction createCheckForFilesToAddAction()

createAddAction

protected CVSAction createAddAction()
Creates an action used for adding files.

createRemoveAction

protected CVSAction createRemoveAction()
Creates an action used for removing files.

createCommitAction

protected CVSAction createCommitAction()
Creates an action used for committing files.

createUpdateAction

protected CVSAction createUpdateAction()
Creates an action used for updating files.

createDiffAction

protected CVSAction createDiffAction()
Creates an action used for diffing files.

createLogAction

protected CVSAction createLogAction()
Creates an action used for ogging files.

createStatusAction

protected CVSAction createStatusAction()
Creates an action used for getting status of files.

createTagAction

protected CVSAction createTagAction()
Creates an action used for adding files.

createCheckoutAction

protected CVSAction createCheckoutAction()
Creates an action used for checking out a repository.

createEditRepositoriesAction

protected CVSAction createEditRepositoriesAction()

displayError

protected void displayError(java.awt.Frame parentFrame,
                            java.lang.Object message)

displayInformation

protected void displayInformation(java.awt.Frame parentFrame,
                                  java.lang.Object message)

askQuestion

protected boolean askQuestion(java.awt.Frame parentFrame,
                              java.lang.Object message)

checkForFilesToAdd

protected void checkForFilesToAdd(java.awt.Frame parentFrame,
                                  CVSRequestBatch batch,
                                  java.io.File[] files)
Checks for files to add from the specified files, recursing sub directories if necessary, and adds requests to the batch to add the required files.

checkForFilesToRemove

protected void checkForFilesToRemove(java.awt.Frame parentFrame,
                                     CVSRequestBatch batch,
                                     java.io.File[] files)

addAddRequests

protected void addAddRequests(java.awt.Frame parentFrame,
                              CVSRequestBatch batch,
                              java.io.File[] files)
Adds add requests to the specified batch to add the specified files.

add

protected void add(java.awt.Frame parentFrame,
                   java.io.File[] files)
Adds the supplied files to the repository.