当前位置: 首页>>代码示例>>Java>>正文


Java ItemClickEvent.isDoubleClick方法代码示例

本文整理汇总了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);
		}
	}
}
 
开发者ID:chelu,项目名称:jdal,代码行数:27,代码来源:TableComponent.java

示例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();
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:10,代码来源:NotificationPanel.java

示例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();
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:9,代码来源:EditAgentPanel.java

示例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);
            }
        }
    }
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:15,代码来源:ExecutionRunPanel.java

示例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();
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:10,代码来源:EditRelationalModelPanel.java

示例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);
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:SchuelerlisteAnzeigen.java

示例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);
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:KlassenlisteAnzeigen.java

示例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()));
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:SchuelerfachlisteAnzeigen.java

示例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()));
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:FachschuelerlisteAnzeigen.java

示例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);
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:FachdefinitionlisteAnzeigen.java

示例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);
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:FachbezeichnungenLeblisteAnzeigen.java

示例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);
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:9,代码来源:PflichtfaecherlisteAnzeigen.java

示例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();
	}
}
 
开发者ID:alejandro-du,项目名称:enterprise-app,代码行数:8,代码来源:CrudListener.java

示例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);
		}
	}*/
	
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:36,代码来源:DataGridView.java

示例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());
		} 
	}
}
 
开发者ID:ahn,项目名称:mideaas,代码行数:13,代码来源:SelectProjectPanel.java


注:本文中的com.vaadin.event.ItemClickEvent.isDoubleClick方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。