Skip to content

Commit

Permalink
#932 finished implementing the delay attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Apr 15, 2018
1 parent fab4db7 commit 26bc9ac
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public abstract class GyroscopeCore extends UICommand {

protected enum PropertyKeys {
ajax, alpha, beta, disabled, gamma, interval, oncomplete, onrotation, process, threshold, update;
ajax, alpha, beta, delay, disabled, gamma, interval, oncomplete, onrotation, process, threshold, update;
String toString;

PropertyKeys(String toString) {
Expand Down Expand Up @@ -87,6 +87,22 @@ public void setBeta(javax.el.ValueExpression _beta) {
getStateHelper().put(PropertyKeys.beta, _beta);
}

/**
* Delays the AJAX request. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getDelay() {
return (String) getStateHelper().eval(PropertyKeys.delay);
}

/**
* Delays the AJAX request. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setDelay(String _delay) {
getStateHelper().put(PropertyKeys.delay, _delay);
}

/**
* Disables the input element, default is false. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
Expand Down
18 changes: 17 additions & 1 deletion src/main/java/net/bootsfaces/component/shake/Shake.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void setValueExpression(String name, ValueExpression binding) {
}

protected enum PropertyKeys {
ajax, disabled, interval, oncomplete, onshake, process, threshold, update;
ajax, delay, disabled, interval, oncomplete, onshake, process, threshold, update;
String toString;

PropertyKeys(String toString) {
Expand Down Expand Up @@ -124,6 +124,22 @@ public void setAjax(boolean _ajax) {
getStateHelper().put(PropertyKeys.ajax, _ajax);
}

/**
* Delays the AJAX request. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getDelay() {
return (String) getStateHelper().eval(PropertyKeys.delay);
}

/**
* Delays the AJAX request. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setDelay(String _delay) {
getStateHelper().put(PropertyKeys.delay, _delay);
}

/**
* Disables the input element, default is false. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
Expand Down
12 changes: 12 additions & 0 deletions src/main/meta/META-INF/bootsfaces-b.taglib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10195,6 +10195,12 @@
<required>false</required>
<type>javax.el.ValueExpression</type>
</attribute>
<attribute>
<description><![CDATA[Delays the AJAX request.]]></description>
<name>delay</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<description><![CDATA[Disables the input element, default is false.]]></description>
<name>disabled</name>
Expand Down Expand Up @@ -20685,6 +20691,12 @@
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
<attribute>
<description><![CDATA[Delays the AJAX request.]]></description>
<name>delay</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<description><![CDATA[Disables the input element, default is false.]]></description>
<name>disabled</name>
Expand Down
2 changes: 2 additions & 0 deletions xtext/BootsFaces.jsfdsl
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ widget gyroscope
alpha javax.el.ValueExpression "Variable to store the alpha value of the gyroscope's rotation"
beta javax.el.ValueExpression "Variable to store the beta value of the gyroscope's rotation"
gamma javax.el.ValueExpression "Variable to store the gamma value of the gyroscope's rotation"
delay "Delays the AJAX request."
disabled Boolean "Disables the input element, default is false."
id inherited "Unique identifier of the component in a namingContainer."
interval Integer default "500" "Specifies the delay (in milliseconds) between each slide."
Expand Down Expand Up @@ -1832,6 +1833,7 @@ widget shake
action javax.el.MethodExpression inherited "The button action, this can be method expression or a string outcome."
action-listener javax.faces.event.ActionListener inherited "A method expression that refers to a method with this signature: void methodName(Action-Event)."
ajax Boolean "Whether the Button submits the form with AJAX."
delay "Delays the AJAX request."
disabled Boolean "Disables the input element, default is false."
id inherited "Unique identifier of the component in a namingContainer."
interval Integer default "500" "Specifies the delay (in milliseconds) between each slide."
Expand Down

0 comments on commit 26bc9ac

Please sign in to comment.