aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/features/FeatureDateField.java
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-02-12 00:33:32 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-02-12 00:33:32 +0000
commit44083ece0d88dbb23e0a7f38ee91fe0a7285fe9f (patch)
tree3a10c29b4efa0455db15d9634e3030c4fce7cdd5 /src/com/itmill/toolkit/demo/features/FeatureDateField.java
parent042b77b476da0616509160538be8c5e20ed1c010 (diff)
downloadvaadin-framework-44083ece0d88dbb23e0a7f38ee91fe0a7285fe9f.tar.gz
vaadin-framework-44083ece0d88dbb23e0a7f38ee91fe0a7285fe9f.zip
Many language fixes.
Removed TODO's. Added documentational content. Removed most pictures which are no longer required. - also this slows down loading of the application on "slow" links. - pictures were not that good anyway. Property panel is now also applicable. Fixed: #387 FeatureBrowser is full of descriptions saying TODO #337 FeatureBrowser: Source tabs in "features" that do not have source #374 FeatureBrowser: When opening a feature with no properties, hide propertypanel (on Java) #395 FeatureBrowser: Hide non-working features #375 FeatureBrowser: Should start from welcome (?) and select it from tree svn changeset:674/svn branch:toolkit
Diffstat (limited to 'src/com/itmill/toolkit/demo/features/FeatureDateField.java')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureDateField.java36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureDateField.java b/src/com/itmill/toolkit/demo/features/FeatureDateField.java
index 24c9b46afb..570b2c370b 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureDateField.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureDateField.java
@@ -60,14 +60,13 @@ public class FeatureDateField extends Feature {
// Create locale selector
// TODO: see #244 (broken for AJAX mode), known issue exists
- /* DISABLE UNTIL WORKS
- Select selector = new Select("Application Locale", localeContainer);
- selector.setItemCaptionPropertyId("name");
- selector.setImmediate(true);
- selector.setPropertyDataSource(new MethodProperty(
- this.getApplication(), "locale"));
- l.addComponent(selector);
- */
+ /*
+ * DISABLE UNTIL WORKS Select selector = new Select("Application
+ * Locale", localeContainer); selector.setItemCaptionPropertyId("name");
+ * selector.setImmediate(true); selector.setPropertyDataSource(new
+ * MethodProperty( this.getApplication(), "locale"));
+ * l.addComponent(selector);
+ */
// Properties
propertyPanel = new PropertyPanel(df);
@@ -91,8 +90,8 @@ public class FeatureDateField extends Feature {
themes.addItem("calendar").getItemProperty(
themes.getItemCaptionPropertyId()).setValue("calendar");
propertyPanel.addProperties("DateField Properties", ap);
-
- setJavadocURL("ui/DateField");
+
+ setJavadocURL("ui/DateField.html");
return l;
}
@@ -100,21 +99,20 @@ public class FeatureDateField extends Feature {
protected String getExampleSrc() {
return "DateField df = new DateField(\"Caption\");\n"
+ "df.setValue(new java.util.Date());\n";
-
}
protected String getDescriptionXHTML() {
- return "<p>Representing Dates and times and providing a way to select "
+ return "Representing Dates and times and providing a way to select "
+ "or enter some specific date and/or time is an typical need in "
- + "data-entry userinterfaces. IT Mill Toolkit provides a DateField "
+ + "data-entry user interfaces (UI). IT Mill Toolkit provides a DateField "
+ "component that is intuitive to use and yet controllable through "
- + "its properties.</p>"
- + "<p>The calendar-style allows point-and-click selection "
+ + "its properties."
+ + "<br /><br />The calendar-style allows point-and-click selection "
+ "of dates while text-style shows only minimalistic user interface."
- + "Validators may be bound to the component to check and "
- + "validate the given input.</p>"
- + "<p>On the demo tab you can try out how the different properties affect the "
- + "presentation of the component.</p>";
+ + " Validators may be bound to the component to check and "
+ + "validate the given input."
+ + "<br /><br />On the demo tab you can try out how the different properties affect the "
+ + "presentation of the component.";
}
protected String getImage() {