作者: | 来源:互联网 | 2023-09-15 05:33
本文整理了Java中org.activityinfo.i18n.shared.UiConstants.edit()
方法的一些代码示例,展示了UiConstants.edit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UiConstants.edit()
方法的具体详情如下:
包路径:org.activityinfo.i18n.shared.UiConstants
类名称:UiConstants
方法名:edit
UiConstants.edit介绍
暂无
代码示例
代码示例来源:origin: bedatadriven/activityinfo
public void addEditButton(AbstractImagePrototype icon) {
this.editButton = addButton(UIActions.EDIT, I18N.CONSTANTS.edit(), icon);
}
代码示例来源:origin: bedatadriven/activityinfo
private SafeHtml designLabel(String newLabel) {
return TEMPLATES.designLabel(newLabel, I18N.CONSTANTS.edit(), I18N.CONSTANTS.delete());
}
代码示例来源:origin: bedatadriven/activityinfo
@Override
protected void initToolBar() {
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.addProject(), icons.add());
toolBar.addButton(UIActions.EDIT, messages.edit(), icons.edit());
toolBar.addButton(UIActions.DELETE, messages.delete(), icons.delete());
}
代码示例来源:origin: bedatadriven/activityinfo
@Override
protected void initToolBar() {
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.add(), icons.add());
toolBar.addButton(UIActions.DELETE, messages.delete(), icons.delete());
toolBar.addButton(UIActions.EDIT, messages.edit(), icons.edit());
}
代码示例来源:origin: bedatadriven/activityinfo
private void addOptionsMenu() {
final Menu optiOnsMenu= new Menu();
optionsMenu.add(new MenuItem(I18N.CONSTANTS.edit(),
IconImageBundle.ICONS.edit(),
new SelectionListener() {
@Override
public void componentSelected(MenuEvent ce) {
edit();
}
}));
optionsMenu.add(new MenuItem(I18N.CONSTANTS.removeFromDashboard(),
IconImageBundle.ICONS.remove(),
new SelectionListener() {
@Override
public void componentSelected(MenuEvent ce) {
removeFromDashboard();
}
}));
final ToolButton gear = new ToolButton("x-tool-gear", new SelectionListener() {
@Override
public void componentSelected(IconButtonEvent ce) {
optionsMenu.show(ce.getComponent());
}
});
getHeader().addTool(gear);
}
代码示例来源:origin: bedatadriven/activityinfo
private void createToolBar() {
toolBar = new ActionToolBar(this);
toolBar.addSaveButton();
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.addUser(), IconImageBundle.ICONS.addUser());
toolBar.addButton(UIActions.EDIT, I18N.CONSTANTS.edit(), IconImageBundle.ICONS.edit());
toolBar.addButton(UIActions.DELETE, I18N.CONSTANTS.delete(), IconImageBundle.ICONS.deleteUser());
toolBar.addButton(UIActions.EXPORT, I18N.CONSTANTS.export(), IconImageBundle.ICONS.excel());
toolBar.addButton(UIActions.MAILING_LIST,
I18N.CONSTANTS.CopyAddressToClipBoard(),
IconImageBundle.ICONS.dataEntry());
setTopComponent(toolBar);
}
代码示例来源:origin: bedatadriven/activityinfo
@Inject
public DbPartnerEditor(EventBus eventBus, Dispatcher dispatcher) {
this.eventBus = eventBus;
this.dispatcher = dispatcher;
toolBar = new ActionToolBar(this);
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.addPartner(), IconImageBundle.ICONS.add());
toolBar.addButton(UIActions.EDIT, I18N.CONSTANTS.edit(), IconImageBundle.ICONS.edit());
toolBar.addButton(UIActions.DELETE, I18N.CONSTANTS.delete(), IconImageBundle.ICONS.delete());
toolBar.setDirty(false);
store = new ListStore<>();
store.setSortField("name");
store.setSortDir(Style.SortDir.ASC);
store.setModelComparer((a, b) -> a.getId() == b.getId());
grid = new Grid<>(store, createColumnModel());
grid.setAutoExpandColumn("fullName");
grid.setLoadMask(true);
grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
onSelectionChanged(Optional.ofNullable(event.getSelectedItem()));
}
});
this.cOntentPanel= new ContentPanel();
this.contentPanel.setTopComponent(toolBar);
this.contentPanel.setLayout(new FitLayout());
this.contentPanel.add(grid);
}
代码示例来源:origin: bedatadriven/activityinfo
private ActionToolBar createToolBar() {
toolBar = new ActionToolBar(this);
groupingComboBox = new GroupingComboBox(dispatcher);
groupingComboBox.withSelectionListener(event ->
eventBus.fireEvent(new NavigationEvent(NavigationHandler.NAVIGATION_REQUESTED,
currentPlace.copy().setGrouping(groupingComboBox.getGroupingModel()))));
toolBar.add(new Label(I18N.CONSTANTS.grouping()));
toolBar.add(groupingComboBox);
toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.newSite(), IconImageBundle.ICONS.add());
toolBar.addButton(UIActions.EDIT, I18N.CONSTANTS.edit(), IconImageBundle.ICONS.edit());
toolBar.addDeleteButton(I18N.CONSTANTS.deleteSite());
toolBar.add(new SeparatorToolItem());
toolBar.add(new SeparatorToolItem());
toolBar.addImportButton();
toolBar.addExcelExportButton();
toolBar.addPrintButton();
return toolBar;
}
代码示例来源:origin: bedatadriven/activityinfo
public TableToolBar(FormStore formStore, TableViewModel viewModel) {
this.formStore = formStore;
this.viewModel = viewModel;
newButton = new TextButton(I18N.CONSTANTS.newText());
newButton.addSelectHandler(this::onNewRecord);
removeButton = new TextButton(I18N.CONSTANTS.remove());
removeButton.addSelectHandler(this::onDeleteRecord);
removeButton.setEnabled(false);
editButton = new TextButton(I18N.CONSTANTS.edit());
editButton.addSelectHandler(this::onEditRecord);
editButton.setEnabled(false);
printButton = new TextButton(I18N.CONSTANTS.printForm());
printButton.addSelectHandler(this::onPrintRecord);
importButton = new TextButton(I18N.CONSTANTS.importText());
importButton.addSelectHandler(this::onImport);
exportButton = new TextButton(I18N.CONSTANTS.export());
exportButton.addSelectHandler(this::onExport);
TextButton columnsButton = new TextButton(I18N.CONSTANTS.chooseColumns());
columnsButton.addSelectHandler(this::onChooseColumnsSelected);
OfflineStatusButton offlineButton = new OfflineStatusButton(formStore, viewModel.getFormId());
add(newButton);
add(editButton);
add(removeButton);
add(importButton);
add(exportButton);
add(columnsButton);
add(offlineButton);
}