com.google.gwt.user.client.ui.TextBoxBase Java Examples
The following examples show how to use
com.google.gwt.user.client.ui.TextBoxBase.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UniTimeTable.java From unitime with Apache License 2.0 | 6 votes |
private boolean focus(int row, int col) { if (!getRowFormatter().isVisible(row) || col >= getCellCount(row)) return false; Widget w = super.getWidget(row, col); if (w == null || !w.isVisible()) return false; if (w instanceof SmartTableCell) { return ((SmartTableCell)w).focus(); } else if (w instanceof HasFocus) { return ((HasFocus)w).focus(); } else if (w instanceof Focusable) { ((Focusable)w).setFocus(true); if (w instanceof TextBoxBase) ((TextBoxBase)w).selectAll(); return true; } return false; }
Example #2
Source File: StringLtValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringLtValidator(TextBoxBase text, String value, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; setValue(value); this.setCustomMsgKey(customMsgKey); }
Example #3
Source File: StringLtValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringLtValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; this.setCustomMsgKey(customMsgKey); }
Example #4
Source File: StringMaxLengthValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringMaxLengthValidator(TextBoxBase text, int max, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; setMax(max); this.setCustomMsgKey(customMsgKey); }
Example #5
Source File: StringMaxLengthValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringMaxLengthValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; this.setCustomMsgKey(customMsgKey); }
Example #6
Source File: StringGtValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringGtValidator(TextBoxBase text, String value, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; setVAlue(value); this.setCustomMsgKey(customMsgKey); }
Example #7
Source File: StringGtValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringGtValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; this.setCustomMsgKey(customMsgKey); }
Example #8
Source File: IntegerMinValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public IntegerMinValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new RuntimeException("text must not be null"); this.text = text; this.setCustomMsgKey(customMsgKey); }
Example #9
Source File: IntegerMaxValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public IntegerMaxValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new RuntimeException("text must not be null"); this.text = text; this.setCustomMsgKey(customMsgKey); }
Example #10
Source File: StringMinLengthValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringMinLengthValidator(TextBoxBase text, int min, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; setMin(min); this.setCustomMsgKey(customMsgKey); }
Example #11
Source File: StringMinLengthValidator.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public StringMinLengthValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain, String customMsgKey) { super(); this.setPreventsPropagationOfValidationChain(preventsPropagationOfValidationChain); if (text == null) throw new IllegalArgumentException("text must not be null"); this.text = text; this.setCustomMsgKey(customMsgKey); }
Example #12
Source File: UniTimeTable.java From unitime with Apache License 2.0 | 5 votes |
public boolean focus() { if (getWidget() instanceof HasFocus) { return ((HasFocus)getWidget()).focus(); } else if (getWidget() instanceof Focusable) { ((Focusable)getWidget()).setFocus(true); if (getWidget() instanceof TextBoxBase) ((TextBoxBase)getWidget()).selectAll(); return true; } return false; }
Example #13
Source File: StringMaxLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMaxLengthValidator(TextBoxBase text, int max) { this(text, max, false); }
Example #14
Source File: StringMaxLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMaxLengthValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain) { this(text, preventsPropagationOfValidationChain, null); }
Example #15
Source File: IntegerMaxValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public IntegerMaxValidator(TextBoxBase text, int min, String customMsgKey) { this.text = text; this.max = min; this.setCustomMsgKey(customMsgKey); }
Example #16
Source File: StringMaxLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMaxLengthValidator(TextBoxBase text, int max, boolean preventsPropagationOfValidationChain) { this(text, max, preventsPropagationOfValidationChain, null); }
Example #17
Source File: StringMaxLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMaxLengthValidator(TextBoxBase text) { this(text, false); }
Example #18
Source File: NumericValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public NumericValidator(TextBoxBase text) { this.textBox = text; }
Example #19
Source File: IntegerMinValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public IntegerMinValidator(TextBoxBase text) { this(text, null); }
Example #20
Source File: IntegerMinValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public IntegerMinValidator(TextBoxBase text, String customMsgKey) { this(text, false); }
Example #21
Source File: IntegerMinValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public IntegerMinValidator(TextBoxBase text, int min) { this.text = text; this.min = min; }
Example #22
Source File: IntegerMinValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public IntegerMinValidator(TextBoxBase text, int min, String customMsgKey) { this.text = text; this.min = min; this.setCustomMsgKey(customMsgKey); }
Example #23
Source File: IntegerMinValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public IntegerMinValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain) { this(text, preventsPropagationOfValidationChain, null); }
Example #24
Source File: RegularExpressionValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public RegularExpressionValidator(TextBoxBase text, String regexPattern) { this.textBox = text; this.regexPattern = regexPattern; }
Example #25
Source File: DecimalValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public DecimalValidator(TextBoxBase text) { this.textBox = text; }
Example #26
Source File: StringLtValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringLtValidator(TextBoxBase text, String value) { this(text, value, false); }
Example #27
Source File: StringMinLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMinLengthValidator(TextBoxBase text, int min) { this(text, min, false); }
Example #28
Source File: StringMinLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMinLengthValidator(TextBoxBase text, boolean preventsPropagationOfValidationChain) { this(text, preventsPropagationOfValidationChain, null); }
Example #29
Source File: StringMinLengthValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringMinLengthValidator(TextBoxBase text, int min, boolean preventsPropagationOfValidationChain) { this(text, min, preventsPropagationOfValidationChain, null); }
Example #30
Source File: StringGtValidator.java From document-management-system with GNU General Public License v2.0 | 4 votes |
public StringGtValidator(TextBoxBase text) { this(text, false); }