public class Console extends Object implements com.google.gwt.core.client.EntryPoint, com.google.gwt.event.logical.shared.ValueChangeHandler<String>
onModuleLoad().| Constructor and Description |
|---|
Console() |
| Modifier and Type | Method and Description |
|---|---|
void |
changePathInURL(String path,
boolean changeHistory)
Changes node path in the URL displayed by browser.
|
void |
changeRepositoryInURL(String name,
boolean changeHistory)
Changes repository name in URL displayed by browser.
|
protected void |
changeUserName(String userName)
Displays name of the logged in user.
|
void |
changeWorkspaceInURL(String name,
boolean changeHistory)
Changes workspace in the URL displayed by browser.
|
Contents |
contents() |
void |
display(com.smartgwt.client.widgets.Canvas view) |
void |
displayContent(String repository,
boolean changeHistory)
Displays root node for given repository and first available workspace.
|
void |
displayContent(String repository,
String workspace,
String path,
boolean changeHistory)
Displays node for the given repository, workspace and path.
|
void |
displayRepository(String name)
Display repository header with given name.
|
void |
hideLoadingIcon()
Hides "animated" load icon and shows contents.
|
void |
hideRepository()
Hides repository header.
|
JcrServiceAsync |
jcrService()
Provides data access.
|
void |
loadNodeSpecifiedByURL()
Reconstructs URL and points browser to the requested node path.
|
void |
loadRepositoriesList()
Load repositories available for the logged in user.
|
void |
onModuleLoad()
This is the entry point method.
|
void |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event) |
String |
repository()
Gets selected repository name.
|
void |
showLoadingIcon()
Hides contents and shows "animated" load icon.
|
void |
showMainForm(String userName)
Shows main page for the logged in user.
|
void |
showRepositories(Collection<RepositoryName> names)
Displays list of availables repositories.
|
public Console()
public JcrServiceAsync jcrService()
public void onModuleLoad()
onModuleLoad in interface com.google.gwt.core.client.EntryPointpublic void loadNodeSpecifiedByURL()
protected void changeUserName(String userName)
userName - public String repository()
public void showMainForm(String userName)
userName - the name of the user.public void loadRepositoriesList()
public void showLoadingIcon()
public void hideLoadingIcon()
public void displayRepository(String name)
name - the name of the repository.public void hideRepository()
public void changeRepositoryInURL(String name, boolean changeHistory)
name - the name of the repository.changeHistory - if true store URL changes in history.public void changeWorkspaceInURL(String name, boolean changeHistory)
name - the name of the repository.changeHistory - if true store URL changes in browser's history.public void changePathInURL(String path, boolean changeHistory)
path - the path to the node.changeHistory - if true store URL changes in browser's history.public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<String>public void showRepositories(Collection<RepositoryName> names)
names - names of repositories.public void displayContent(String repository, String workspace, String path, boolean changeHistory)
repository - the name of the repository.workspace - the name of workspace.path - the path to the node.changeHistory - store changes in browser history.public void displayContent(String repository, boolean changeHistory)
repository - the name of the repository.changeHistory - store changes in browser history or no.public void display(com.smartgwt.client.widgets.Canvas view)
Copyright © 2008–2018 JBoss, a division of Red Hat. All rights reserved.