From: Jani Laakso Date: Tue, 12 Jun 2007 09:37:05 +0000 (+0000) Subject: Merged changesets from branch/4.0 (1581:HEAD) X-Git-Tag: 6.7.0.beta1~6290 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=af9b0122ee22b97a3d6d4244696d23e5c76d8196;p=vaadin-framework.git Merged changesets from branch/4.0 (1581:HEAD) svn changeset:1682/svn branch:trunk --- diff --git a/ReleaseNotes.html b/ReleaseNotes.html index d2717cb8ba..b155ed8b6b 100644 --- a/ReleaseNotes.html +++ b/ReleaseNotes.html @@ -34,27 +34,22 @@ table.issues td {
-
+

IT Mill Toolkit Release Notes

-

Version 4.0.1

+

Version 4.0.2

General

-Version 4.0.1 is an maintenance release for IT Mill Toolkit 4.0 branch. It contains bugfixes for various browsers including few critical fixes for mobile terminals. We have added multiple new demos, source code included. Client-side source code is also provided for those who wish to look further how new themes or custom UI components are created for Toolkit applications, see themes under lib directory. Note, that client-side API (i.e. JavaScript and CSS files) are subject to change during 2007. These changes are required for better client-side compatibility, and they will not affect on the server-side Java APIs and components. Contact support@itmill.com for more information about client-side API changes. +Version 4.0.2 is an maintenance release for IT Mill Toolkit 4.0 branch. It contains bugfixes for various browsers including critical memory leak fixes.

-Following changes may be considered as enhancements even though this is a maintenance release. See demos for more information. -

    -
  • Select component has server-side lazyloading functionality (large dataset scenarios)
  • -
  • Select component has filter options (begins with, contains, ends with filters)
  • -
  • UI components may be controlled with keyboard (Toolkit has support for receiving key events)
  • -
+Client-side API (i.e. JavaScript and CSS files) are subject to change during 2007. These changes are required for better client-side compatibility, and they will not affect on the server-side Java APIs and components. IT Mill Toolkit 4.0 branch is not involved with these changes. Contact support@itmill.com for more information about client-side API changes.

Note that executing demos locally may provide security warning from your firewall @@ -62,9 +57,9 @@ software. This is due to started Web service which is required to run demos. You have to ignore warnings or temporarily accept connections to port 8888 on your firewall software.

-A simple Millstone migration example is also included in demos. Previously Toolkit library was called Millstone UI Library. The last publicly available -version of Millstone UI Library is 3.1.1. This new generation 4.0.1 -version of the library is still API-level compatible with the previous version. +Previously IT Mill Toolkit was called Millstone UI Library. The last publicly available +version of Millstone UI Library is 3.1.1. This new generation 4.0.2 +version of the library is still API-level compatible with the previous generation. A simple Millstone migration example is included in demos.

See index.html for more information. @@ -77,7 +72,7 @@ Supported server-side environments are

  • Sun JDK, version 1.4, 5 and 6
  • Servlet Container, version 2.3 and 2.4
  • Application Servers / Servlet Containers -
    • Apache Tomcat, since version 5 +
      • Apache Tomcat, since version 4.1
      • BEA WebLogic Server, since version 8.1
      • IBM WebSphere Application Server, since version 5.1
      • JBoss Application Server, since version 3.2.7 @@ -109,7 +104,7 @@ Supported client-side environments are
      • Operating systems
        • Windows 2000 Pro/2000 Server 2003/XP Server/XP Pro/XP Home/Vista
        • Mac OS X 10.3 / 10.4 / 10.5 -
        • Linux Debian / RedHat / Ubuntu / Suse +
        • Linux Red Hat / CentOS / Suse / Debian / Ubuntu

      How to start

      @@ -117,14 +112,14 @@ Supported client-side environments are See index.html for more information or go to Developers' Area at www.itmill.com.

      -

      Changes in this Release (4.0.1)

      +

      Changes in this Release (4.0.2)

      Compatibility

      -IT Mill Toolkit version 4.0.1 is API level compatible with Millstone UI Library version 3.1.1. +IT Mill Toolkit versions 4.0.0 and 4.0.1 are API level compatible with version 4.0.2.

      -Following steps are required to upgrade from version 3.1.1 into 4.0.1: +Following steps are required to upgrade from Millstone UI Library version 3.1.1 to Toolkit version 4.0.2:

      • 1. update your application's imports
        • search for import org.millstone.base.* @@ -133,64 +128,70 @@ Following steps are required to upgrade from version 3.1.1 into 4.0.1:
          • search for <servlet-class>org.millstone.webadapter.WebAdapterServlet</servlet-class>
          • and replace to <servlet-class>com.itmill.toolkit.terminal.web.ApplicationServlet</servlet-class>
        -

        Fixed issues in this Release (4.0.1)

        - + +

        Fixed issues in this Release (4.0.2)

        +
        - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Since versionIssueDescriptionWorkaround
        4.0.0Window with Button or Select limitations (Firefox)Using Select component with style "optiongroup" or Button component with "SwitchMode" inside Window component does not work reliably. Select or Button components. Affects Firefox browsers.
        4.0.0Table column hiding issueIf user hides columns from Table component and Table is rendered again (e.g. Web browser reload current page is executed), columns are garbled and table horizontal size is wrong.
        4.0.0Themes are obfuscatedCreating new and modifying existing Themes or UI components on Toolkit is impossible because only optimized (compressed and therefore obfuscated) version of Themes are offered in Toolkit release.
        4.0.0Table context menus do not work (Safari / WebKit)Context menus activated by 2nd mouse button on Table component do not work. Affects Safari and WebKit browsers.
        4.0.0Feature Browser properties table empty (Safari 2)You cannot edit properties of any component on Feature Browser demo. Affects Safari 2 browser.Test Feature Browser Properties panel demo using any other supported browser.
        4.0.0Table sorts even if sort is disabledTable component sorts even if setSortDisabled(true) is set.
        4.0.0Select visual issue with popup messages (IE 6)Select components widgets are seen through popup messages if component alignment is appropriate. Affects Internet Explorer 6 browser.
        4.0.0Setting focus on Java side to any UI component does not work.AbstractField.setFocus() method is broken.
        4.0.0Table scrollable even if it's disabledTable that is not enabled may still be scrolled but content is not updated from the server.
        4.0.0Table does not work with mouse scroll wheel (Opera 9)Table components rows scroll, but new rows are not fetched. Affects Opera 9 browser.Use scroll bar in usual manner instead.
        4.0.0Table with MultiSelect feature limitation.Table component that has MultiSelect feature enabled forgets selected rows if user scrolls table rows enough up or down.
        4.0.0Mouse usability is not good with Feature Browser demo (Nokia S60)Mouse pointer usability is poor on Feature Browser demo. This might cause problems in selecting some items in Feature Browser demo. Affects Nokia S60 browsers.
        4.0.0Table render anomalies when disabled and columns edited (IE 7)Table component may be rendered transparently if Table is disabled and columns are resized and one column is hidden. Affects Internet Explorer 7 browser.
        4.0.0Table column widths not optimal with empty tableTable component column widths are not optimal when content is first empty and then single item is added to Table.
        4.0.0Windows and context menus suffers minor jitter when renderingRendering suffers of jitter when using component Context menus (Action class) and Windows with style "modal".
        4.0.0Select rendering anomaliesSelect component with style "twincol" may render deformed if zero or only few items exists on Select component.
        4.0.0Table may busyloop in rare ciscumstances (Safari)Table component may fall into eternal loop in some rare circumstances. Affects Safari browsers.
        4.0.0Table with labels limitationTable component that contains Label components did not render all Labels properties such as icons.
        4.0.0Table embedded objects do not workSetting embedded objects (e.g. icons) to table does not work.
        4.0.0Table horizontal scroll reloadsHorizontal scroll in Table component forces reloads of the component. These cause the bar to pop back to the beginning and sometimes resizes the entire table effectively preventing the user from viewing the information.
        4.0.0Select visual anomalies1) Select component with style "lazyLoading" always renders options ("itemCaption") using toString(), without regard to current itemCaptionPropertyId. Therefore you cannot specify which property to use as caption. 2) Theme for Select component with style "lazyLoading" renders options without caption (empty string) as an empty div. Therefore option is only a few pixels high, and hard to select.
        Since versionIssueDescriptionWorkaround
        4.0.0ContainerHierarchicalWrapper setParent at root level issueRelocating an item to root node is not possible with ContainerHierarchicalWrapper. If you need to relocate an item to root node, create new Container.
        4.0.0DateField format limitationDateField component renders dates in day.month.year format.
        4.0.0Memory leakApplications are never garbage collected. This is considered as critical memory leak.
        4.0.0Some virtual hosts configuration may failSome virtual hosts configurations may not work with Toolkit because of the way Toolkit serves Application resources (XSS issues with URLs).
        4.0.1Table may throw NullPointerException when it is removedNullPointerException may be thrown when Table is being removed from a Container.
        4.0.1Select with lazyloading issueIf user first types some letter to a Select component that is using lazyloading style and then selects an item from the list, the first item in the list is always selected.
        4.0.0Popups position calculation not optimalPopups on various UI components are not displayed on best possible place.
        4.0.0Windows limitation in HTML-modeMultiple Window components are not supported in HTML-mode.Use AJAX mode instead.
        4.0.1Label CONTENT_RAW brokenLabel with content mode CONTENT_RAW does not work.Use CONTENT_XHTML as content mode instead.
        4.0.0ComponentDetachEvents do not workComponentAttachEvent (wrong) is thrown instead ComponentDetachEvent (correct).
        4.0.0Servlet Specification 2.4 required to deploy demo WAROfficial demos located at itmill-toolkit.war had dependency for Servlet Specification version 2.4. This prevents deployment to Servlet Containers that follow version 2.3 specification.Downgrade web.xml notation to Servlet Specification version 2.3.
        4.0.1Window with Select interoperability issueSelect with lazyloading under Window component does not work.
        4.0.0Denial of service under extreme server loadToolkit applications are not always served because of concurrency issues under extreme load of multiple concurrent users.Clients that get HTTP error messages have to press browser's "refresh" button to get back into their application. After refresh session continues normally.
        4.0.0On some rare cases exceptions are not written to consoleApplicationServlet service method may produce exceptions on some rare cases, these exceptions are only displayed for end user (browser) but not written to console.
        4.0.1On some cases Application does not start if JavaScript is disabledIf user has disabled JavaScript from the browser and accesses Toolkit application without renderingMode=detect parameter in URL, eternal looping occurs in user's browser.Add renderingMode=detect parameter to URL.
        4.0.1Firebug lite debugging tool does not workFirebug lite cannot be used as an debugging tool for Toolkit applications.
        4.0.1Table rendering issue (Opera 9, Firefox)Table component with long content does not have optimal cell size on initial render. Affects Opera 9 and Firefox browsers.
        4.0.1Component tooltip may not closeComponent that has a tooltip (e.g. ComponentError) may not be closed on some cases.
        4.0.1Select with lazyloading may hang Application (Safari)Select with lazyloading hangs Toolkit application if user uses non-ascii characters to filter or look up items.
        4.0.0Calendar and Window interoperabilityOpening Calendar component in child windows in AJAX-mode is unsupported.
        4.0.0Table sort provides minor jitter on HTML-mode (Opera 9)Sorting Table component rows with HTML-mode may result in temporary relocation of component for small amount of time. This can be seen as minor jitter on client-side. Affects Opera 9 browser.
        4.0.1Select with lazyloading dropdown issueSelect with lazyloading keeps dropdown list open even if focus is lost from Select component.
        4.0.1TabSheet with disabled tab issueTabSheet that has disabled tabs is not rendered correctly.
        4.0.0Table containing Label component issueTable may not render Label components with new content after they are updated on some cases.
        4.0.0Table context menu alignment issueTable context menu is aligned wrong if browser window is horizontally scrolled.
        4.0.1Table containing Select component issueTable containing Select with lazyloading has rendering issues.
        4.0.1Select with lazyloading on bottom of the browser area issueWhen Select with lazyloading is located at bottom of the browser area and user opens dropdown list, browser provides unnecessary scroll effect.
        4.0.0Initial Toolkit page is not validInitial Toolkit page which serves JavaScript and other application resources back to user's browser does not conform to XHTML 1.0 Transitional specification.
        4.0.0Table column popup opens right to the tableTable column popup should open towards table, not to the right of it.
        4.0.0Obsolete Theme warning in consoleOn some developer environments an obsolete warning is displayed if developer is not using default theme package.
        4.0.0Form getValidators issueIf Form has no validators and getValidators method is called, new validator list is implicitly created but the validator list is not returned back.
        4.0.0Customer license may fail on some environmentsWhitespace text-node detection behaves differently on different environments, you might get invalid license exception when accessing Toolkit applications after upgrading your server environment (JDK, Operating system and such).

        -

        Known issues in this Release (4.0.1)

        - +

        Known issues in this Release (4.0.2)

        +
        - - - + + - - - - - + - - + - - + + + - - + + +
        Since versionIssueDescriptionWorkaround
        4.0.0Datefield format limitationDatefield component renders dates in day.month.year format.
        4.0.0Popups position calculation not optimalPopups on various UI components are not displayed on best possible place.
        Since versionIssueDescriptionWorkaround
        4.0.1TabSheet issue (Safari)If user changes any component (e.g. TextField or Select) which is located in Tab A and then moves to Tab B, component state change is lost. Affects Safari browsers.Add e.g. Button component that is used to save changes before moving from one Tab to another.
        4.0.0Closing Application session not possible.AjaxApplicationContext class does not include any method for closing sessions.Register TransactionListener where HttpServletRequest class is available. HttpServletRequest provides you access to session.
        4.0.0Keyboard input feature in beta stage for AJAX-mode.Keyboard input feature for UI components is supported, but considered as beta for AJAX-mode. API may change.
        4.0.0Table with certain configuration does not sortWhen "List" or "Paging" styles are used, Table component sorts only to one direction.Use "Default" style.
        4.0.0Windows limitation in HTML-modeMultiple Window components are not supported in HTML-mode.
        4.0.0Select NullPointerExceptionIt is not possible to select null item for Select component after some other item has been selected, doing this results in NullPointerException.
        4.0.0Upload requires manual refresh (Safari / Konqueror)Upload component requires manual refresh from browser after file is sent from client to server. This issue is related to bug that exists in Safari and Konqueror browsers. Note, current WebKit has this issue resolved. Affects Safari and Konqueror browsers.Test Feature Browser Upload component demo using some other supported browser.
        4.0.0Select with "Twincol" style is hard to useI cannot select multiple items in "Twincol" style Select component.In "Twincol" style you most likely want to allow multiple selections also or only one selection is allowed on right side (selected). Check Select components API for more information.
        4.0.1Table column size modifications broken (Opera 9)Dragging table column size larger or smaller does not align headers correctly. Affects Opera 9 browser.
        4.0.1Label CONTENT_RAW brokenLabel with content mode CONTENT_RAW does not work.Use CONTENT_XHTML as content mode instead.
        4.0.1Table setVisible state issueSetting Table visibility to false and then back to true does not always bring Table back to UI.Put your Table into component container such as Panel and use Panel's setVisible methods instead.
        Table column selector issue (Konqueror)Table column hide or show selector makes screen area black while doing selection. Affects Konqueror browser.
        4.0.0Table row header icon limitationTable does not properly support icons in row headers in AJAX rendering mode
        4.0.0DateField does not support Locale on AJAX-modeChanging locale for DateField component does not produce any visible changes when AJAX-mode is used. HTML mode is not affected by this bug.
        4.0.0Calendar and Window interoperabilityOpening Calendar component in child windows in AJAX-mode is unsupported
        4.0.0DateField does not support Locale on AJAX-modeChanging locale for DateField component does not produce any visible changes when AJAX-mode is used. HTML mode is not affected by this bug.You can set locale by calling getApplication().setLocale(new Locale("en","US")), but change affects whole Application and not just DateField.
        4.0.0Nokia Communicator 9300i may not work with ToolkitAutodetection of Nokia Communicator 9300i may fail. This results to empty application screen.
        4.0.0Select may produce JavaScript errorsIf "lazyloading" feature is used for Select component, Javascript error is produced for each typed character that does not match. This mean cases where user is searching for values that do not exists.
        4.0.0Embedded limitationMethod setVisible() provides no changes on the component.
        4.0.0Select may produce JavaScript errorsIf "lazyloading" feature is used for Select component, users that have JavaScript debugging in use see an error for each typed character that does not match. This mean cases where user is searching for values that do not exists.
        4.0.0Embedded limitationMethod setVisible() provides no changes on the component.Put Embedded component inside some Container and use Container's setVisible() instead.
        4.0.0Embedded limitationMethod setEnable() provides no changes on the component.
        4.0.0Upload requires manual refresh (Safari / Konqueror)Upload component requires manual refresh from browser after file is sent from client to server. This issue is related to bug that exists in Safari and Konqueror browsers. Note, current WebKit has this issue resolved. Affects Safari and Konqueror browsers.Test Feature Browser Upload component demo using some other supported browser.
        4.0.0Terminal class not usable until Application is initialized.Terminal class is null until Application.init() has been completed.Create CustomComponent and use it as your Application's first page. You can now override paint() method and access Terminal class before anything is rendered at client-side.
        4.0.0Table sort provides minor jitter on HTML-mode (Opera 9)Sorting Table component rows with HTML-mode may result in temporary relocation of component for small amount of time. This can be seen as minor jitter on client-side. Affects Opera 9 browser.
        4.0.0Demo package does not work fully with Oracle ASWhen demo package itmill-toolkit.war is deployed to Oracle Application Server, non-AJAX (HTML) demos fail and you cannot browse javadocs or theme code.Configure Oracle AS to allow directory listing for docs and themes directories. To get HTML demos work you have to specify the used XSLT processor with JVM parameter like:
        --Djavax.xml.transform.TransformerFactory =
        net.sf.saxon.TransformerFactoryImpl
        --Dorg.xml.sax.driver =
        org.apache.crimson.parser.XMLReaderImpl
        4.0.0Demo package does not work fully with Oracle ASWhen demo package itmill-toolkit.war is deployed to Oracle Application Server, non-AJAX (HTML) demos fail and you cannot browse javadocs or theme code.Configure Oracle AS to allow directory listing for docs and themes directories. To get HTML demos work you have to specify the used XSLT processor with JVM parameter like: -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
        4.0.1Setting focus to UI component limitationsAbstractField.setFocus() method works only for Button and Textfield components.
        4.0.0Keyboard input feature in beta stage for AJAX-modeKeyboard input feature for UI components is supported, but considered as beta for AJAX-mode. API may change.
        4.0.0Embedded does not work on HTML-mode (IE 6, 7)Embedded objects may not be seen on HTML-mode. Affects Internet Explorer 6 and 7 browsers.
        Window with Modal style issue (Konqueror)Modal window makes other application screen area black. After modal window is closed, screen area is again normal. Affects Konqueror browser.
        4.0.0Button usability (Safari)Selected Button component can only be clicked by pressing spacebar when using keyboard. Enter would be a more intuitive choice. Affects Safari browser.
        4.0.1URIHandler, ParameterHandler broken (Safari)URIHandler and ParameterHandler does not work. Affects Safari browsers.
        @@ -200,4 +201,4 @@ Following steps are required to upgrade from version 3.1.1 into 4.0.1:
        -
+
diff --git a/build/VERSION b/build/VERSION index d654ba33eb..3eaa89b0fb 100644 --- a/build/VERSION +++ b/build/VERSION @@ -1 +1 @@ -version=4.0.1-testing \ No newline at end of file +version=4.0.2 diff --git a/index.html b/index.html index d4ab5fc3d5..34c41a51fc 100644 --- a/index.html +++ b/index.html @@ -35,9 +35,9 @@

Library

@@ -68,7 +68,7 @@

Demo and sample code

To get a quick feel for Toolkit, please have a look at the demos:

    -
  • Online at IT Mill
  • +
  • Online at IT Mill
  • To run demos locally, run start.bat (Windows) or start.sh (Mac or Linux) in the demo -directory. After the local demo server has started, the demos are running at diff --git a/src/com/itmill/toolkit/demo/KeyboardShortcut.java b/src/com/itmill/toolkit/demo/KeyboardShortcut.java index ac5f2e69a0..4bb1e6cff8 100644 --- a/src/com/itmill/toolkit/demo/KeyboardShortcut.java +++ b/src/com/itmill/toolkit/demo/KeyboardShortcut.java @@ -17,43 +17,33 @@ public class KeyboardShortcut extends com.itmill.toolkit.Application implements private Button a; - private Button b; + private Button z; - private Button c; + private Button x; private Button close; - private Button d; - - private Button e; - private AbstractField f; public void init() { - /* - * - Create new window for the application - Give the window a visible - * title - Set the window to be the main window of the application - */ main = new Window("Keyboard shortcuts demo"); setMainWindow(main); - - // set the application to use Corporate -theme setTheme("corporate"); - /* - * - Create a label with the classic text - Add the label to the main - * window - */ main .addComponent(new Label( "

    Test application for shortcut actions

    " - + "Note: This feature is under development and is considered as beta.
    " - + "Note: if events do not work, set focus to Textfield first.", - Label.CONTENT_XHTML)); + + "

    Notes:
    " + + "This feature is under development and it's API may still change.
    " + + "If events do not work, set focus to Textfield first.
    " + + "Browsers may have reserved the keyboard combinations used in " + + "this demo for other purposes.

    ", + Label.CONTENT_RAW)); main .addComponent(new Label( - "ESC restarts program, alt-A hits A button, ctrl-B hits B button, ctrl-shift-C hits C")); + "ESC restarts program, ctrl-shift-a clicks A button, " + + "ctrl-shift-z clicks Z button, ctrl-shift-x clicks X button")); // Restart button close = new Button("restart", this, "close"); @@ -63,58 +53,40 @@ public class KeyboardShortcut extends com.itmill.toolkit.Application implements a = new Button("Button A", this, "buttonAHandler"); a.addActionHandler(this); - b = new Button("Button B", this, "buttonBHandler"); - b.addActionHandler(this); + z = new Button("Button Z", this, "buttonZHandler"); + z.addActionHandler(this); - c = new Button("Button C", this, "buttonCHandler"); - c.addActionHandler(this); + x = new Button("Button X", this, "buttonXHandler"); + x.addActionHandler(this); f = new TextField("Textfield"); main.addComponent(a); - main.addComponent(b); - main.addComponent(c); + main.addComponent(z); + main.addComponent(x); main.addComponent(f); - d = new Button("Click to focus button B", this, "setFocusB"); - main.addComponent(d); - d = new Button("Click to focus Textfield", this, "setFocusF"); - main.addComponent(d); - e = new Button("Test buton", this, "buttonEHandler"); - e.addActionHandler(this); - main.addComponent(e); - f.focus(); - } - - public void setFocusB() { - b.focus(); - } - - public void setFocusF() { f.focus(); } public Action[] getActions(Object target, Object sender) { Action[] actions = new Action[1]; - if (sender == b) { - actions[0] = (Action) (new ShortcutAction("Button b action", - ShortcutAction.KeyCode.B, - new int[] { ShortcutAction.ModifierKey.CTRL })); - - } else if (sender == c) { - actions[0] = (Action) new ShortcutAction("Button c action", - ShortcutAction.KeyCode.C, new int[] { + if (sender == a) { + actions[0] = (Action) new ShortcutAction("Button a action", + ShortcutAction.KeyCode.A, new int[] { ShortcutAction.ModifierKey.CTRL, ShortcutAction.ModifierKey.SHIFT }); - } else if (sender == e) { - actions[0] = (Action) new ShortcutAction("Button E action 2", + } else if (sender == z) { + actions[0] = (Action) (new ShortcutAction("Button z action", + ShortcutAction.KeyCode.Z, new int[] { + ShortcutAction.ModifierKey.CTRL, + ShortcutAction.ModifierKey.SHIFT })); + + } else if (sender == x) { + actions[0] = (Action) new ShortcutAction("Button x action", ShortcutAction.KeyCode.X, new int[] { ShortcutAction.ModifierKey.CTRL, ShortcutAction.ModifierKey.SHIFT }); - } else if (sender == a) { - actions[0] = (Action) new ShortcutAction("Button a action", - ShortcutAction.KeyCode.A, - new int[] { ShortcutAction.ModifierKey.ALT }); } else { // restart button actions[0] = new ShortcutAction("Restart ", @@ -126,12 +98,10 @@ public class KeyboardShortcut extends com.itmill.toolkit.Application implements public void handleAction(Action action, Object sender, Object target) { if (target == a) this.buttonAHandler(); - if (target == b) - this.buttonBHandler(); - if (target == c) - this.buttonCHandler(); - if (target == e) - this.buttonEHandler(); + if (target == z) + this.buttonZHandler(); + if (target == x) + this.buttonXHandler(); if (target == close) this.close(); } @@ -140,15 +110,12 @@ public class KeyboardShortcut extends com.itmill.toolkit.Application implements main.addComponent(new Label("Button A handler fired")); } - public void buttonBHandler() { - main.addComponent(new Label("Button B handler fired")); + public void buttonZHandler() { + main.addComponent(new Label("Button Z handler fired")); } - public void buttonCHandler() { - main.addComponent(new Label("Button C handler fired")); + public void buttonXHandler() { + main.addComponent(new Label("Button X handler fired")); } - public void buttonEHandler() { - main.addComponent(new Label("Button E handler fired")); - } } diff --git a/src/com/itmill/toolkit/demo/features/FeatureDateField.java b/src/com/itmill/toolkit/demo/features/FeatureDateField.java index 5aa2eadf18..b372bb08a2 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureDateField.java +++ b/src/com/itmill/toolkit/demo/features/FeatureDateField.java @@ -53,7 +53,10 @@ public class FeatureDateField extends Feature { OrderedLayout l = new OrderedLayout(); - // Example panel + l.addComponent(new Label("Your locale is: " + + this.getApplication().getLocale().toString() + .replace('_', '-'))); + DateField df = new DateField(); df.setValue(new java.util.Date()); l.addComponent(df);