Skip to content

Commit

Permalink
Document.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thynix committed Apr 20, 2012
1 parent 8a6f5cc commit 0d0423e
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/freenet/clients/http/LocalFileBrowserToadlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ protected String defaultDownloadDir() {
//If locations are explicitly specified take the first one.
return core.getAllowedDownloadDirs()[0].getAbsolutePath();
}


/**
* Renders directory selection button with selectDir and filenameField() set.
* @param node Node to add the button to.
* @param absolutePath Path to set the filenameField() field to.
* @param persistence Additional persistence fields to include.
*/
protected void createSelectDirectoryButton (HTMLNode node, String absolutePath, HTMLNode persistence) {
node.addChild("input",
new String[]{"type", "name", "value"},
Expand All @@ -129,7 +135,13 @@ protected void createSelectDirectoryButton (HTMLNode node, String absolutePath,
new String[]{"hidden", filenameField(), absolutePath});
node.addChild(persistence);
}


/**
* Renders file selection button with selectFile and filenameField() set.
* @param node Node to add the button to.
* @param absolutePath Path to set the filenameField() field to.
* @param persistence Additional persistence fields to include.
*/
protected void createSelectFileButton (HTMLNode node, String absolutePath, HTMLNode persistence) {
node.addChild("input",
new String[]{"type", "name", "value"},
Expand All @@ -140,6 +152,12 @@ protected void createSelectFileButton (HTMLNode node, String absolutePath, HTMLN
node.addChild(persistence);
}

/**
* Renders directory changing button with changeDir and filenameField() set.
* @param node Node to add the button to.
* @param path Path to set the "path" field to.
* @param persistence Additional persistence fields to include.
*/
private void createChangeDirButton (HTMLNode node, String buttonText, String path, HTMLNode persistence) {
node.addChild("input",
new String[]{"type", "name", "value"},
Expand Down

0 comments on commit 0d0423e

Please sign in to comment.