本文整理汇总了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);
}
}
示例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);
}
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例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()));
}
}
示例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()));
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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);
}
}*/
}