-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Groovy classes to Java
- Loading branch information
Showing
25 changed files
with
420 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
...olding/markup/DomainMarkupRenderer.groovy → ...ffolding/markup/DomainMarkupRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
package org.grails.scaffolding.markup | ||
package org.grails.scaffolding.markup; | ||
|
||
import org.grails.datastore.mapping.model.PersistentEntity | ||
import org.grails.datastore.mapping.model.PersistentEntity; | ||
|
||
/** | ||
* Used to output markup that represents a given domain class. | ||
* | ||
* @author James Kleeh | ||
*/ | ||
interface DomainMarkupRenderer { | ||
public interface DomainMarkupRenderer { | ||
|
||
/** | ||
* Designed to render a "show" page that will display a single domain class instance. | ||
* | ||
* @param domainClass The domain class to be rendered | ||
* @return The rendered html | ||
*/ | ||
String renderOutput(PersistentEntity domainClass) | ||
String renderOutput(PersistentEntity domainClass); | ||
|
||
/** | ||
* Designed to render a "list" page that will display a list of domain class instances. | ||
* | ||
* @param domainClass The domain class to be rendered | ||
* @return The rendered html | ||
*/ | ||
String renderListOutput(PersistentEntity domainClass) | ||
|
||
String renderListOutput(PersistentEntity domainClass); | ||
|
||
/** | ||
* Designed to render a form that will allow users to create or edit domain class instances. | ||
* | ||
* @param domainClass The domain class to be rendered | ||
* @return The rendered html | ||
*/ | ||
String renderInput(PersistentEntity domainClass) | ||
String renderInput(PersistentEntity domainClass); | ||
|
||
} | ||
} |
Oops, something went wrong.