本文整理汇总了Java中org.gwtbootstrap3.client.ui.HelpBlock类的典型用法代码示例。如果您正苦于以下问题:Java HelpBlock类的具体用法?Java HelpBlock怎么用?Java HelpBlock使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HelpBlock类属于org.gwtbootstrap3.client.ui包,在下文中一共展示了HelpBlock类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setUp
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
@Before
public void setUp() {
view.fileNameTextBox = mock(TextBox.class);
view.fileNameHelpInline = mock(HelpBlock.class);
view.translationService = mock(TranslationService.class);
view.packageHelpInline = mock(HelpBlock.class);
view.handlerExtensions = mock(FlowPanel.class);
view.fileTypeLabel = mock(FormLabel.class);
view.modal = modal;
view.packageListBox = packageListBox;
view.init(presenter);
when(view.handlerExtensionsGroup.getStyle()).thenReturn(handlerExtensionsGroupStyle);
when(handler.getDescription()).thenReturn(HANDLER_DESCRIPTION);
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:17,代码来源:NewResourceViewTest.java
示例2: ConstraintMatchInputWidget
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
public ConstraintMatchInputWidget(final AbstractActionConstraintMatch actionConstraintMatch) {
constraintMatchTextBox = new TextBox();
helpBlock = new HelpBlock();
add(constraintMatchTextBox);
add(helpBlock);
constraintMatchTextBox.setValue(actionConstraintMatch.getConstraintMatch() == null ? "" : actionConstraintMatch.getConstraintMatch());
constraintMatchTextBox.setEnabled(false);
}
开发者ID:kiegroup,项目名称:optaplanner-wb,代码行数:10,代码来源:ConstraintMatchInputWidget.java
示例3: createField
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
static PropertyEditorItemWidget createField(final PropertyEditorFieldInfo field,
final PropertyEditorItemsWidget parent,
PropertyEditorCategory category,
Form panelBody) {
PropertyEditorItemWidget itemWidget = GWT.create(PropertyEditorItemWidget.class);
InputGroup content = GWT.create(InputGroup.class);
HelpBlock helpBlock = GWT.create(HelpBlock.class);
PropertyEditorFieldType editorFieldType = PropertyEditorFieldType.getFieldTypeFrom(field);
Widget fieldWidget;
if (editorFieldType == PropertyEditorFieldType.CUSTOM) {
Class<?> widgetClass = ((CustomPropertyEditorFieldInfo) field).getCustomEditorClass();
fieldWidget = getWidget(field,
widgetClass);
} else {
fieldWidget = editorFieldType.widget(field);
}
createErrorHandlingInfraStructure(parent,
fieldWidget);
content.add(fieldWidget);
content.add(helpBlock);
parent.setHelpInline(helpBlock);
field.getOptions().forEach(option -> PropertyEditorFieldOptionUtils.applyFieldOption(option,
fieldWidget));
if (field.isRemovalSupported()) {
content.add(createRemoveAddOn(field,
category,
parent,
panelBody));
}
itemWidget.add(content);
return itemWidget;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:39,代码来源:PropertyEditorHelper.java
示例4: validateFieldInline
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
public boolean validateFieldInline(String value,
FormGroup field,
HelpBlock help) {
if (!isValid(value)) {
field.setValidationState(ValidationState.ERROR);
help.setText(getValidationError());
return false;
} else {
field.setValidationState(ValidationState.NONE);
help.setText("");
return true;
}
}
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:RuleValidator.java
示例5: setup
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
@Before
public void setup() {
field = mock(FormGroup.class);
help = mock(HelpBlock.class);
validRuleValidator = new RuleValidator() {
@Override
public boolean isValid(final String value) {
return true;
}
@Override
public String getValidationError() {
return null;
}
};
invalidRuleValidator = new RuleValidator() {
@Override
public boolean isValid(final String value) {
return false;
}
@Override
public String getValidationError() {
return ERROR_MESSAGE;
}
};
}
开发者ID:kiegroup,项目名称:appformer,代码行数:30,代码来源:RuleValidatorTest.java
示例6: findHelpBlock
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
/**
* Find the sibling {@link HelpBlock}.
*
* @param widget the {@link Widget} to search.
* @return the found {@link HelpBlock} of null if not found.
*/
private HelpBlock findHelpBlock(Widget widget) {
if (widget instanceof HelpBlock) { return (HelpBlock) widget; }
// Try and find the HelpBlock in the children of the given widget.
if (widget instanceof HasWidgets) {
for (Widget w : (HasWidgets) widget) {
if (w instanceof HelpBlock) { return (HelpBlock) w; }
}
}
if (!(widget instanceof HasValidationState)) {
// Try and find the HelpBlock in the parent of widget.
return findHelpBlock(widget.getParent());
}
return null;
}
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:21,代码来源:DefaultErrorHandler.java
示例7: toggleInfoBlock
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
private void toggleInfoBlock(final HelpBlock infoblock) {
if(infoblock.getText().equals(""))
infoblock.setVisible(false);
else
infoblock.setVisible(true);
}
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:7,代码来源:PropertyFormGroup.java
示例8: setHelpInline
import org.gwtbootstrap3.client.ui.HelpBlock; //导入依赖的package包/类
public void setHelpInline(HelpBlock helpInline) {
this.helpInline = helpInline;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:4,代码来源:PropertyEditorItemsWidget.java
注:本文中的org.gwtbootstrap3.client.ui.HelpBlock类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论