incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r494816 - in /incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert: ColorConverter.java DateTimeConverter.java
Date Wed, 10 Jan 2007 14:06:07 GMT
Author: matzew
Date: Wed Jan 10 06:06:07 2007
New Revision: 494816

URL: http://svn.apache.org/viewvc?view=rev&rev=494816
Log:
some converter works

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/ColorConverter.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/ColorConverter.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/ColorConverter.java?view=diff&rev=494816&r1=494815&r2=494816
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/ColorConverter.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/ColorConverter.java
Wed Jan 10 06:06:07 2007
@@ -454,7 +454,28 @@
   {
     return ComponentUtils.resolveString(_facesBean.getProperty(_CONVERT_MESSAGE_DETAIL_KEY));
   }
-  
+
+  /**
+   * <p>Custom hint message.</p>
+   * Overrides default hint message
+   * @param hintFormat Custom hint message.
+   */
+  public void setHintFormat(String hintFormat)
+  {
+    _facesBean.setProperty(_HINT_FORMAT_KEY, hintFormat);
+  }
+
+  /**
+   * <p>Return custom hint message.</p>
+   * @return Custom hint message.
+   * @see  #setHintFormat(String)
+   */
+  public String getHintFormat()
+  {
+    Object obj = _facesBean.getProperty(_HINT_FORMAT_KEY);
+    return ComponentUtils.resolveString(obj);
+  }
+
   protected String getTransparentString(FacesContext context)
   {
     String msg = MessageFactory.getString(context, TRANSPARENT);
@@ -609,6 +630,9 @@
 
   private static final PropertyKey _CONVERT_MESSAGE_DETAIL_KEY
     = _TYPE.registerKey("messageDetailConvert", String.class);
+
+  private static final PropertyKey  _HINT_FORMAT_KEY =
+    _TYPE.registerKey("hintFormat", String.class);
 
   private FacesBean _facesBean = ConverterUtils.getFacesBean(_TYPE);
 

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java?view=diff&rev=494816&r1=494815&r2=494816
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
Wed Jan 10 06:06:07 2007
@@ -420,6 +420,27 @@
   }
 
   /**
+   * <p>Custom hint message.</p>
+   * Overrides default hint message
+   * @param hintFormat Custom hint message.
+   */
+  public void setHintFormat(String hintFormat)
+  {
+    _facesBean.setProperty(_HINT_FORMAT_KEY, hintFormat);
+  }
+
+  /**
+   * <p>Return custom hint message.</p>
+   * @return Custom hint message.
+   * @see  #setHintFormat(String)
+   */
+  public String getHintFormat()
+  {
+    Object obj = _facesBean.getProperty(_HINT_FORMAT_KEY);
+    return ComponentUtils.resolveString(obj);
+  }
+
+  /**
    * Gets the existing date from the component.
    * This date will be used to fill in missing portions of the new date.
    * For example, if the new date is missing the time, the time portion
@@ -1721,6 +1742,9 @@
 
   private static final PropertyKey _CONVERT_BOTH_MESSAGE_DETAIL_KEY
     = _TYPE.registerKey("messageDetailConvertBoth", String.class);
+  
+  private static final PropertyKey  _HINT_FORMAT_KEY =
+    _TYPE.registerKey("hintFormat", String.class);
 
   private FacesBean _facesBean = ConverterUtils.getFacesBean(_TYPE);
 



Mime
View raw message