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


Java ItemClickEvent.getItemId方法代码示例

本文整理汇总了Java中com.vaadin.event.ItemClickEvent.getItemId方法的典型用法代码示例。如果您正苦于以下问题:Java ItemClickEvent.getItemId方法的具体用法?Java ItemClickEvent.getItemId怎么用?Java ItemClickEvent.getItemId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.event.ItemClickEvent的用法示例。


在下文中一共展示了ItemClickEvent.getItemId方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: optionTableClicked

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private void optionTableClicked(ItemClickEvent event) {
    if (this.userOption.getValue() == NONE) {
        return;
    }
    Object itemId = 0L;
    if (this.userOption.getValue() == AVAILABILITY_ZONES) {
        itemId = event.getItemId();
    } else if (this.userOption.getValue() == HOSTS) {
        itemId = event.getItemId();
    } else if (this.userOption.getValue() == HOST_AGGREGATES) {
        itemId = event.getItemId();
    }
    if (this.optionTable.getContainerProperty(itemId, "Enabled").getValue().equals(true)) {
        this.optionTable.getContainerProperty(itemId, "Enabled").setValue(false);
    } else {
        this.optionTable.getContainerProperty(itemId, "Enabled").setValue(true);
    }
}
 
开发者ID:opensecuritycontroller,项目名称:osc-core,代码行数:20,代码来源:BaseDeploymentSpecWindow.java

示例2: itemClick

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
    if (event.getButton() == MouseEventDetails.MouseButton.LEFT) {
        Folder folder = (Folder) event.getItemId();
        if (getItemClickable(folder)) {
            openFolder((AbstractSearchFolder) event.getItemId());
        } else if (isItemExpandable(folder)) {
            Component tree = event.getComponent();
            if (tree instanceof Tree) {
                if (((Tree) tree).isExpanded(folder))
                    ((Tree) tree).collapseItem(folder);
                else
                    ((Tree) tree).expandItem(folder);
            }
        }
    }
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:18,代码来源:CubaFoldersPane.java

示例3: itemClick

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
	Object itemId = event.getItemId();
	if(itemId instanceof Input || itemId instanceof Output || itemId instanceof Parameter) {
		root.getToolEditor().removeAllComponents();
		root.getToolEditor().addComponent((BasicModel)itemId);
	} else {
		root.getToolEditor().removeAllComponents();
		if(itemId.equals(TOOL)) {
			root.getToolEditor().addComponent(tool);
			addAllChildrenToToolEditor(INPUTS);
			addAllChildrenToToolEditor(OUTPUTS);
			addAllChildrenToToolEditor(PARAMETERS);
		} else if(itemId.equals(INPUTS)) {
			addAllChildrenToToolEditor(INPUTS);
		} else if(itemId.equals(OUTPUTS)) {
			addAllChildrenToToolEditor(OUTPUTS);
		} else if(itemId.equals(PARAMETERS)) {
			addAllChildrenToToolEditor(PARAMETERS);
		}
	}
}
 
开发者ID:chipster,项目名称:chipster,代码行数:23,代码来源:TreeToolEditor.java

示例4: itemClick

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
    MenuItem item = (MenuItem) event.getItemId();
    if (item.isMenu()) {
        Component tree = event.getComponent();
        if (tree instanceof Tree) {
            switchExpandState((Tree) tree, item);
        }
    } else {
        if (event.getButton() == MouseEventDetails.MouseButton.LEFT) {
            tree.select(item);
            openWindow(item);
        }
    }
}
 
开发者ID:cuba-platform,项目名称:sampler,代码行数:16,代码来源:SamplerFoldersPane.java

示例5: rowClicked

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
protected void rowClicked(ItemClickEvent event) {
    ReleasePackage object =  (ReleasePackage)event.getItemId();
    if (grid.getSelectedRows().contains(object)) {
        grid.deselect(object);
    } else if (event.isCtrlKey() || event.isAltKey() || event.isShiftKey()) {
        grid.select(object);
    } else {
        grid.deselectAll();
        grid.select(object);
    }
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:12,代码来源:ReleasesView.java

示例6: itemClick

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
public void itemClick(ItemClickEvent event) {
    if (event.getButton() == MouseButton.LEFT) {
        Object value = event.getItemId();
        if (value != null) {
            String id = value.toString();
            Component panel = null;
            if (id.equals("Users")) {
                panel = new UserPanel(context, tabbedPanel);
            } else if (id.equals("Groups")) {
                panel = new GroupPanel(context, tabbedPanel);
            } else if (id.equals("REST")) {
                panel = new ApiPanel(context, tabbedPanel);
            } else if (id.equals("General Settings")) {
                panel = new GeneralSettingsPanel(context, tabbedPanel);
            } else if (id.equals("Mail Server")) {
                panel = new MailServerPanel(context, tabbedPanel);
            } else if (id.equals("Notifications")) {
                panel = new NotificationPanel(context, tabbedPanel);
            } else if (id.equals("Logging")) {
                panel = new LoggingPanel(context, tabbedPanel);
            } else if (id.equals("Plugin Repositories")) {
                panel = new PluginRepositoriesPanel(context, tabbedPanel);                    
            } else if (id.equals("About")) {
                panel = new AboutPanel(context, tabbedPanel);
            } else if (id.equals("Plugins")) {
                panel = new PluginsPanel(context, tabbedPanel);
            } else if (id.equals("Active Users")) {
                panel = new ActiveUsersPanel(context, tabbedPanel);
            } else if (id.equals("Audit Events")) {
                panel = new AuditEventPanel(context, tabbedPanel);
            }
            tabbedPanel.addCloseableTab(id, id, table.getItemIcon(id), panel);
        }
    }
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:36,代码来源:AdminView.java

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: itemClick

import com.vaadin.event.ItemClickEvent; //导入方法依赖的package包/类
@Override
public void itemClick(ItemClickEvent event) {
	Integer itemId = (Integer) event.getItemId();
	
	if(itemId > 0) {
		queryTextArea.setValue("" + queryTextArea.getValue() + tree.getItemCaption(itemId));
	} else if(itemId < 0) {
		String property = tree.getItemCaption(itemId);
		property = property.substring(0, property.lastIndexOf(" ("));
		queryTextArea.setValue("" + queryTextArea.getValue() + property);
	}
	
	queryTextArea.focus();
}
 
开发者ID:alejandro-du,项目名称:enterprise-app,代码行数:15,代码来源:HqlQueryBrowser.java

示例15: 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


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