本文整理匯總了Java中org.activiti.explorer.navigation.UriFragment類的典型用法代碼示例。如果您正苦於以下問題:Java UriFragment類的具體用法?Java UriFragment怎麽用?Java UriFragment使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UriFragment類屬於org.activiti.explorer.navigation包,在下文中一共展示了UriFragment類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createList
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected Table createList() {
final Table tableList = new Table();
// Listener to change right panel when clicked on a task
tableList.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 8811553575319455854L;
public void valueChange(ValueChangeEvent event) {
// The itemId of the table list is the tableName
String tableName = (String) event.getProperty().getValue();
setDetailComponent(new DatabaseDetailPanel(tableName));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(DatabaseNavigator.TABLE_URI_PART, tableName));
}
});
// Create column headers
tableList.addContainerProperty("icon", Embedded.class, null);
tableList.setColumnWidth("icon", 22);
tableList.addContainerProperty("tableName", String.class, null);
tableList.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return tableList;
}
示例2: getListSelectionListener
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
protected ValueChangeListener getListSelectionListener() {
return new Property.ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Item item = taskTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
if(item != null) {
String id = (String) item.getItemProperty("id").getValue();
setDetailComponent(createDetailComponent(id));
UriFragment taskFragment = getUriFragment(id);
ExplorerApp.get().setCurrentUriFragment(taskFragment);
} else {
// Nothing is selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(getUriFragment(null));
}
}
};
}
示例3: setCurrentUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
/**
* Sets the current {@link UriFragment}.
* Won't trigger navigation, just updates the URI fragment in the browser.
*/
public void setCurrentUriFragment(UriFragment fragment) {
this.currentUriFragment = fragment;
if(fragmentChanged(fragment)) {
if(fragment != null) {
uriFragmentUtility.setFragment(fragment.toString(), false);
} else {
uriFragmentUtility.setFragment("", false);
}
}
}
示例4: fragmentChanged
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
private boolean fragmentChanged(UriFragment fragment) {
String fragmentString = fragment.toString();
if(fragmentString == null) {
return uriFragmentUtility.getFragment() != null;
} else {
return !fragmentString.equals(uriFragmentUtility.getFragment());
}
}
示例5: createList
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected Table createList() {
final Table deploymentTable = new Table();
LazyLoadingQuery deploymentListQuery = new DeploymentListQuery();
deploymentListContainer = new LazyLoadingContainer(deploymentListQuery, 10);
deploymentTable.setContainerDataSource(deploymentListContainer);
// Listener to change right panel when clicked on a deployment
deploymentTable.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 8811553575319455854L;
public void valueChange(ValueChangeEvent event) {
Item item = deploymentTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
if(item != null) {
String deploymentId = (String) item.getItemProperty("id").getValue();
setDetailComponent(new DeploymentDetailPanel(deploymentId, DeploymentPage.this));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(DeploymentNavigator.DEPLOYMENT_URI_PART, deploymentId));
} else {
// Nothing is selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(new UriFragment(DeploymentNavigator.DEPLOYMENT_URI_PART));
}
}
});
// Create column headers
deploymentTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.DEPLOYMENT_22));
deploymentTable.setColumnWidth("icon", 22);
deploymentTable.addContainerProperty("name", String.class, null);
deploymentTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return deploymentTable;
}
示例6: createList
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected Table createList() {
final Table jobTable = new Table();
LazyLoadingQuery jobListQuery = new JobListQuery();
jobListContainer = new LazyLoadingContainer(jobListQuery, 10);
jobTable.setContainerDataSource(jobListContainer);
// Listener to change right panel when clicked on a deployment
jobTable.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 8811553575319455854L;
public void valueChange(ValueChangeEvent event) {
Item item = jobTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
if(item != null) {
String jobId = (String) item.getItemProperty("id").getValue();
setDetailComponent(new JobDetailPanel(jobId, JobPage.this));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(JobNavigator.JOB_URL_PART, jobId));
} else {
// Nothing is selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(new UriFragment(JobNavigator.JOB_URL_PART));
}
}
});
// Create column headers
jobTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.JOB_22));
jobTable.setColumnWidth("icon", 22);
jobTable.addContainerProperty("name", String.class, null);
jobTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return jobTable;
}
示例7: createList
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
protected Table createList() {
final Table table = new Table();
LazyLoadingQuery query = new ProcessInstanceListQuery();
processInstanceContainer = new LazyLoadingContainer(query);
table.setContainerDataSource(processInstanceContainer);
table.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Item item = table.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
if(item != null) {
String processInstanceId = (String) item.getItemProperty("id").getValue();
setDetailComponent(new AlfrescoProcessInstanceDetailPanel(processInstanceId, ProcessInstancePage.this));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(ProcessInstanceNavigator.PROCESS_INSTANCE_URL_PART, processInstanceId));
} else {
// Nothing is selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(new UriFragment(ProcessInstanceNavigator.PROCESS_INSTANCE_URL_PART));
}
}
});
// Create column headers
table.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.PROCESS_22));
table.setColumnWidth("icon", 22);
table.addContainerProperty("name", String.class, null);
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return table;
}
示例8: createList
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
protected Table createList() {
userTable = new Table();
userListQuery = new UserListQuery();
userListContainer = new LazyLoadingContainer(userListQuery, 20);
userTable.setContainerDataSource(userListContainer);
// Column headers
userTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_22));
userTable.setColumnWidth("icon", 22);
userTable.addContainerProperty("name", String.class, null);
userTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
// Listener to change right panel when clicked on a user
userTable.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Item item = userTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
if(item != null) {
String userId = (String) item.getItemProperty("id").getValue();
setDetailComponent(new UserDetailPanel(UserPage.this, userId));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(UserNavigator.USER_URI_PART, userId));
} else {
// Nothing is selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(new UriFragment(UserNavigator.USER_URI_PART));
}
}
});
return userTable;
}
示例9: getUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected UriFragment getUriFragment(String processInstanceId) {
UriFragment fragment = new UriFragment(MyProcessesNavigator.MY_PROCESSES_URI_PART);
if(processInstanceId != null) {
fragment.addUriPart(processInstanceId);
}
return fragment;
}
示例10: getUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if(taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_QUEUED);
if(groupId != null) {
taskFragment.addParameter(TaskNavigator.PARAMETER_GROUP, groupId);
}
return taskFragment;
}
示例11: getUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if(taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_INBOX);
return taskFragment;
}
示例12: getUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if(taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_ARCHIVED);
return taskFragment;
}
示例13: getUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if(taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_INVOLVED);
return taskFragment;
}
示例14: getUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
@Override
protected UriFragment getUriFragment(String taskId) {
UriFragment taskFragment = new UriFragment(TaskNavigator.TASK_URI_PART);
if(taskId != null) {
taskFragment.addUriPart(taskId);
}
taskFragment.addParameter(TaskNavigator.PARAMETER_CATEGORY, TaskNavigator.CATEGORY_TASKS);
return taskFragment;
}
示例15: setCurrentUriFragment
import org.activiti.explorer.navigation.UriFragment; //導入依賴的package包/類
public void setCurrentUriFragment(UriFragment fragment) {
mainWindow.setCurrentUriFragment(fragment);
}