本文整理了Java中com.google.gwt.user.client.ui.ListBox.addStyleName()
方法的一些代码示例,展示了ListBox.addStyleName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListBox.addStyleName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.ListBox
类名称:ListBox
方法名:addStyleName
暂无
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public void onFocus(FocusEvent event) {
listBox.addStyleName("KS-Dropdown-Focus");
}
});
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public void onMouseOver(MouseOverEvent event) {
listBox.addStyleName("KS-Dropdown-Hover");
}
});
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public void onClick(ClickEvent event) {
if(listBox.getSelectedIndex() != -1){
listBox.addStyleName("KS-Dropdown-Selected");
}
else{
listBox.removeStyleName("KS-Dropdown-Selected");
}
}
});
代码示例来源:origin: bedatadriven/activityinfo
public EnumDropDownWidget(EnumType enumType, final ValueUpdater<EnumValue> valueUpdater) {
this.enumType = enumType;
this.valueUpdater = valueUpdater;
dropBox = new ListBox(enumType.getCardinality() == Cardinality.MULTIPLE);
dropBox.addStyleName("form-control");
// Empty value
dropBox.addItem("");
for (EnumItem enumItem : enumType.getValues()) {
dropBox.addItem(enumItem.getLabel());
}
dropBox.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
fireValueChanged();
}
});
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
private void setupDefaultStyle() {
listBox.addStyleName("KS-Dropdown");
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
disabledNextLink.addStyleName( "dtPaginateDisabled" );
nextLink.setStyleName( "dtPaginateFrame" );
pageSizeList.addStyleName( "dtPaginateFrame" );
代码示例来源:origin: bedatadriven/activityinfo
public ComboBoxFieldWidget(ResourceId formId, final OptionSet range, final ValueUpdater<ReferenceValue> valueUpdater) {
this.formId = formId;
this.valueUpdater = valueUpdater;
dropBox = new ListBox(false);
dropBox.addStyleName("form-control");
dropBox.addItem("", (String)null);
for (int i = 0; i < range.getCount(); i++) {
dropBox.addItem(
range.getLabel(i),
range.getRef(i).toQualifiedString());
}
dropBox.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
fireValueChanged();
}
});
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
institutionListBox.addStyleName( "valueListBox" );
institutionListBox.addStyleName( "institutionListBox" );
institutionListBox.addItem("All Collections");
institutionListBox.addItem("Choose Collections...");
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
selectedPanel.addStyleName(SELECTED_PANEL_STYLE);
rightPanel.add(selectedPanel);
代码示例来源:origin: OpenNMS/opennms
m_severityBox.addStyleName(css.label());
代码示例来源:origin: org.opennms.features/vaadin-node-maps
m_severityBox.addStyleName(css.label());
内容来源于网络,如有侵权,请联系作者删除!