[Schmitzm-commits] r1666 - in trunk/schmitzm-core/src/main: java/de/schmitzm/lang java/de/schmitzm/swing resources/de/schmitzm/swing/resource/icons/small

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 5 00:56:20 CEST 2011


Author: mojays
Date: 2011-08-05 00:56:17 +0200 (Fri, 05 Aug 2011)
New Revision: 1666

Added:
   trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_away.png
   trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_busy.png
   trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_offline.png
   trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_online.png
   trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/zoom2.png
Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AbstractActionTextPanel.java
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/DialogManager.java
Log:
new Icons
LangUtil.parseDate(.) with RuntimeException instead of ParseException


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2011-08-02 12:35:21 UTC (rev 1665)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2011-08-04 22:56:17 UTC (rev 1666)
@@ -241,7 +241,7 @@
 	 * @param pattern
 	 *            date format pattern to try
 	 */
-	public static Date parseDate(String dateStr, String... pattern) throws ParseException {
+	public static Date parseDate(String dateStr, String... pattern) {
 		DateFormat[] formats = new DateFormat[pattern.length];
 		for (int i = 0; i < formats.length; i++)
 			formats[i] = new SimpleDateFormat(pattern[i]);
@@ -256,7 +256,8 @@
 	 * @param formats
 	 *            date formats to try
 	 */
-	public static Date parseDate(String dateStr, DateFormat... formats) throws ParseException {
+	public static Date parseDate(String dateStr, DateFormat... formats) {
+	  try {
 		if (dateStr == null || dateStr.trim().equals(""))
 			return null;
 		dateStr = dateStr.trim();
@@ -267,6 +268,9 @@
 			} catch (Exception err) {
 			}
 		throw new ParseException("Could not parse date: " + dateStr, 0);
+	  } catch ( ParseException err) {
+	    throw new UnsupportedOperationException(err);
+	  }
 	}
 
 	/**

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AbstractActionTextPanel.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AbstractActionTextPanel.java	2011-08-02 12:35:21 UTC (rev 1665)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AbstractActionTextPanel.java	2011-08-04 22:56:17 UTC (rev 1666)
@@ -98,7 +98,15 @@
    */
   public abstract JTextComponent createTextComponent();
   
+  
   /**
+   * Returns the text component of the panel.
+   */
+  public JTextComponent getTextComponent() {
+    return textField;
+  }
+  
+  /**
    * Piped to {@link #textField}.
    */
   public void setText(String text) {

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/DialogManager.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/DialogManager.java	2011-08-02 12:35:21 UTC (rev 1665)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/DialogManager.java	2011-08-04 22:56:17 UTC (rev 1666)
@@ -164,6 +164,8 @@
 	public DIALOG showInstanceFor(KEY key, Component owner, Object... constArgs) {
 	  DIALOG dialog = getInstanceFor(key, owner, constArgs);
 	  if ( dialog != null ) {
+//	    if ( dialog.isMinimumSizeSet() )
+//	      dialog.
 	    dialog.setVisible(true);
 	    dialog.toFront();
 	  }

Added: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_away.png
===================================================================
(Binary files differ)


Property changes on: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_away.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_busy.png
===================================================================
(Binary files differ)


Property changes on: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_busy.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_offline.png
===================================================================
(Binary files differ)


Property changes on: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_offline.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_online.png
===================================================================
(Binary files differ)


Property changes on: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/status_online.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/zoom2.png
===================================================================
(Binary files differ)


Property changes on: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/icons/small/zoom2.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the Schmitzm-commits mailing list