[Schmitzm-commits] r1914 - in trunk/schmitzm-core/src/main: java/de/schmitzm/swing resources/de/schmitzm/swing/resource/locales
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Tue Mar 27 00:53:33 CEST 2012
Author: mojays
Date: 2012-03-27 00:53:32 +0200 (Tue, 27 Mar 2012)
New Revision: 1914
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/InfoDialog.java
trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle.properties
trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle_de.properties
Log:
InfoDialog: field for contact person
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/InfoDialog.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/InfoDialog.java 2012-03-26 21:48:15 UTC (rev 1913)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/InfoDialog.java 2012-03-26 22:53:32 UTC (rev 1914)
@@ -115,6 +115,7 @@
* <li>Java version</li>
* <li>JVM memory (total/used/free)</li>
* <li>Timezone</li>
+ * <li>Contact</li>
* </ul>
* @author <a href="mailto:martin.schmitz at koeln.de">Martin Schmitz</a>
*/
@@ -132,6 +133,10 @@
* in {@link #updateInformation()} or by {@link #setVersionDate(Object)} . */
protected Object versionDate = "";
+ /** Holds the application contact person. Must be set by sub class
+ * in {@link #updateInformation()} or by {@link #setContact(String)} . */
+ protected String contact = "";
+
/** Format zur Anzeige des JVM-Speichers */
private static final DecimalFormat MEM_FORMAT = new DecimalFormat("0.0");
@@ -155,6 +160,7 @@
ROW_NAMES.add(SwingUtil.R("InfoDialog.Java.Version"));
ROW_NAMES.add(SwingUtil.R("InfoDialog.JVM.Memory"));
ROW_NAMES.add(SwingUtil.R("InfoDialog.Timezone"));
+ ROW_NAMES.add(SwingUtil.R("InfoDialog.Contact"));
}
/**
@@ -219,6 +225,20 @@
}
/**
+ * Returns the contact person.
+ */
+ public String getContact() {
+ return contact;
+ }
+
+ /**
+ * Sets the contact person.
+ */
+ public void setContact(String contact) {
+ this.contact = contact;
+ }
+
+ /**
* Updates the (meta) information of the dialog. This default implementation does
* nothing but calling {@link #fireTableDataChanged()}. Sub classes can
* override this method to determine advanced information (e.g. JDBC meta data)
@@ -250,6 +270,7 @@
MEM_FORMAT.format( freeMem*1.0/LangUtil.MB_BYTES ) + " MB (" +
MEM_FORMAT.format( freeMemPerc ) + "% "+SwingUtil.R("InfoDialog.JVM.Memory.available")+")";
case 4: return LangUtil.getTimezoneDescription(TimeZone.LONG);
+ case 5: return contact;
}
} catch (Exception err) {
return "<"+SwingUtil.R("Error")+": "+err.getMessage()+">";
Modified: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle.properties
===================================================================
--- trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle.properties 2012-03-26 21:48:15 UTC (rev 1913)
+++ trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle.properties 2012-03-26 22:53:32 UTC (rev 1914)
@@ -293,4 +293,5 @@
InfoDialog.JVM.Memory=JVM memory total / used / free
InfoDialog.JVM.Memory.available=available
InfoDialog.Timezone=Timezone
+InfoDialog.Contact=Contact
Modified: trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle_de.properties
===================================================================
--- trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle_de.properties 2012-03-26 21:48:15 UTC (rev 1913)
+++ trunk/schmitzm-core/src/main/resources/de/schmitzm/swing/resource/locales/SwingResourceBundle_de.properties 2012-03-26 22:53:32 UTC (rev 1914)
@@ -266,3 +266,4 @@
InfoDialog.JVM.Memory=JVM Speicher gesamt / belegt / frei
InfoDialog.JVM.Memory.available=verfügbar
InfoDialog.Timezone=Zeitzone
+InfoDialog.Contact=Kontakt
\ No newline at end of file
More information about the Schmitzm-commits
mailing list