本文整理汇总了Java中com.vaadin.event.ItemClickEvent.isDoubleClick方法的典型用法代码示例。如果您正苦于以下问题:Java ItemClickEvent.isDoubleClick方法的具体用法?Java ItemClickEvent.isDoubleClick怎么用?Java ItemClickEvent.isDoubleClick使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.event.ItemClickEvent
的用法示例。
在下文中一共展示了ItemClickEvent.isDoubleClick方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
public void itemClick(ItemClickEvent event) {
if (event.isDoubleClick()) {
VaadinView<T> editor = getEditorView();
if (editor != null) {
Item item = event.getItem();
editor.setModel(getBean(item));
editor.refresh();
editor.addEditorListener(new EditorListener() {
public void modelChanged(EditorEvent e) {
refresh();
fireEditorEvent(e);
}
});
ViewDialog dlg = this.guiFactory.newViewDialog(editor, this.dialog);
dlg.init();
dlg.center();
this.getUI().addWindow(dlg);
}
}
}
示例2: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
public void itemClick(ItemClickEvent event) {
if (event.isDoubleClick()) {
editButton.click();
} else if (getSelectedItems().contains(event.getItemId()) &&
System.currentTimeMillis()-lastClick > 500) {
table.setValue(null);
}
lastClick = System.currentTimeMillis();
}
示例3: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
public void itemClick(ItemClickEvent event) {
if (event.isDoubleClick()) {
editButton.click();
} else if (getSelectedItems().contains(event.getItemId()) && System.currentTimeMillis() - lastClick > 500) {
table.setValue(null);
}
lastClick = System.currentTimeMillis();
}
示例4: logTableCellClicked
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
protected void logTableCellClicked(Grid logTable, ItemClickEvent event) {
if (event.isDoubleClick()) {
Object object = event.getPropertyId();
if (!object.toString().equals("")) {
Object prop = event.getPropertyId();
String header = logTable.getColumn(prop).getHeaderCaption();
Property<?> p = event.getItem().getItemProperty(prop);
if (p != null) {
String data = String.valueOf(p.getValue());
new ReadOnlyTextAreaDialog(header, data, false).showAtSize(.5);
}
}
}
}
示例5: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
public void itemClick(ItemClickEvent event) {
if (event.isDoubleClick()) {
editSelectedItem();
} else if (System.currentTimeMillis() - lastClick > 1000
&& getSelectedItems().size() > 0) {
treeTable.setValue(null);
}
lastClick = System.currentTimeMillis();
}
示例6: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == schuelerList && event.isDoubleClick()) {
SchuelerLaso schueler = (SchuelerLaso) event.getItemId();
schuelerBearbeiten(schueler);
}
}
示例7: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == klassenList && event.isDoubleClick()) {
KlasseLaso klasse = (KlasseLaso) event.getItemId();
klasseBearbeiten(klasse);
}
}
示例8: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == schuelerfachList && event.isDoubleClick()) {
ZuordnungFachSchuelerLaso zuordnungFS = (ZuordnungFachSchuelerLaso) event.getItemId();
facheinschaetzungBearbeiten(ZuordnungFachSchuelerContainer.getZuordnung(zuordnungFS.getSchueler(), zuordnungFS.getFach()));
}
}
示例9: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == fachschuelerList && event.isDoubleClick()) {
ZuordnungFachSchuelerLaso zuordnungFS = (ZuordnungFachSchuelerLaso) event.getItemId();
facheinschaetzungBearbeiten(ZuordnungFachSchuelerContainer.getZuordnung(zuordnungFS.getSchueler(), fach.getPojo()));
}
}
示例10: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == fachdefinitionList && event.isDoubleClick()) {
FachdefinitionLaso fachdefinition = (FachdefinitionLaso) event.getItemId();
fachdefinitionenBearbeiten(fachdefinition);
}
}
示例11: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == fachbezeichnungenLebList && event.isDoubleClick()) {
FachbezeichnungLebLaso fachbezeichnungenLeb = (FachbezeichnungLebLaso) event.getItemId();
fachbezeichnungenLebBearbeiten(fachbezeichnungenLeb);
}
}
示例12: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
Property property = (Property) event.getSource();
if (property == faecherList && event.isDoubleClick()) {
FachLaso fach = (FachLaso) event.getItemId();
faecherBearbeiten(fach);
}
}
示例13: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
if(event.isDoubleClick() && !crudComponent.isReadOnly()) {
crudComponent.table.setValue(event.getItemId());
formUpdateButtonClicked();
}
}
示例14: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
propertyIdSelected = event.getPropertyId();
if (propertyIdSelected != null && event.getItem() != null && event.getItem().getItemProperty(propertyIdSelected) != null)
cellSelected = event.getItem().getItemProperty(propertyIdSelected).getValue();
else
cellSelected = "";
if (bindingSource == null)
return;
bindingSource.setItemId(this, true, event.getItemId());
if (event.getItemId() != null && event.isDoubleClick()) {
if (listenerEditButton != null) {
EditionToolbar.ClickNavigationEvent eventClick = (new EditionToolbar(0, null)).new ClickNavigationEvent((Component) event.getSource(), event.getItemId(), 0);
listenerEditButton.editButtonClick(eventClick);
}
}
/*if (event.getItemId() != null && event.getButton() == MouseEventDetails.BUTTON_RIGHT)
// navigate down bindingsource
bindingSource.setItemId(this, true, event.getItemId());
else if (event.getItemId() != null && event.getButton() == MouseEventDetails.BUTTON_LEFT)
// set the item selected
bindingSource.setItemId(event.getItemId());
else if (event.getItemId() != null && event.isDoubleClick()) {
if (listenerEditButton != null) {
EditionToolbar.ClickNavigationEvent eventClick = (new EditionToolbar(0, null)).new ClickNavigationEvent((Component) event.getSource(), event.getItemId(), 0);
listenerEditButton.editButtonClick(eventClick);
}
}*/
}
示例15: itemClick
import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
/**
* Item on the table is clicked
*
* @param event that contains the id of clicked item
*/
public void itemClick(ItemClickEvent event) {
if (event.getItemId() != null) {
if (event.isDoubleClick()) {
fireOpenEditor((String) event.getItemId());
}
}
}