What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
missing setHideTrigger in DateField
What version of the product are you using? On what operating system?
2.0.5
Please provide any additional information below.
in original extjs:
DateField extends TriggerField (and TiggerField extends TextField)
in gwt-ext:
DateField extends TextField
-> so there are some of the triggerfield functions are missing
Solution:
make also in gwt-ext that the DateField extends TriggerField
Workaround:
/*
*
*/
package com.company.programm.client.gui.components;
import com.google.gwt.core.client.JavaScriptObject;
import com.gwtext.client.widgets.form.DateField;
/**
*
* @author
*/
public class ExtendedDateField extends DateField {
/**
* Construct a new ExtendedDateField.
*/
public ExtendedDateField() {
super();
}
/**
* Construct a new ExtendedDateField.
*
* @param fieldLabel the field label
* @param name the field name
* @param width the field width
*/
public ExtendedDateField(String fieldLabel, String name, int width) {
super(fieldLabel, name, width);
}
/**
* Construct a new ExtendedDateField.
*
* @param label the field label value
* @param format the date format value
*/
public ExtendedDateField(String label, String format) {
setFieldLabel(label);
setFormat(format);
}
public ExtendedDateField(JavaScriptObject jsObj) {
super(jsObj);
}
/**
* True to hide the trigger element and display only the base text
field (defaults to false).
*
* @param hideTrigger true to hide trigger
* @throws IllegalStateException this property cannot be changed after
the Component has been rendered
*/
public void setHideTrigger(boolean hideTrigger) throws
IllegalStateException {
setAttribute("hideTrigger", hideTrigger, true);
}
}
Original issue reported on code.google.com by nietz...@gmail.com on 12 Mar 2009 at 10:38
Original issue reported on code.google.com by
nietz...@gmail.com
on 12 Mar 2009 at 10:38