You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by id...@apache.org on 2007/05/04 14:31:46 UTC
svn commit: r535208 - in
/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago:
application/ component/ model/ renderkit/html/scarborough/standard/tag/
taglib/sandbox/
Author: idus
Date: Fri May 4 05:31:44 2007
New Revision: 535208
URL: http://svn.apache.org/viewvc?view=rev&rev=535208
Log:
checkstyle: eol style
Modified:
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/application/FoViewHandlerImpl.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UIInputNumberSlider.java (contents, props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UISeparator.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/model/MixedTreeModel.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SeparatorRenderer.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTag.java (contents, props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTagDeclaration.java (contents, props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTagDeclaration.java (props changed)
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/package-info.java (props changed)
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/application/FoViewHandlerImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UIInputNumberSlider.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UIInputNumberSlider.java?view=diff&rev=535208&r1=535207&r2=535208
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UIInputNumberSlider.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UIInputNumberSlider.java Fri May 4 05:31:44 2007
@@ -1,127 +1,127 @@
-package org.apache.myfaces.tobago.component;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.myfaces.tobago.TobagoConstants;
-
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
-import javax.faces.validator.LongRangeValidator;
-import javax.faces.validator.ValidatorException;
-
-public class UIInputNumberSlider extends javax.faces.component.UIInput {
-
- public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.InputNumberSlider";
-
- private Boolean readonly;
- private Boolean disabled;
- private Integer min;
- private Integer max;
-
- public Boolean isReadonly() {
- if (readonly != null) {
- return readonly;
- }
- ValueBinding vb = getValueBinding(TobagoConstants.ATTR_READONLY);
- if (vb == null) {
- return false;
- } else {
- return (Boolean.TRUE.equals(vb.getValue(getFacesContext())));
- }
- }
-
- public void setReadonly(Boolean readonly) {
- this.readonly = readonly;
- }
-
- public Boolean isDisabled() {
- if (disabled != null) {
- return disabled;
- }
- ValueBinding vb = getValueBinding(TobagoConstants.ATTR_DISABLED);
- if (vb == null) {
- return false;
- } else {
- return (Boolean.TRUE.equals(vb.getValue(getFacesContext())));
- }
- }
-
- public void setDisabled(Boolean disabled) {
- this.disabled = disabled;
- }
-
- public Integer getMin() {
- if (min != null) {
- return min;
- }
- ValueBinding vb = getValueBinding("min");
- if (vb != null) {
- return (Integer) vb.getValue(getFacesContext());
- } else {
- return 0;
- }
- }
-
- public void setMin(Integer min) {
- this.min = min;
- }
-
- public Integer getMax() {
- if (max != null) {
- return max;
- }
- ValueBinding vb = getValueBinding("max");
- if (vb != null) {
- return (Integer) vb.getValue(getFacesContext());
- } else {
- return 100;
- }
- }
-
- public void setMax(Integer max) {
- this.max = max;
- }
-
- public void restoreState(FacesContext context, Object state) {
- Object[] values = (Object[]) state;
- super.restoreState(context, values[0]);
- readonly = (Boolean) values[1];
- min = (Integer) values[2];
- max = (Integer) values[3];
- disabled = (Boolean) values[4];
- }
-
- public Object saveState(FacesContext context) {
- Object[] values = new Object[5];
- values[0] = super.saveState(context);
- values[1] = readonly;
- values[2] = min;
- values[3] = max;
- values[4] = disabled;
- return values;
- }
-
- public void validate(FacesContext context) {
- super.validate(context);
- try {
- new LongRangeValidator(max, min).validate(context, this, getValue());
- } catch (ValidatorException e) {
- context.addMessage(getClientId(context), e.getFacesMessage());
- }
- }
-}
+package org.apache.myfaces.tobago.component;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.myfaces.tobago.TobagoConstants;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.validator.LongRangeValidator;
+import javax.faces.validator.ValidatorException;
+
+public class UIInputNumberSlider extends javax.faces.component.UIInput {
+
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.InputNumberSlider";
+
+ private Boolean readonly;
+ private Boolean disabled;
+ private Integer min;
+ private Integer max;
+
+ public Boolean isReadonly() {
+ if (readonly != null) {
+ return readonly;
+ }
+ ValueBinding vb = getValueBinding(TobagoConstants.ATTR_READONLY);
+ if (vb == null) {
+ return false;
+ } else {
+ return (Boolean.TRUE.equals(vb.getValue(getFacesContext())));
+ }
+ }
+
+ public void setReadonly(Boolean readonly) {
+ this.readonly = readonly;
+ }
+
+ public Boolean isDisabled() {
+ if (disabled != null) {
+ return disabled;
+ }
+ ValueBinding vb = getValueBinding(TobagoConstants.ATTR_DISABLED);
+ if (vb == null) {
+ return false;
+ } else {
+ return (Boolean.TRUE.equals(vb.getValue(getFacesContext())));
+ }
+ }
+
+ public void setDisabled(Boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public Integer getMin() {
+ if (min != null) {
+ return min;
+ }
+ ValueBinding vb = getValueBinding("min");
+ if (vb != null) {
+ return (Integer) vb.getValue(getFacesContext());
+ } else {
+ return 0;
+ }
+ }
+
+ public void setMin(Integer min) {
+ this.min = min;
+ }
+
+ public Integer getMax() {
+ if (max != null) {
+ return max;
+ }
+ ValueBinding vb = getValueBinding("max");
+ if (vb != null) {
+ return (Integer) vb.getValue(getFacesContext());
+ } else {
+ return 100;
+ }
+ }
+
+ public void setMax(Integer max) {
+ this.max = max;
+ }
+
+ public void restoreState(FacesContext context, Object state) {
+ Object[] values = (Object[]) state;
+ super.restoreState(context, values[0]);
+ readonly = (Boolean) values[1];
+ min = (Integer) values[2];
+ max = (Integer) values[3];
+ disabled = (Boolean) values[4];
+ }
+
+ public Object saveState(FacesContext context) {
+ Object[] values = new Object[5];
+ values[0] = super.saveState(context);
+ values[1] = readonly;
+ values[2] = min;
+ values[3] = max;
+ values[4] = disabled;
+ return values;
+ }
+
+ public void validate(FacesContext context) {
+ super.validate(context);
+ try {
+ new LongRangeValidator(max, min).validate(context, this, getValue());
+ } catch (ValidatorException e) {
+ context.addMessage(getClientId(context), e.getFacesMessage());
+ }
+ }
+}
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UIInputNumberSlider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UISeparator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/model/MixedTreeModel.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SeparatorRenderer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTag.java?view=diff&rev=535208&r1=535207&r2=535208
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTag.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTag.java Fri May 4 05:31:44 2007
@@ -1,85 +1,85 @@
-package org.apache.myfaces.tobago.taglib.sandbox;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.myfaces.tobago.component.ComponentUtil;
-import org.apache.myfaces.tobago.component.UIInputNumberSlider;
-import org.apache.myfaces.tobago.taglib.component.TobagoTag;
-
-import javax.faces.component.EditableValueHolder;
-import javax.faces.component.UIComponent;
-
-public class InputNumberSliderTag extends TobagoTag
- implements InputNumberSliderTagDeclaration {
-
- private String max;
- private String min;
- private String value;
- private String valueChangeListener;
-
- public String getComponentType() {
- return UIInputNumberSlider.COMPONENT_TYPE;
- }
-
- public String getMax() {
- return max;
- }
-
- public void setMax(String max) {
- this.max = max;
- }
-
- public String getMin() {
- return min;
- }
-
- public void setMin(String min) {
- this.min = min;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public void setValueChangeListener(String valueChangeListener) {
- this.valueChangeListener = valueChangeListener;
- }
-
- protected void setProperties(UIComponent component) {
- super.setProperties(component);
- ComponentUtil.setIntegerProperty(component, "min", min);
- ComponentUtil.setIntegerProperty(component, "max", max);
- ComponentUtil.setStringProperty(component, "value", value);
- if (component instanceof EditableValueHolder) {
- EditableValueHolder editableValueHolder = (EditableValueHolder) component;
- ComponentUtil.setValueChangeListener(editableValueHolder, valueChangeListener);
- }
- }
-
- public void release() {
- super.release();
- min = null;
- max = null;
- value = null;
- valueChangeListener = null;
- }
-}
+package org.apache.myfaces.tobago.taglib.sandbox;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.myfaces.tobago.component.UIInputNumberSlider;
+import org.apache.myfaces.tobago.taglib.component.TobagoTag;
+
+import javax.faces.component.EditableValueHolder;
+import javax.faces.component.UIComponent;
+
+public class InputNumberSliderTag extends TobagoTag
+ implements InputNumberSliderTagDeclaration {
+
+ private String max;
+ private String min;
+ private String value;
+ private String valueChangeListener;
+
+ public String getComponentType() {
+ return UIInputNumberSlider.COMPONENT_TYPE;
+ }
+
+ public String getMax() {
+ return max;
+ }
+
+ public void setMax(String max) {
+ this.max = max;
+ }
+
+ public String getMin() {
+ return min;
+ }
+
+ public void setMin(String min) {
+ this.min = min;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public void setValueChangeListener(String valueChangeListener) {
+ this.valueChangeListener = valueChangeListener;
+ }
+
+ protected void setProperties(UIComponent component) {
+ super.setProperties(component);
+ ComponentUtil.setIntegerProperty(component, "min", min);
+ ComponentUtil.setIntegerProperty(component, "max", max);
+ ComponentUtil.setStringProperty(component, "value", value);
+ if (component instanceof EditableValueHolder) {
+ EditableValueHolder editableValueHolder = (EditableValueHolder) component;
+ ComponentUtil.setValueChangeListener(editableValueHolder, valueChangeListener);
+ }
+ }
+
+ public void release() {
+ super.release();
+ min = null;
+ max = null;
+ value = null;
+ valueChangeListener = null;
+ }
+}
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTag.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTagDeclaration.java?view=diff&rev=535208&r1=535207&r2=535208
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTagDeclaration.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTagDeclaration.java Fri May 4 05:31:44 2007
@@ -1,52 +1,52 @@
-package org.apache.myfaces.tobago.taglib.sandbox;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.myfaces.tobago.apt.annotation.Tag;
-import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
-import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
-import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
-import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
-import org.apache.myfaces.tobago.taglib.decl.HasValue;
-import org.apache.myfaces.tobago.taglib.decl.HasValueChangeListener;
-import org.apache.myfaces.tobago.taglib.decl.IsDisabled;
-import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
-
-@Tag(name = "numberSlider")
-@UIComponentTag(rendererType = "InputNumberSlider",
- uiComponent = "org.apache.myfaces.tobago.component.UIInputNumberSlider")
-public interface InputNumberSliderTagDeclaration extends
- HasIdBindingAndRendered, IsReadonly, IsDisabled,
- HasValue, HasValueChangeListener {
-
- /**
- * The minimum integer that can be entered and which represents the left
- * border of the slider.
- */
- @TagAttribute()
- @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "0")
- void setMin(String min);
-
- /**
- * The maximum integer that can be entered and which represents the rigth
- * border of the slider.
- */
- @TagAttribute()
- @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "100")
- void setMax(String max);
-}
+package org.apache.myfaces.tobago.taglib.sandbox;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.myfaces.tobago.apt.annotation.Tag;
+import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
+import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
+import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
+import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
+import org.apache.myfaces.tobago.taglib.decl.HasValue;
+import org.apache.myfaces.tobago.taglib.decl.HasValueChangeListener;
+import org.apache.myfaces.tobago.taglib.decl.IsDisabled;
+import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
+
+@Tag(name = "numberSlider")
+@UIComponentTag(rendererType = "InputNumberSlider",
+ uiComponent = "org.apache.myfaces.tobago.component.UIInputNumberSlider")
+public interface InputNumberSliderTagDeclaration extends
+ HasIdBindingAndRendered, IsReadonly, IsDisabled,
+ HasValue, HasValueChangeListener {
+
+ /**
+ * The minimum integer that can be entered and which represents the left
+ * border of the slider.
+ */
+ @TagAttribute()
+ @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "0")
+ void setMin(String min);
+
+ /**
+ * The maximum integer that can be entered and which represents the rigth
+ * border of the slider.
+ */
+ @TagAttribute()
+ @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "100")
+ void setMax(String max);
+}
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/InputNumberSliderTagDeclaration.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTag.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/SeparatorTagDeclaration.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/taglib/sandbox/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native