本文整理了Java中com.google.gwt.user.client.ui.ListBox.setFocus()
方法的一些代码示例,展示了ListBox.setFocus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListBox.setFocus()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.ListBox
类名称:ListBox
方法名:setFocus
暂无
代码示例来源:origin: kaaproject/kaa
@Override
public void setFocus(boolean focused) {
getListBox().setFocus(focused);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void setFocus(boolean focused) {
getListBox().setFocus(focused);
}
代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-client
public void execute() {
choices.setFocus( true );
}
} );
代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-client
public void execute() {
choices.setFocus( true );
}
} );
代码示例来源:origin: fr.lteconsulting/hexa.core
public void setFocus( boolean fFocused )
{
listBox.setFocus( fFocused );
}
代码示例来源:origin: ltearno/hexa.tools
public void setFocus( boolean fFocused )
{
listBox.setFocus( fFocused );
}
代码示例来源:origin: net.sf.advanced-gwt/advanced-gwt
/** {@inheritDoc} */
public void setFocus(boolean focus) {
ListBox box = getListBox();
if (box != null)
box.setFocus(focus);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void setFocus(boolean focused) {
getListBox().setFocus(focused);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void setFocus(boolean focused) {
getListBox().setFocus(focused);
}
代码示例来源:origin: sk.seges.acris/acris-widgets-beantable
@Override
public void editCell(CellEditInfo cellEditInfo, ColType cellValue,
Callback<ColType> callback) {
super.editCell(cellEditInfo, cellValue, callback);
listBox.setFocus(true);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Override
public void show(int left, int top) {
setPopupPosition(left, top);
super.show();
typesList.setFocus(true);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Override
public void show() {
super.show();
center();
machinesList.setFocus(true);
}
代码示例来源:origin: fjfd/microscope
public void onClick(final ClickEvent event) {
final boolean checked = ((CheckBox) event.getSource()).getValue();
downsampler.setEnabled(checked);
interval.setEnabled(checked);
if (checked) {
downsampler.setFocus(true);
}
}
});
代码示例来源:origin: org.jboss.errai/errai-widgets
public boolean edit(WSGrid.WSCell element) {
wsCellReference = element;
editCellReference = this;
Style s = listBox.getElement().getStyle();
s.setProperty("left", element.getAbsoluteLeft() + "px");
s.setProperty("top", element.getAbsoluteTop() + "px");
listBox.clear();
int i = 0;
for (String v : values) {
listBox.addItem(v);
if (html.getHTML().equals(v)) listBox.setSelectedIndex(i);
i++;
}
listBox.setVisible(true);
listBox.setFocus(true);
return true;
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
protected static Set<String> moveSelectedItems(ListBox source, ListBox target) {
final boolean[] sel = getSelectionBitmap(source);
final Set<String> movedItems = new HashSet<>();
for (int i = 0; i < sel.length; i++) {
if (sel[i]) {
final int optionIndex = i
- (sel.length - source.getItemCount());
movedItems.add(source.getValue(optionIndex));
// Move selection to another column
final String text = source.getItemText(optionIndex);
final String value = source.getValue(optionIndex);
target.addItem(text, value);
target.setItemSelected(target.getItemCount() - 1, true);
source.removeItem(optionIndex);
}
}
target.setFocus(true);
return movedItems;
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
private Set<String> moveAllItems(ListBox source, ListBox target) {
final Set<String> movedItems = new HashSet<String>();
int size = source.getItemCount();
for (int i = 0; i < size; i++) {
movedItems.add(source.getValue(i));
final String text = source.getItemText(i);
final String value = source.getValue(i);
target.addItem(text, value);
target.setItemSelected(target.getItemCount() - 1, true);
}
target.setFocus(true);
if (source.getItemCount() > 0) {
target.setSelectedIndex(0);
}
source.clear();
return movedItems;
}
代码示例来源:origin: kiegroup/appformer
@Override
public void edit(final GridCell<String> cell,
final GridBodyCellRenderContext context,
final Consumer<GridCellValue<String>> callback) {
factory.attachDomElement(context,
e -> {
final ListBox widget = e.getWidget();
widget.addItem("one");
widget.addItem("two");
if (cell != null && cell.getValue() != null) {
for (int i = 0; i < widget.getItemCount(); i++) {
if (widget.getItemText(i).equals(cell.getValue().getValue())) {
widget.setSelectedIndex(i);
break;
}
}
}
},
e -> e.getWidget().setFocus(true));
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public void edit(final GridCell<String> cell,
final GridBodyCellRenderContext context,
final Consumer<GridCellValue<String>> callback) {
factory.attachDomElement(context,
e -> {
final ListBox widget = e.getWidget();
widget.addItem("one");
widget.addItem("two");
if (cell != null && cell.getValue() != null) {
for (int i = 0; i < widget.getItemCount(); i++) {
if (widget.getItemText(i).equals(cell.getValue().getValue())) {
widget.setSelectedIndex(i);
break;
}
}
}
},
e -> e.getWidget().setFocus(true));
}
代码示例来源:origin: de.esoco/gewt
aJoinList.setFocus(true);
aColumnList.setFocus(true);
内容来源于网络,如有侵权,请联系作者删除!