Re: How to use DatePicker with UiBinder

2019-06-28 Thread Craig Mitchell
I don't believe GWT supports a Time picker out of the box.  Only date:  
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwDatePicker

A quick search shows that some people have created one:  
https://stackoverflow.com/questions/4509655/gwt-time-picker

Or you could use JSNI to bind to a JavaScript one.


On Tuesday, 25 June 2019 17:07:22 UTC+2, Shweta Thainua wrote:
>
> Can u tell me how to make are and time picker both in ui binder file

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/569651a2-3334-49df-bd1a-cc8b46160615%40googlegroups.com.


Re: How to use DatePicker with UiBinder

2019-06-25 Thread Shweta Thainua
Can u tell me how to make are and time picker both in ui binder file

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/062e960a-fdb2-4aac-afee-a73c3b5e069b%40googlegroups.com.


Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Ameen Malhans
There is no error in browser console

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Ameen Malhans
no errors in browser console


On Monday, November 13, 2017 at 12:24:43 PM UTC-5, Jens wrote:
>
> Any errors on the browser console?
>
> private native void attachInternal() /*-{ 
>   $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
> function() {
> *this.*
> @com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
> console.log("OK");
>   });
> }-*/;
>
> In your JSNI method "this" is probably not of type DateFormatter but the 
> div element that has been clicked on. Try
>
> private native void attachInternal() /*-{ 
>   var that = this;
>   $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
> function() {
> 
> th...@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
> console.log("OK");
>   });
> }-*/;
>
>
> -- J.
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Jens
Any errors on the browser console?

private native void attachInternal() /*-{ 
  $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
function() {
*this.*
@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
console.log("OK");
  });
}-*/;

In your JSNI method "this" is probably not of type DateFormatter but the 
div element that has been clicked on. Try

private native void attachInternal() /*-{ 
  var that = this;
  $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
function() {

th...@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
console.log("OK");
  });
}-*/;


-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Thomas Broyer
Fwiw, I updated my StackOverflow 
answer: https://stackoverflow.com/a/47236713/116472

On Monday, November 13, 2017 at 6:04:42 PM UTC+1, Ameen Malhans wrote:
>
>
>
> down votefavorite 
> <https://stackoverflow.com/questions/47230636/datepicker-dont-closes-after-picking-same-date-gwt/47236713#>
>
> I am calling java from java-script to close the date picker pop Up using 
> following method.
>
>
>  private native void attachInternal() /*-{+  
>
> $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
> function() {
>
> th...@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
>
>   console.log("OK");
> });
> }-*/;
>
>
> this method is again called in the method attached.
>
> The problem is that date picker doesn't closes after selecting same date 
> which is already selected, but on value change it closes.I want to close it 
> even after selecting same date as earlier. The attach method is following
>
>  public void attach() {
>
> attachInternal();
>
> datePickerValueChangeRegistration = 
> uiDatePicker.addValueChangeHandler(new ValueChangeHandler() {
> @Override
> public void onValueChange(ValueChangeEvent event) {
> uiDatePickerPopup.hide();
> uiTextDate.setErrorVisible(false);
> 
> uiTextDate.setTextNoFormat(Moment.moment(event.getValue()).format("L"));
> }
> });
>
> textDateClickRegistration = uiTextDate.addClickHandler(new ClickHandler() 
> {
> @Override
> public void onClick(ClickEvent event) {
> //if (uiTextDate.isReadOnly())
> //  return;
> if (!uiTextDate.isEnabled())
> return;
> showPopup();
>
> }
> });
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Datepicker don't closes after picking same date GWT

2017-11-13 Thread Ameen Malhans


down votefavorite 
<https://stackoverflow.com/questions/47230636/datepicker-dont-closes-after-picking-same-date-gwt/47236713#>

I am calling java from java-script to close the date picker pop Up using 
following method.


 private native void attachInternal() /*-{+  

$wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
function() {
   
th...@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();

  console.log("OK");
});
}-*/;


this method is again called in the method attached.

The problem is that date picker doesn't closes after selecting same date 
which is already selected, but on value change it closes.I want to close it 
even after selecting same date as earlier. The attach method is following

 public void attach() {

attachInternal();

datePickerValueChangeRegistration = uiDatePicker.addValueChangeHandler(new 
ValueChangeHandler() {
@Override
public void onValueChange(ValueChangeEvent event) {
uiDatePickerPopup.hide();
uiTextDate.setErrorVisible(false);

uiTextDate.setTextNoFormat(Moment.moment(event.getValue()).format("L"));
}
});

textDateClickRegistration = uiTextDate.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
//if (uiTextDate.isReadOnly())
//  return;
if (!uiTextDate.isEnabled())
return;
showPopup();

}
});




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: A DateBox where I can select the time and hide the DatePicker

2016-10-13 Thread Piotr Morgwai Kotarbinski
it's a vry old thread, but seems many ppl still have the same problem, 
so regarding 1:
begin.getDatePicker().setVisible(false);


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Gwt datepicker

2016-02-22 Thread Adrian Deja
Hi, i'm using GWT datepicker in my app and I have problem with 
translations. I want to customize messages used for rendering datepicker. 
For example displayed month names and don't know how to do it. Could you 
provide any examples / refs for documentation?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Change DatePicker language

2015-06-08 Thread Aravindhan Annamalai
Hi Nicanor,

I am trying to internationalize the DatePicker. I am not using 
DatePicker directly but DateBox widget.

Is there any way to specify the locale  in order to change the display 
of DatePicker? I understand that the supported locales has to be entered in 
myapp.gwt.xml
   extend-property name=locale values=en,fr/

I am not sure how the widget picks this up.

Regards,
Aravind

On Thursday, 22 March 2012 14:14:04 UTC+5:30, nicanor.babula wrote:

 Thank you very much, Thomas. Setting -deploy and -extra to directories 
 outside the war solved the problem.
 Problem solved.


 On Wed, Mar 21, 2012 at 4:42 PM, Thomas Broyer t.br...@gmail.com 
 javascript: wrote:



 On Wednesday, March 21, 2012 2:02:27 PM UTC+1, nicanor.babula wrote:

 Hi everyone,

 How can I change the display language of the DatePicker object? My app 
 is internationalized on a GWT level, but enabling more than 1 language in 
 module.gwt.xml generates a war too big to be deployed on Appengine,


 Could it be because of the WEB-INF/deploy? If so, pass -deploy to the 
 compiler to redirect these files to another folder outside your WAR.
  

 therefore I am stuck with the default which I assume is english. Is 
 there a way to change only the locale of the DatePicker or to change the 
 default locale?


 You can change the default locale with the following in your gwt.xml:
 extend-property name=locale value=fr /
 set-property-default name=locale value=fr /
 set-property name=locale value=fr /

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-web-toolkit/-/NMT8ZWQR7eYJ.

 To post to this group, send email to google-we...@googlegroups.com 
 javascript:.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.




 -- 
 Nicanor Cristian Babula

  

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker with multiple days selection

2015-03-08 Thread Eddymouse
Hi Juan!
Thank you very much!

But I searching one datepicker where I can select multiple days not 
consequential So I can select 1, 3, 11 May.for example

Thank you
alex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker with multiple days selection

2015-03-07 Thread Juan Pablo Gardella
Currently, as far I know it's not supported out of box. I found this
widget: https://github.com/euzuro/LeDateRanger (I didn't tested)

On 7 March 2015 at 10:54, Eddymouse alessandro.tettama...@gmail.com wrote:

 Hi
 I need a datepicker widget with multiple selection days.
 Can you help me?

 Where can I find it?

 I'm newbie
 Thanks a lot...

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker with multiple days selection

2015-03-07 Thread Juan Pablo Gardella
Sorry, it's empty the repository. Basically you can see how can it work
here: https://demo.reztrip.com/ and you can build it using two datepickers
and maybe use addShowRangeHandlerAndFire
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addShowRangeHandlerAndFire(com.google.gwt.event.logical.shared.ShowRangeHandler)
to
disable ranges of dates.

On 7 March 2015 at 15:29, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:

 Currently, as far I know it's not supported out of box. I found this
 widget: https://github.com/euzuro/LeDateRanger (I didn't tested)

 On 7 March 2015 at 10:54, Eddymouse alessandro.tettama...@gmail.com
 wrote:

 Hi
 I need a datepicker widget with multiple selection days.
 Can you help me?

 Where can I find it?

 I'm newbie
 Thanks a lot...

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Datepicker with multiple days selection

2015-03-07 Thread Eddymouse
Hi
I need a datepicker widget with multiple selection days.
Can you help me? 

Where can I find it?

I'm newbie
Thanks a lot...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to change the Size of the ListBox of the datePicker in GWT?

2014-09-24 Thread Tom
 

I am building a mobile website and thus I have a need to many all GWT Gui 
to become bigger. 

For example, my css in my gwt mobile app is like this:

.myNormalMobileFont{
font-size: 500%;
}

.myNormalLargeFont{
font-size: 700%;
 }

And Here is Css code of DateBox and DatePicker

.gwt-DateBox {
  padding: 15px 16px;
  border: 3px solid #ccc;
  border-top: 3px solid #999;
  font-size: 500%;
}
.gwt-DateBox input {
  width: 8em;
}
.dateBoxFormatError {
  background: #ff;
}
.dateBoxPopup {
}

.gwt-DatePicker {
  border: 3px solid #ccc;
  border-top:3px solid #999;
  cursor: default;
}
.gwt-DatePicker td,
.datePickerMonthSelector td:focus {
  outline: none;
}
.datePickerDays {
  width: 100%;
  background: white;
}
.datePickerDay,
.datePickerWeekdayLabel,
.datePickerWeekendLabel {
  font-size: 255%;
  text-align: center;
  padding: 12px;
  outline: none;
  font-weight:bold;
  color:#333;
  border-right: 3px solid #EDEDED;
  border-bottom: 3px solid #EDEDED;
}
.datePickerWeekdayLabel,
.datePickerWeekendLabel {
  background: #fff;
  padding: 0px 12px 6px;
  cursor: default;
  color:#666;
  font-size:210%;
  font-weight:normal;
}
.datePickerDay {
  padding: 12px 21px;
  cursor: hand;
  cursor: pointer;
}
.datePickerDayIsWeekend {
  background: #f7f7f7;
}
.datePickerDayIsFiller {
  color: #999;
  font-weight:normal;
}
.datePickerDayIsValue {
  background: #d7dfe8;
}
.datePickerDayIsDisabled {
  color: #AA;
  font-style: italic;
}
.datePickerDayIsHighlighted {
  background: #F0E68C;
}
.datePickerDayIsValueAndHighlighted {
  background: #d7dfe8;
}
.datePickerDayIsToday {
  padding: 3px;
  color: #fff;
  background: url(images/hborder.png) repeat-x 0px -2607px;
}

.datePickerMonthSelector {
  width: 100%;
  padding: 3px 0 15px 0;
  background: #fff;
}
td.datePickerMonth {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 300%;
  font-weight: bold;
  color: #333;
}
.datePickerPreviousButton,
.datePickerNextButton {
  font-size: 360%;
  line-height: 1em;
  color: #3a6aad;
  cursor: hand;
  cursor: pointer;
  font-weight: bold;
  padding: 0px 12px;
  outline: none;
}

After that, the GuiLookLike this [image: enter image description here]

Ass u can see the Text inside the Year and Month listbox is very small, so 
how to style them to make them bigger?, probally using font-size.


http://stackoverflow.com/questions/26015314/how-to-change-the-size-of-the-listbox-of-the-datepicker-in-gwt

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to change the Size of the ListBox of the datePicker in GWT?

2014-09-24 Thread Davide Micheletti
i think that you can do something like these:

CSS

 datePickerMonthSelector  select {
font-size: 500%;
 }



On Wed, Sep 24, 2014 at 1:07 PM, Tom henry...@gmail.com wrote:

 I am building a mobile website and thus I have a need to many all GWT Gui
 to become bigger.

 For example, my css in my gwt mobile app is like this:

 .myNormalMobileFont{
 font-size: 500%;
 }

 .myNormalLargeFont{
 font-size: 700%;
  }

 And Here is Css code of DateBox and DatePicker

 .gwt-DateBox {
   padding: 15px 16px;
   border: 3px solid #ccc;
   border-top: 3px solid #999;
   font-size: 500%;
 }
 .gwt-DateBox input {
   width: 8em;
 }
 .dateBoxFormatError {
   background: #ff;
 }
 .dateBoxPopup {
 }

 .gwt-DatePicker {
   border: 3px solid #ccc;
   border-top:3px solid #999;
   cursor: default;
 }
 .gwt-DatePicker td,
 .datePickerMonthSelector td:focus {
   outline: none;
 }
 .datePickerDays {
   width: 100%;
   background: white;
 }
 .datePickerDay,
 .datePickerWeekdayLabel,
 .datePickerWeekendLabel {
   font-size: 255%;
   text-align: center;
   padding: 12px;
   outline: none;
   font-weight:bold;
   color:#333;
   border-right: 3px solid #EDEDED;
   border-bottom: 3px solid #EDEDED;
 }
 .datePickerWeekdayLabel,
 .datePickerWeekendLabel {
   background: #fff;
   padding: 0px 12px 6px;
   cursor: default;
   color:#666;
   font-size:210%;
   font-weight:normal;
 }
 .datePickerDay {
   padding: 12px 21px;
   cursor: hand;
   cursor: pointer;
 }
 .datePickerDayIsWeekend {
   background: #f7f7f7;
 }
 .datePickerDayIsFiller {
   color: #999;
   font-weight:normal;
 }
 .datePickerDayIsValue {
   background: #d7dfe8;
 }
 .datePickerDayIsDisabled {
   color: #AA;
   font-style: italic;
 }
 .datePickerDayIsHighlighted {
   background: #F0E68C;
 }
 .datePickerDayIsValueAndHighlighted {
   background: #d7dfe8;
 }
 .datePickerDayIsToday {
   padding: 3px;
   color: #fff;
   background: url(images/hborder.png) repeat-x 0px -2607px;
 }

 .datePickerMonthSelector {
   width: 100%;
   padding: 3px 0 15px 0;
   background: #fff;
 }
 td.datePickerMonth {
   text-align: center;
   vertical-align: middle;
   white-space: nowrap;
   font-size: 300%;
   font-weight: bold;
   color: #333;
 }
 .datePickerPreviousButton,
 .datePickerNextButton {
   font-size: 360%;
   line-height: 1em;
   color: #3a6aad;
   cursor: hand;
   cursor: pointer;
   font-weight: bold;
   padding: 0px 12px;
   outline: none;
 }

 After that, the GuiLookLike this [image: enter image description here]

 Ass u can see the Text inside the Year and Month listbox is very small, so
 how to style them to make them bigger?, probally using font-size.



 http://stackoverflow.com/questions/26015314/how-to-change-the-size-of-the-listbox-of-the-datepicker-in-gwt

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to simply add more years into DatePicker in GWT and use the format to DD-MM-YYYY when a date was selected?

2014-09-23 Thread Tom
 

Look at this code,

DateBox myDateBox=new DateBox();
myDateBox.getDatePicker().setYearAndMonthDropdownVisible(true);
DateTimeFormat dateFormat = DateTimeFormat.getFormat(DD-MM-);
myDateBox.setFormat(new DateBox.DefaultFormat(dateFormat));

Ok, when I clicked on the DateBox the DatePicker got popped up but I could 
not see years like from 1600, so How to add more years into DatePicker?

Alos, I want to use the format to DD-MM- when a date was selected but 
when clicked on a date nothing appeared in the DateBox?


http://stackoverflow.com/questions/26005633/how-to-simply-add-more-year-into-datepicker-in-gwt-and-use-the-format-to-dd-mm-y

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox DatePicker popup is not showing up!

2014-03-14 Thread Muthu Selvam
Hi Patrick,

Here you can find my UiBinder code. 

UiBinder
===

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui 
xmlns:b=urn:import:com.github.gwtbootstrap.client.ui
xmlns:d=urn:import:com.github.gwtbootstrap.datepicker.client.ui

g:HTMLPanel
g:PopupPanel ui:field=popup

b:AccordionGroup ui:field=scheduleWidgetAccordianGroup
heading=Period 1 defaultOpen=true 
addStyleNames=scheduleWidgetAccordianGroup
 b:Form type=HORIZONTAL addStyleNames=scheduleWidget

b:ControlGroup ui:field=datesControlGroup
b:ControlLabel
ui:msg key=widget.controlLabel.dateDate/ui:msg
:
/b:ControlLabel
b:Controls ui:field=dateBoxesControl
g:FlowPanel addStyleNames=scheduleDropdownPanel
d:DateBox ui:field=fromDate autoClose=true/
b:Icon type=ARROW_RIGHT /
d:DateBox ui:field=toDate autoClose=true/
b:Button icon=PLUS_SIGN type=LINK ui:field=addDateButton
addStyleNames=schedulePlusSign /
/g:FlowPanel
/b:Controls
/b:ControlGroup
/b:Form
/b:AccordionGroup
 /g:PopupPanel
/g:HTMLPanel
/ui:UiBinder 


Class file
===

popup.show(); - Now the popup will appear but I'm not able to select any 
date at all.





On Wednesday, March 12, 2014 5:55:10 AM UTC+5:30, Patrick Tucker wrote:

 Maybe provide some code?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox DatePicker popup is not showing up!

2014-03-14 Thread Muthu Selvam
Also i added below css to PopupPanel but its not reflect any more.
 
g:PopupPanel ui:field=popup addStyleNames=dateBoxPopup 

.dateBoxPopup { 
z-index: 100; 
}

Hoping positive reply from you!!! Thanks!!!

On Friday, March 14, 2014 3:04:03 PM UTC+5:30, Muthu Selvam wrote:

 Hi Patrick,

 Here you can find my UiBinder code. 

 UiBinder
 ===

 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui 
 xmlns:b=urn:import:com.github.gwtbootstrap.client.ui
 xmlns:d=urn:import:com.github.gwtbootstrap.datepicker.client.ui

 g:HTMLPanel
 g:PopupPanel ui:field=popup

 b:AccordionGroup ui:field=scheduleWidgetAccordianGroup
 heading=Period 1 defaultOpen=true 
 addStyleNames=scheduleWidgetAccordianGroup
  b:Form type=HORIZONTAL addStyleNames=scheduleWidget

 b:ControlGroup ui:field=datesControlGroup
 b:ControlLabel
 ui:msg key=widget.controlLabel.dateDate/ui:msg
 :
 /b:ControlLabel
 b:Controls ui:field=dateBoxesControl
 g:FlowPanel addStyleNames=scheduleDropdownPanel
 d:DateBox ui:field=fromDate autoClose=true/
 b:Icon type=ARROW_RIGHT /
 d:DateBox ui:field=toDate autoClose=true/
 b:Button icon=PLUS_SIGN type=LINK ui:field=addDateButton
 addStyleNames=schedulePlusSign /
 /g:FlowPanel
 /b:Controls
 /b:ControlGroup
 /b:Form
 /b:AccordionGroup
  /g:PopupPanel
 /g:HTMLPanel
 /ui:UiBinder 


 Class file
 ===

 popup.show(); - Now the popup will appear but I'm not able to select any 
 date at all.





 On Wednesday, March 12, 2014 5:55:10 AM UTC+5:30, Patrick Tucker wrote:

 Maybe provide some code?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox DatePicker popup is not showing up!

2014-03-11 Thread Muthu Selvam
Hi All,

Can any one help me ???

Here the main widget as GWT PopupPanel inside that we are creating two 
DateBox (com.github.gwtbootstrap.datepicker.client.ui.DateBox) but i'm not 
able to select any date events. This issues happen only in popup. Any one 
knows this issue to fix ?


Advance Thanks

https://lh3.googleusercontent.com/-oeYc4DcjwvY/Ux7cvjXuiKI/AHA/Mk1unX4KC7g/s1600/Date.jpg


On Thursday, October 3, 2013 2:55:50 PM UTC+5:30, Sandeep Shukla wrote:

 Thanks a ton !! This was a life saver :) 

 On Monday, June 1, 2009 1:10:35 AM UTC+5:30, John_Idol wrote:

 my BAD -- had a look with firebug and it was there behind the rest of 
 the stuff, I just had to define the following css class: 

 .dateBoxPopup { 
 z-index: 100; 
 } 

 On May 31, 8:32 pm, John_Idol giovanni.id...@gmail.com wrote: 
  When I said *this* example I meant to include the link but I didn't -- 
  
  http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker 
  
  On May 31, 8:30 pm, John_Idol giovanni.id...@gmail.com wrote: 
  
  
  
   Hi All, 
  
   I am following this example and the example in the DateBox 
   specification - so I have smt like this in my OnModuleLoad: 
  
 public void onModuleLoad() { 
   _dateBox = new DateBox(); 
   _dateBox.setValue(new Date()); 
   RootPanel.get().add(_dateBox); 
 } 
  
   Problem is when I click on the DateBox nothing happens - I'd expect 
   the popup with the DatePicker to show up (this is happening on hosted 
   browser (IE), chrome and firefox). 
  
   Is there any init step I am missing? 
  
   I tried a search on this group but couldn't find anything similar 
  
   Any help appreciated!



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox DatePicker popup is not showing up!

2014-03-11 Thread Patrick Tucker
Maybe provide some code?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker - show 2 months together

2014-03-04 Thread Deepak Singh
Any help please..


On 3 March 2014 01:19, Deepak Singh deepaksingh...@gmail.com wrote:

 hi All,

 Is it possible somehow to show 2 months(current and next) calender to show
 together with GWT 2.6 datepicker ?


 --
 Deepak Singh




-- 
Deepak Singh

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Datepicker - show 2 months together

2014-03-02 Thread Deepak Singh
hi All,

Is it possible somehow to show 2 months(current and next) calender to show
together with GWT 2.6 datepicker ?


-- 
Deepak Singh

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


How to set the maximum Date to today in GWT 2.6 DatePicker?

2014-02-23 Thread confile


I want to use a GWT 2.6 DatePicker with month and year selector:

datePicker.setYearAndMonthDropdownVisible(true);
datePicker.setYearArrowsVisible(true);

*Is there a way to set the maximal date a user can select to today?*

[image: enter image description here]

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


GWT DatePicker With Custom Month and Year Selected.

2014-02-17 Thread Ajinkya Purane
Hey,
I have modified GWT DatePicker ,I have added Month and Year Selector on it. 

1) DatePickerWithYearSelectorNew.java

import com.google.gwt.user.datepicker.client.CalendarModel;
import com.google.gwt.user.datepicker.client.DatePicker;
import com.google.gwt.user.datepicker.client.DefaultCalendarView;

public class DatePickerWithYearSelectorNew extends DatePicker {

public DatePickerWithYearSelectorNew() {
super(new MonthAndYearSelectorWithYear(), new DefaultCalendarView(),
new CalendarModel());
MonthAndYearSelectorWithYear monthSelector = (MonthAndYearSelectorWithYear) 
this
.getMonthSelector();
monthSelector.setPicker(this);
monthSelector.setModel(this.getModel());
}
public void refreshComponents() {
super.refreshAll();
}
}

2) MonthAndYearSelectorWithYear.java



import java.util.Date;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.PushButton;
import com.google.gwt.user.client.ui.HTMLTable.CellFormatter;
import com.google.gwt.user.datepicker.client.CalendarModel;
import com.google.gwt.user.datepicker.client.MonthSelector;



public class MonthAndYearSelectorWithYear extends MonthSelector {

private static String BASE_NAME = datePicker;
private PushButton backwards;
private PushButton forwards;
private PushButton backwardsYear;
private PushButton forwardsYear;
private Grid grid;
private int previousYearColumn = 0;
private int previousMonthColumn = 1;

private int nextMonthColumn = 4;
private int nextYearColumn = 5;
private CalendarModel model;
private DatePickerWithYearSelectorNew picker;

private ListBox monthListBox;
private ListBox yearListBox;

public MonthAndYearSelectorWithYear() {

yearListBox = new ListBox();

for (int i = 1900; i  2100; i++) {
yearListBox.addItem(i + );
}

String[] items = { Jan, Feb, Mar, Apr, May, Jun, Jul,
Aug, Sep, Oct, Nov, Dec };

monthListBox = new ListBox();

for (int i = 0; i  items.length; i++) {
monthListBox.addItem(items[i]);
}
}

public void setModel(CalendarModel model) {
this.model = model;
}

public void setPicker(DatePickerWithYearSelectorNew picker) {
this.picker = picker;
}

@Override
protected void refresh() {
int monthIndex = getModel().getCurrentMonth().getMonth();
monthListBox.setItemSelected(monthIndex, true);
int yearIndex = getModel().getCurrentMonth().getYear();
// System.out.println(yearIndex);
yearListBox.setItemSelected(yearIndex, true);
}

@Override
protected void setup() {
// Set up backwards.
backwards = new PushButton();
backwards.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
addMonths(-1);
}
});

backwards.getUpFace().setHTML(lsaquo;);
backwards.setStyleName(BASE_NAME + PreviousButton);

forwards = new PushButton();
forwards.getUpFace().setHTML(rsaquo;);
forwards.setStyleName(BASE_NAME + NextButton);
forwards.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if (model.getCurrentMonth().getYear()  199) {
addMonths(+1);
}
else if(model.getCurrentMonth().getMonth()11 
model.getCurrentMonth().getYear()==199)
{
addMonths(+1);
}
}
});

// Set up backwards year
backwardsYear = new PushButton();
backwardsYear.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

addMonths(-12);
picker.refreshComponents();
}
});

backwardsYear.getUpFace().setHTML(laquo;);
backwardsYear.setStyleName(BASE_NAME + PreviousButton);

forwardsYear = new PushButton();
forwardsYear.getUpFace().setHTML(raquo;);
forwardsYear.setStyleName(BASE_NAME + NextButton);
forwardsYear.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if (model.getCurrentMonth().getYear()  199) {
addMonths(+12);
picker.refreshComponents();
}
}
});

yearListBox.addChangeHandler(new ChangeHandler() {

@Override
public void onChange(ChangeEvent event) {
// int yearIndex = yearListBox.getSelectedIndex();
// setYear(Integer.parseInt(yearListBox.getValue(yearIndex)));
setYear(yearListBox.getSelectedIndex());
}
});
monthListBox.addChangeHandler(new ChangeHandler() {

@Override
public void onChange(ChangeEvent event) {
int monthIndex = monthListBox.getSelectedIndex();
setMonth(monthIndex);
}
});

// Set up grid.
grid = new Grid(1, 6);
grid.setWidget(0, previousYearColumn, backwardsYear);
grid.setWidget(0, previousMonthColumn, backwards);
grid.setWidget(0, 2, monthListBox);
grid.setWidget(0, 3, yearListBox);
grid.setWidget(0, nextMonthColumn, forwards);
grid.setWidget(0, nextYearColumn, forwardsYear);

CellFormatter formatter = grid.getCellFormatter();

formatter.setWidth(0, previousYearColumn, 1);
formatter.setWidth(0, previousMonthColumn, 1);

formatter.setWidth(0, nextMonthColumn, 1);
formatter.setWidth(0, nextYearColumn, 1);
grid.setStyleName(BASE_NAME + MonthSelector);
initWidget(grid);
}

public void addMonths(int

Re: GWT DatePicker With Custom Month and Year Selected.

2014-02-17 Thread Jens
Just in case you didn't know it:

In GWT 2.6 you can do 

DatePicker.setVisibleYearCount(int count)
DatePicker.setYearArrowsVisible(boolean visible)
DatePicker.setYearAndMonthDropdownVisible(boolean visible)

to show drop down boxes for month and year as well as navigation icons for 
switching to next/previous year.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


GWT 2.6 DatePicker with ClickHandler on Year and Month Buttons?

2014-01-29 Thread confile
Is is possible to register ClickHandlers on the GWT 2.6 DatePicker year and 
month buttons?



https://lh5.googleusercontent.com/-ladZzsXOids/UultRrBFVgI/AUs/0HH13yg61TQ/s1600/Buddy_is.jpg

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using DatePicker in CellTable

2013-11-28 Thread Nermin
It seems like this problem requires overriding the GWT-s DatePickerCell as 
shown in this example:
http://stackoverflow.com/questions/7915414/gwt-datepickercell-show-empty-date

Jaga, tank you for your help.

Best regards:
Nermin

On Monday, November 25, 2013 4:02:11 PM UTC+1, jaga wrote:

 Perhaps you can override the DatePickerCell's FieldUpdater() method? 

 I realised I hadn't been crystal clear in my answer to 2). Of course once 
 the user has picked a date the cell's value has changed.  You may have too 
 store the old value and manually update the DateCellpPicker's value.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using DatePicker in CellTable

2013-11-25 Thread jaga
Perhaps you can override the DatePickerCell's FieldUpdater() method? 

I realised I hadn't been crystal clear in my answer to 2). Of course once the 
user has picked a date the cell's value has changed.  You may have too store 
the old value and manually update the DateCellpPicker's value.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using DatePicker in CellTable

2013-11-24 Thread Nermin
Dear Jaga,

thank you for your answer. I have tried your 

Am Freitag, 22. November 2013 19:39:42 UTC+1 schrieb jaga:

 For 1) just override the render() method of the cell or column. If the 
 value is null do nothing otherwise render as normal .


Overriding the render() method was also my intention. However, *I get a NPE 
when user clicks on the DatePicketCell for setting a new date*. See stack 
trace below.

Nov 24, 2013 9:54:17 PM 
com.google.gwt.logging.server.RemoteLoggingServiceUtil logOnServer
SEVERE: null
com.google.gwt.core.client.impl.SerializableThrowable$ThrowableWithClassName
at 
com.google.gwt.user.datepicker.client.CalendarModel.setCurrentMonth(CalendarModel.java:148)
at 
com.google.gwt.user.datepicker.client.DatePicker.setCurrentMonth(DatePicker.java:527)
at 
com.google.gwt.cell.client.DatePickerCell.onEnterKeyDown(DatePickerCell.java:220)
at 
com.google.gwt.cell.client.DatePickerCell.onBrowserEvent(DatePickerCell.java:183)
at 
com.google.gwt.cell.client.DatePickerCell.onBrowserEvent(DatePickerCell.java:1)
at 
com.google.gwt.user.cellview.client.Column.onBrowserEvent(Column.java:154)
at 
com.google.gwt.user.cellview.client.AbstractCellTable.fireEventToCell(AbstractCellTable.java:2437)
at 
com.google.gwt.user.cellview.client.AbstractCellTable.onBrowserEvent2(AbstractCellTable.java:2006)
at 
com.google.gwt.user.cellview.client.AbstractHasData.onBrowserEvent(AbstractHasData.java:739)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Unknown Source)
 

 For 2) I suggest you look at the cell validation example in the gwt 
 showcase. You could also probably just as well ignore the modified value 
 and just call CellTable.redraw() or refresh your data provider. 


*There is a GWT-Bug here.*
In case you use default DatePickerCell constructor, or the one with the 
DateTimeFormat, the DatePicker will show up the chosen date, and it WILL 
KEEP SHOWING IT even if you decide not to set it. Calling 
CellTable.redraw() or refresh on data provider will not have any effect to 
its value in the CellTable!

In case you override its render method, such as the one I have here:
...
@Override 
public void render(Context context, Date value, SafeHtmlBuilder 
sb) {
if(value != null) {

sb.appendEscaped(DateTimeFormat.getFormat(dd.MM.yyy).format(value));
}
}
In that case it works fine. DatePickerCell will not show the new value 
until the data provider is not re-loaded with the new data.

In my opinion this looks like a bug. 
My first question sounds also like a bug or like a feature request.

Can someone check this and report a bug/feature-request to GWT-developers?

Thank you:

Nermin

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group

Using DatePicker in CellTable

2013-11-22 Thread Nermin
Dear Group,

I have two probably simple questions for using DatePicker in CellTable:

*1. In case, no date had been specified yet, Is it possible to show a empty 
Datepicker field?*
I get NPE if date is null, which is probably fine. At this moment, I 
populate the date field with current date, which works but is wrong.
I would like to show a message not specified and to pop-up a DatePicker 
when user clicks on it. ... How do I do this?

*2. I ask user to confirm the new date before it is changed in the DB. How 
do I set date shown in the DatePickerCell back to the old one?*
Basically what happens is that the new date shown in the DatePickerCell is 
changed to the new date as soon as user chooses a new date from the 
DatePicker.
I ask via: Window.confirm() if he is sure to change the date to the new 
one, and in case NO, I would like to set the date shown in the CellTable 
back to the old one. ... How do I do this?

Thank you in advance for your help:

Nermin B.

Here is my code. The blue marked part is concerned with Question1 and Red 
part with Question2.

//=== JobOffeer VALID UNTIL COLUMN
DatePickerCell jobOfferExipreDateCell = new 
DatePickerCell(DateTimeFormat.getFormat(dd.MM.yyy hh:mm));
ColumnJobProxy, Date jobExpireDateColumn = new ColumnJobProxy, 
Date(jobOfferExipreDateCell) {
@Override
public Date getValue(JobProxy object) {
if(object.getExpireDate() == null) {
   return new Date();
} else {
   return object.getExpireDate();
}
}
};
jobExpireDateColumn.setFieldUpdater(new FieldUpdaterJobProxy, 
Date() {
@Override
public void update(int index, JobProxy currentJob, Date 
changedExpiredDate) {
if(Window.confirm(Do you want to change expire date to 
+DateTimeFormat.getFormat(dd.MM.yyy).format(changedExpiredDate)+?)) {
//update job
JobRequest jobRequest = 
cp.getRequestFactory().jobRequest();
JobProxy editedJob = jobRequest.edit(currentJob);
//Set New Date
editedJob.setExpireDate(changedExpiredDate);
//(1)Receiver
ReceiverProcessResponseProxy receiver = new 
ReceiverProcessResponseProxy(){
@Override
public void onSuccess(ProcessResponseProxy 
response) {
cp.getEventBus().fireEvent(new 
LoadDataRequestEvent(LoadDataRequestType.LOGIN_USER));
}
};
//(2) Fire
jobRequest.update().using(editedJob).fire(receiver);
} else {
//ToDo: Reset DatePicker back to 
currentJob.getExpireDate();
}
}
});

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Using DatePicker in CellTable

2013-11-22 Thread jaga
For 1) just override the render() method of the cell or column. If the value is 
null do nothing otherwise render as normal .
For 2) I suggest you look at the cell validation example in the gwt showcase. 
You could also probably just as well ignore the modified value and just call 
CellTable.redraw() or refresh your data provider. 

Jaga

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: DateBox DatePicker popup is not showing up!

2013-10-03 Thread Sandeep Shukla
Thanks a ton !! This was a life saver :) 

On Monday, June 1, 2009 1:10:35 AM UTC+5:30, John_Idol wrote:

 my BAD -- had a look with firebug and it was there behind the rest of 
 the stuff, I just had to define the following css class: 

 .dateBoxPopup { 
 z-index: 100; 
 } 

 On May 31, 8:32 pm, John_Idol giovanni.id...@gmail.com wrote: 
  When I said *this* example I meant to include the link but I didn't -- 
  
  http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker 
  
  On May 31, 8:30 pm, John_Idol giovanni.id...@gmail.com wrote: 
  
  
  
   Hi All, 
  
   I am following this example and the example in the DateBox 
   specification - so I have smt like this in my OnModuleLoad: 
  
 public void onModuleLoad() { 
   _dateBox = new DateBox(); 
   _dateBox.setValue(new Date()); 
   RootPanel.get().add(_dateBox); 
 } 
  
   Problem is when I click on the DateBox nothing happens - I'd expect 
   the popup with the DatePicker to show up (this is happening on hosted 
   browser (IE), chrome and firefox). 
  
   Is there any init step I am missing? 
  
   I tried a search on this group but couldn't find anything similar 
  
   Any help appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Issue # 3520: More Flexible DatePicker

2013-03-15 Thread Nick Harrington
Hello all,

I've submitted a patch for this issue: 
http://gwt-code-reviews.appspot.com/1894803/
I was wondering if anyone has looked at it since I haven't had any feedback 
in a while.

Thanks,

Nick

-- 
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gwt-contrib] Re: DateBox (DatePicker) still allows user to choose disabled dates with mouse click (issue1885803)

2013-01-28 Thread t . broyer

According to
http://code.google.com/p/google-web-toolkit/issues/detail?id=7919 it
worked the way you describe in GWT 2.4 so let's go ahead and fix this.
Apparently the regression was introduced in
https://code.google.com/p/google-web-toolkit/source/detail?r=11174

Daniel: how's 2.5.1 going? is it too late to put this patch in? it's a
regression so I'd like to see it fixed as early as possible.


http://gwt-code-reviews.appspot.com/1885803/diff/3001/user/src/com/google/gwt/user/datepicker/client/CellGridImpl.java
File user/src/com/google/gwt/user/datepicker/client/CellGridImpl.java
(right):

http://gwt-code-reviews.appspot.com/1885803/diff/3001/user/src/com/google/gwt/user/datepicker/client/CellGridImpl.java#newcode271
user/src/com/google/gwt/user/datepicker/client/CellGridImpl.java:271: if
(!cell.isEnabled()) {
Apparently (form the following lines), this method can be called with
'null'.

Replacing the cell.isEnabled() check with isActive(cell) (which does the
null-check) won't help here as we would return when cell==null,
introducing a change in behavior.

It seems to me like all the calls to setSelected in GWT's codebase (I
suspect Google extend/uses this class internally in their own projects)
but one are guarded by an 'if (isActive(cell))' check, so let's add that
check around the call that's missing it and not change setSelected
behavior's.

http://gwt-code-reviews.appspot.com/1885803/

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group.

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gwt-contrib] Re: DateBox (DatePicker) still allows user to choose disabled dates with mouse click (issue1885803)

2013-01-24 Thread t . broyer

Can you please make your patch from trunk/ rather than
trunk/user/src/com/google/gwt/user/datepicker/client/ ?

That said, there are other implications than just selecting from the
calendar view:
 - what if I setValue() with a disabled date? (I mean, what should be
the expected behavior)
 - what if I enter a disabled date in a DateBox?

I'm not sure CellGridImpl is the right place to fix it either: what if I
use a custom CalendarView? The question actually is: who is responsible
for ignoring the events for a disabled date? is it the CalendarView
implementation? or the DatePicker/DateBox?

I cannot publish comments on the patch due to the bogus Base URL, so
here's my comment:
Shouldn't the isEnabled() check be moved into setSelected() ? There are
a couple other calls to setSelected() that you didn't guard with
isEnabled. I don't know when/how they're triggered but it seems bogus to
me.
This is assuming CellGridImpl is the right place to fix this issue
though (see above)

http://gwt-code-reviews.appspot.com/1885803/

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors




[gwt-contrib] DateBox (DatePicker) still allows user to choose disabled dates with mouse click (issue1885803)

2013-01-24 Thread cswillseph

Reviewers: ,

Description:
I am submitting a patch to issue 7876 in the GWT issue tracker
(http://code.google.com/p/google-web-toolkit/issues/detail?id=7876) as
part of a university software engineering project. I found that each
datepicker cell has a boolean enabled value, and the method
setTransientEnabledOnDates(false, ...) properly sets this enabled
variable to false.

However, on line 76 of CellGridImpl.java, the cell is being selected
when the click event is handled regardless of whether or not the cell is
enabled.

I modified this by adding a check with Cell.this.isEnabled() and re-ran
my test project and it seems to have fixed the issue. I've attached the
patch file in the data section of this form.

Please review this at http://gwt-code-reviews.appspot.com/1885803/

Affected files:
  CellGridImpl.java


Index: CellGridImpl.java
===
--- CellGridImpl.java   (revision 11440)
+++ CellGridImpl.java   (working copy)
@@ -64,7 +64,8 @@
 public void onKeyDown(KeyDownEvent event) {
   if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER ||
  event.getNativeKeyCode() == ' ') {
-if (isActive(Cell.this)) {
+if (isActive(Cell.this) 
+   Cell.this.isEnabled()) {
   setSelected(Cell.this);
 }
   }
@@ -74,7 +75,9 @@
   addDomHandler(new ClickHandler() {
   @Override
   public void onClick(ClickEvent event) {
-setSelected(Cell.this);
+if (Cell.this.isEnabled()) {
+  setSelected(Cell.this);
+}
   }
 }, ClickEvent.getType());
 }


--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors




DateBox / DatePicker issues for invalid dates in Internet Explorer 8

2013-01-17 Thread Anne Taylor
 

The DatePicker/DateBox I'm using has a text field for the year. If I put my 
cursor in the box and start typing, it concatenates on the end (ie, it 
starts out as 2013 and turns into 20132012). If I then pick a date and 
submit, the year gets changed automatically to be 1969. Presumably this is 
because the date is out of range. However, when I try to edit the year 
again to fix it, it automatically reverts to 1969 no matter what I type. 
This only happens in Internet Explorer 8.

Is this a known issue? Is there anything I can do to make the experience 
more user-friendly?

Thank you for your time.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/MNPeRMuJ3WQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



datePicker show current date after setValue

2013-01-04 Thread bhomass
I called setValue(dueDate) on the datePicker. it apparently sets the new 
date value ok, but does not reload the calendar page of the new date. It 
stays on the page with today's date. which method do I use to get it to 
update its page to show the current date?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xT-iR4nGVL4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: datePicker show current date after setValue

2013-01-04 Thread Thomas Broyer
setCurrentMonthhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#setCurrentMonth(java.util.Date)
?

On Friday, January 4, 2013 9:01:12 AM UTC+1, bhomass wrote:

 I called setValue(dueDate) on the datePicker. it apparently sets the new 
 date value ok, but does not reload the calendar page of the new date. It 
 stays on the page with today's date. which method do I use to get it to 
 update its page to show the current date?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gc2qMGMdMcUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: datePicker show current date after setValue

2013-01-04 Thread bhomass
ha, that's an easy one. maybe that's why gwt team never bothered with a 
method to do it. I still think a parameter setting is a better idea. thanks!

On Friday, January 4, 2013 6:38:05 AM UTC-8, Thomas Broyer wrote:

 setCurrentMonthhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#setCurrentMonth(java.util.Date)
 ?

 On Friday, January 4, 2013 9:01:12 AM UTC+1, bhomass wrote:

 I called setValue(dueDate) on the datePicker. it apparently sets the new 
 date value ok, but does not reload the calendar page of the new date. It 
 stays on the page with today's date. which method do I use to get it to 
 update its page to show the current date?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/nX4Aqdmk3DUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hijri (Jalali) Datepicker

2012-12-27 Thread Amin Bahiraei
hi nima 
i need jalali datepicker for gwt , i use ur code and it has some bugs like 
years and month days count (azar has 31 days) and ,,
do you complete ur code ?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qvzGnFs3n_UJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to dynamicaly localize datepicker

2012-12-18 Thread tarish
I want to dynamicaly localize datepicker is there any work around for this??

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vTcXus2p-BQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Change DatePicker language

2012-12-18 Thread Piyu D
Hi,
I have the same problem. I want to change datepicker language without doing 
changes in html or .gwt.xml file.  I want it to be done dynamically using 
properties file and dictionary. You have any idea on how to do it?
Thanks,
Piyu

On Wednesday, 21 March 2012 18:32:27 UTC+5:30, nicanor.babula wrote:

 Hi everyone,

 How can I change the display language of the DatePicker object? My app is 
 internationalized on a GWT level, but enabling more than 1 language in 
 module.gwt.xml generates a war too big to be deployed on Appengine, 
 therefore I am stuck with the default which I assume is english. Is there a 
 way to change only the locale of the DatePicker or to change the default 
 locale?

 Thanks,
 Cristian.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RLRo1a_uN3cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to dynamically localize datepicker

2012-12-18 Thread Piyu D


I want to localize datepicker component dynamically withouht using html 
settings of LOCALE. Any idea about how to do it?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/abofxVDmqP0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker disable dates before minDate

2012-12-12 Thread Zhe Chen
I try to disable days before a given date. Here is the code I am using, but 
it does not work. When I click days before minDate on datePicker, it will 
fire onValueChange event of datePicker.

datePicker.addShowRangeHandler(new ShowRangeHandlerDate() {
  @Override
  public void onShowRange(ShowRangeEventDate event) {
Date current = CalendarUtil.copyDate(event.getStart());
while (current.before(event.getEnd())) {
  if (current.before(minDate)) {
datePicker.setTransientEnabledOnDates(false, current);
  }
  CalendarUtil.addDaysToDate(current, 1);
}
  }
});

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/sNBUTtUmdcEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Datepicker with multiselect

2012-12-10 Thread Joel
Has anyone gotten hold of the code for this awesome datepicker?

J

On Sunday, November 27, 2011 9:10:00 AM UTC-6, Deepak Singh wrote:

 Hi Eric,

 I also need this multi select datepicker.
 Can release the component or send the source code to us.

 Thanks
 Deepak

 On Mon, Jun 27, 2011 at 5:54 PM, Dmitry Tikhomirov 
 chani...@gmail.comjavascript:
  wrote:

 Hi Erik,

 Have you realese your multi-select DatePicker ?

 Thanks




 17.05.2011, в 21:09, Erik Uzureau написал(а):

 :-) Ok great to hear. I'm a little tied up this week but I'll see about 
 getting that process started next week at the latest


 Erik Uzureau
 *France: *+33.6.85.96.94.08
 *USA: *+1.312.927.5644


 On Tue, May 17, 2011 at 15:19, Dmitry Tikhomirov 
 chani...@gmail.comjavascript:
  wrote:

 Yes, We need it !


 17.05.2011, в 17:05, Juan Pablo Gardella написал(а):

 Yes! Very useful.

 2011/5/17 Erik Uzureau euz...@gmail.com javascript:

 Hello Dmitry,

 We built a date picker that can handle the selection of date ranges 
 (for the hospitality industry). 

 We basically forked the generic GWT one to add the support for 
 multi-select and the range display. 
 It's not the most optimised code in the world but it gets the job 
 done

 You can see it live running here: https://demo.reztrip.com/

 We were thinking about taking the code and open sourcing it. Would this 
 be useful to you? Others?
  
 Erik Uzureau
 **

 On Thu, May 5, 2011 at 16:39, Juan Pablo Gardella 
 gardella...@gmail.com javascript: wrote:

 See multiselect calendar in 
 jqueryhttp://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and 
 see gwtquery http://code.google.com/p/gwtquery/ (jquery ported to 
 GWT). You can try with this to integrate to your application.
  
 2011/5/5 Dmitry Tikhomirov chani...@gmail.com javascript:

 Hi all,

 Does anyone know any Datepicker with multiselect support. I need 
 ability to select several dates.

 Thanks !

 --
 You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



 -- 
 You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



 -- 
 You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



 -- 
 You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



 -- 
 You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.


  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.




 -- 
 Deepak Singh
  

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZGXSlf1_kLQJ.
To post

dates in DatePicker sometimes fail to be selected on the iPad

2012-11-20 Thread Phineas Gage
Using Safari on an iPad, or the iOS Simulator in XCode, simply go to the 
GWT showcase for the DatePicker:

http://gwt.google.com/samples/Showcase/Showcase.html#!CwDatePicker

Most of the time, when you tap a date, it's selected. However, sometimes 
the DatePicker is left in an in-between state where the date is highlighted 
yellow (as if the user had hovered over the date with a mouse) but it is 
not selected. Tap again, and if you're lucky, it's finally selected.

The current release is GWT 2.5, and I'm not sure when this problem 
appeared...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Kikx89X2PtYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker Keyboard Navigation

2012-10-05 Thread Fraser Thompson


Hi all. I have a GWT DatePicker and I am trying to make this accessible 
from the keyboard. I am having difficulty in exposing the actual date 
elements in the calendar and I was wondering if anyone has had any luck 
with this? All I want really is to be able to tab into the different dates 
in the calendar.

Thanks in advance!


Fraser

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Iz-wiq0skUIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[gwt-contrib] Re: Allow enablement and titles to be set from DatePicker (issue1702804)

2012-05-13 Thread branflake2267

On 2012/05/12 15:09:03, Patrick Tucker wrote:

Nice work!

http://gwt-code-reviews.appspot.com/1702804/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: Set title on specific dates in DatePicker

2012-05-12 Thread Patrick Tucker
http://gwt-code-reviews.appspot.com/1702804/

On Thursday, May 10, 2012 11:08:29 PM UTC-4, Brandon Donnelson wrote:

 Your awesome Patrick!!!

  http://code.google.com/p/google-web-toolkit/issues/detail?id=7367 hows 
 this work. 

 Brandon



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eWCvkmI4OM4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[gwt-contrib] Allow enablement and titles to be set from DatePicker (issue1702804)

2012-05-12 Thread tuckerpmt

Reviewers: google-web-toolkit-contributors_googlegroups.com,

Description:
http://code.google.com/p/google-web-toolkit/issues/detail?id=7367

http://code.google.com/p/google-web-toolkit/issues/detail?id=7360

Please review this at http://gwt-code-reviews.appspot.com/1702804/

Affected files:
  user/src/com/google/gwt/user/datepicker/client/CalendarView.java
  user/src/com/google/gwt/user/datepicker/client/DatePicker.java
  user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: Set title on specific dates in DatePicker

2012-05-10 Thread Alex opn
Cool, exactly what I need : )

Starred!

Thanks a lot

Am Mittwoch, 9. Mai 2012 03:38:20 UTC+2 schrieb Patrick Tucker:

 Take a look at the patch I just made.

 http://code.google.com/p/google-web-toolkit/issues/detail?id=7360

 On Tuesday, May 8, 2012 8:45:09 AM UTC-4, Alex opn wrote:

 Hello,

 I'd like to be able to to set some text as title (which show up when a 
 user hovers over a specific date) on some dates of a datepicker similar to 
 the addStyleToDates-method:


 http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addStyleToDates%28java.lang.String,%20java.util.Date%29

 As I can't find a method for that I think it's not available out of the 
 box, right?
 Anyone ever implemented this functionality or something similar, are 
 there problems extending DatePicker?

 Regards
 Alex



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/x7h1AZve7zoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Brandon Donnelson
I like it. :)

While your in there could you add a method for getting the view? This way 
we could get access to disabling dates when the month is selected.

public CalendarView getCalendarView() {
return getView();
}

http://c.gwt-examples.com/home/ui/datepicker 

Brandon Donnelson
http://c.gwt-examples.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/nGvqrHq21kYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Patrick Tucker
DatePicker already has getView().
 
Do you mean in DateBox?  Currently from DateBox you have to access the 
CalendarView though getDatePicker().  I can add it, no guarantee it will 
get approved though.
 
On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote:

 I like it. :)

 While your in there could you add a method for getting the view? This way 
 we could get access to disabling dates when the month is selected.

 public CalendarView getCalendarView() {
 return getView();
 }

 http://c.gwt-examples.com/home/ui/datepicker 

 Brandon Donnelson
 http://c.gwt-examples.com


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/acOJvjRL8UgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Brandon Donnelson
Yes, I know, but it's protected. I figured you'd see that :) 

I have to override datepicker to get at its view to disable dates I don't 
want selected in the calendar. Maybe ideally it would be better to open up 
extending the view and model to the datepicker which are both protected 
too. I'd love to extend either the DefaultView and add some logic to it for 
our app. I think the original intention for the view was for 
its extension from the comments I've read but it's been some time it would 
seem its more mature. 

CalendarView.class - comments at the top:
/**
 * Simple calendar view. Not extensible as we wish to evolve it freely over
 * time.
 */

Basically everything is protected for overriding functions. I can see why 
it's protected to improve the the methods before allowing for it to be 
extended and for use. 

Also do you see any harm in making the 'CalendarView getView()' a public 
method? because I don't :)

Thanks for taking a look at this Patrick.

Brandon
http://c.gwt-examples.com


On Thursday, May 10, 2012 8:09:02 AM UTC-7, Patrick Tucker wrote:

 DatePicker already has getView().
  
 Do you mean in DateBox?  Currently from DateBox you have to access the 
 CalendarView though getDatePicker().  I can add it, no guarantee it will 
 get approved though.
  
 On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote:

 I like it. :)

 While your in there could you add a method for getting the view? This way 
 we could get access to disabling dates when the month is selected.

 public CalendarView getCalendarView() {
 return getView();
 }

 http://c.gwt-examples.com/home/ui/datepicker 

 Brandon Donnelson
 http://c.gwt-examples.com



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FxY6guefzYcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Patrick Tucker
setTransientEnabledOnDates (boolean enabled, Date date) won't get you what 
you need or do the dates need to be disabled upon reload?
 
Just thinking a setEnabledOnDates (boolean enabled, Date date) should be 
added if a more permanent disable is what you are looking for.

On Thursday, May 10, 2012 11:24:44 AM UTC-4, Brandon Donnelson wrote:

 Yes, I know, but it's protected. I figured you'd see that :) 

 I have to override datepicker to get at its view to disable dates I don't 
 want selected in the calendar. Maybe ideally it would be better to open up 
 extending the view and model to the datepicker which are both protected 
 too. I'd love to extend either the DefaultView and add some logic to it for 
 our app. I think the original intention for the view was for 
 its extension from the comments I've read but it's been some time it would 
 seem its more mature. 

 CalendarView.class - comments at the top:
 /**
  * Simple calendar view. Not extensible as we wish to evolve it freely over
  * time.
  */

 Basically everything is protected for overriding functions. I can see why 
 it's protected to improve the the methods before allowing for it to be 
 extended and for use. 

 Also do you see any harm in making the 'CalendarView getView()' a public 
 method? because I don't :)

 Thanks for taking a look at this Patrick.

 Brandon
 http://c.gwt-examples.com


 On Thursday, May 10, 2012 8:09:02 AM UTC-7, Patrick Tucker wrote:

 DatePicker already has getView().
  
 Do you mean in DateBox?  Currently from DateBox you have to access the 
 CalendarView though getDatePicker().  I can add it, no guarantee it will 
 get approved though.
  
 On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote:

 I like it. :)

 While your in there could you add a method for getting the view? This 
 way we could get access to disabling dates when the month is selected.

 public CalendarView getCalendarView() {
 return getView();
 }

 http://c.gwt-examples.com/home/ui/datepicker 

 Brandon Donnelson
 http://c.gwt-examples.com



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UEUfLyTseoEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Brandon Donnelson
That method is protected inside the view, but thats the method I want 
access to. :)

On Thursday, May 10, 2012 8:34:47 AM UTC-7, Patrick Tucker wrote:

 setTransientEnabledOnDates (boolean enabled, Date date) won't get you 
 what you need or do the dates need to be disabled upon reload?
  
 Just thinking a setEnabledOnDates (boolean enabled, Date date) should be 
 added if a more permanent disable is what you are looking for.

 On Thursday, May 10, 2012 11:24:44 AM UTC-4, Brandon Donnelson wrote:

 Yes, I know, but it's protected. I figured you'd see that :) 

 I have to override datepicker to get at its view to disable dates I don't 
 want selected in the calendar. Maybe ideally it would be better to open up 
 extending the view and model to the datepicker which are both protected 
 too. I'd love to extend either the DefaultView and add some logic to it for 
 our app. I think the original intention for the view was for 
 its extension from the comments I've read but it's been some time it would 
 seem its more mature. 

 CalendarView.class - comments at the top:
 /**
  * Simple calendar view. Not extensible as we wish to evolve it freely 
 over
  * time.
  */

 Basically everything is protected for overriding functions. I can see why 
 it's protected to improve the the methods before allowing for it to be 
 extended and for use. 

 Also do you see any harm in making the 'CalendarView getView()' a public 
 method? because I don't :)

 Thanks for taking a look at this Patrick.

 Brandon
 http://c.gwt-examples.com


 On Thursday, May 10, 2012 8:09:02 AM UTC-7, Patrick Tucker wrote:

 DatePicker already has getView().
  
 Do you mean in DateBox?  Currently from DateBox you have to access the 
 CalendarView though getDatePicker().  I can add it, no guarantee it 
 will get approved though.
  
 On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote:

 I like it. :)

 While your in there could you add a method for getting the view? This 
 way we could get access to disabling dates when the month is selected.

 public CalendarView getCalendarView() {
 return getView();
 }

 http://c.gwt-examples.com/home/ui/datepicker 

 Brandon Donnelson
 http://c.gwt-examples.com



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/M7cf4CEpdmYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Christian Goudreau
I want this too!

On Tuesday, May 8, 2012 8:45:09 AM UTC-4, Alex opn wrote:

 Hello,

 I'd like to be able to to set some text as title (which show up when a 
 user hovers over a specific date) on some dates of a datepicker similar to 
 the addStyleToDates-method:


 http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addStyleToDates%28java.lang.String,%20java.util.Date%29

 As I can't find a method for that I think it's not available out of the 
 box, right?
 Anyone ever implemented this functionality or something similar, are there 
 problems extending DatePicker?

 Regards
 Alex


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NaEZepyaDPEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Brandon Donnelson
The reason I want access to that method is for. 
1. I want a person to select only future dates
2. I want a person to select with in a date range
3. I want a person to select before a date
4. I want a person to select between a choice of dates.


On Thursday, May 10, 2012 8:34:47 AM UTC-7, Patrick Tucker wrote:

 setTransientEnabledOnDates (boolean enabled, Date date) won't get you 
 what you need or do the dates need to be disabled upon reload?
  
 Just thinking a setEnabledOnDates (boolean enabled, Date date) should be 
 added if a more permanent disable is what you are looking for.

 On Thursday, May 10, 2012 11:24:44 AM UTC-4, Brandon Donnelson wrote:

 Yes, I know, but it's protected. I figured you'd see that :) 

 I have to override datepicker to get at its view to disable dates I don't 
 want selected in the calendar. Maybe ideally it would be better to open up 
 extending the view and model to the datepicker which are both protected 
 too. I'd love to extend either the DefaultView and add some logic to it for 
 our app. I think the original intention for the view was for 
 its extension from the comments I've read but it's been some time it would 
 seem its more mature. 

 CalendarView.class - comments at the top:
 /**
  * Simple calendar view. Not extensible as we wish to evolve it freely 
 over
  * time.
  */

 Basically everything is protected for overriding functions. I can see why 
 it's protected to improve the the methods before allowing for it to be 
 extended and for use. 

 Also do you see any harm in making the 'CalendarView getView()' a public 
 method? because I don't :)

 Thanks for taking a look at this Patrick.

 Brandon
 http://c.gwt-examples.com


 On Thursday, May 10, 2012 8:09:02 AM UTC-7, Patrick Tucker wrote:

 DatePicker already has getView().
  
 Do you mean in DateBox?  Currently from DateBox you have to access the 
 CalendarView though getDatePicker().  I can add it, no guarantee it 
 will get approved though.
  
 On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote:

 I like it. :)

 While your in there could you add a method for getting the view? This 
 way we could get access to disabling dates when the month is selected.

 public CalendarView getCalendarView() {
 return getView();
 }

 http://c.gwt-examples.com/home/ui/datepicker 

 Brandon Donnelson
 http://c.gwt-examples.com



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ip4OFswpQrUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-10 Thread Patrick Tucker
Take a look at this patch.  I added setEnabledOnDate(boolean, Date) and 
getEnabledOnDate(boolean).  I wasn't sure if changing isDateEnabled(Date) 
was a good idea, so I left it alone.
 
Can you create an isse for the enabled capability so I can link to it when 
I submit the patch? 

On Thursday, May 10, 2012 11:45:46 AM UTC-4, Brandon Donnelson wrote:

 The reason I want access to that method is for. 
 1. I want a person to select only future dates
 2. I want a person to select with in a date range
 3. I want a person to select before a date
 4. I want a person to select between a choice of dates.


 On Thursday, May 10, 2012 8:34:47 AM UTC-7, Patrick Tucker wrote:

 setTransientEnabledOnDates (boolean enabled, Date date) won't get you 
 what you need or do the dates need to be disabled upon reload?
  
 Just thinking a setEnabledOnDates (boolean enabled, Date date) should be 
 added if a more permanent disable is what you are looking for.

 On Thursday, May 10, 2012 11:24:44 AM UTC-4, Brandon Donnelson wrote:

 Yes, I know, but it's protected. I figured you'd see that :) 

 I have to override datepicker to get at its view to disable dates I 
 don't want selected in the calendar. Maybe ideally it would be better to 
 open up extending the view and model to the datepicker which are both 
 protected too. I'd love to extend either the DefaultView and add some logic 
 to it for our app. I think the original intention for the view was for 
 its extension from the comments I've read but it's been some time it would 
 seem its more mature. 

 CalendarView.class - comments at the top:
 /**
  * Simple calendar view. Not extensible as we wish to evolve it freely 
 over
  * time.
  */

 Basically everything is protected for overriding functions. I can see 
 why it's protected to improve the the methods before allowing for it to be 
 extended and for use. 

 Also do you see any harm in making the 'CalendarView getView()' a public 
 method? because I don't :)

 Thanks for taking a look at this Patrick.

 Brandon
 http://c.gwt-examples.com


 On Thursday, May 10, 2012 8:09:02 AM UTC-7, Patrick Tucker wrote:

 DatePicker already has getView().
  
 Do you mean in DateBox?  Currently from DateBox you have to access the 
 CalendarView though getDatePicker().  I can add it, no guarantee it 
 will get approved though.
  
 On Thursday, May 10, 2012 11:01:08 AM UTC-4, Brandon Donnelson wrote:

 I like it. :)

 While your in there could you add a method for getting the view? This 
 way we could get access to disabling dates when the month is selected.

 public CalendarView getCalendarView() {
 return getView();
 }

 http://c.gwt-examples.com/home/ui/datepicker 

 Brandon Donnelson
 http://c.gwt-examples.com



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eg4Tzw-u0igJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Index: user/src/com/google/gwt/user/datepicker/client/CalendarView.java
===
--- user/src/com/google/gwt/user/datepicker/client/CalendarView.java
(revision 10969)
+++ user/src/com/google/gwt/user/datepicker/client/CalendarView.java
(working copy)
@@ -33,7 +33,7 @@
   }
 
   /**
-   * Adds a style name to the cell of the supplied date. This style is only set
+   * Adds a style name to the cell of the supplied date. This style is not set
* until the next time the {@link CalendarView} is refreshed.
* 
* @param styleName style name to add
@@ -67,7 +67,7 @@
* Removes a visible style name from the cell of the supplied date.
* 
* @param styleName style name to remove
-   * @param date date that will have the supplied style added
+   * @param date date that will have the supplied style removed
*/
   public abstract void removeStyleFromDate(String styleName, Date date);
 
@@ -79,6 +79,15 @@
* @param date date to enable or disable
*/
   public abstract void setEnabledOnDate(boolean enabled, Date date);
+  
+  /**
+   * Sets the title on the cell of the supplied date. This title is not set
+   * until the next time the {@link CalendarView} is refreshed.
+   * 
+   * @param title title to add
+   * @param date date that will have the supplied title added
+   */
+  public abstract void setTitleOnDate(String title, Date date);
 
   /**
* Allows the calendar view to update the date picker's highlighted date.
Index: user/src/com/google/gwt/user/datepicker/client/DatePicker.java
===
--- user/src/com/google/gwt/user/datepicker/client/DatePicker.java  
(revision 10969)
+++ user

Re: Set title on specific dates in DatePicker

2012-05-10 Thread Brandon Donnelson
Your awesome Patrick!!!

 http://code.google.com/p/google-web-toolkit/issues/detail?id=7367 hows 
this work. 

Brandon



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/oxFfyUxenj4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Set title on specific dates in DatePicker

2012-05-08 Thread Alex opn
Hello,

I'd like to be able to to set some text as title (which show up when a user 
hovers over a specific date) on some dates of a datepicker similar to the 
addStyleToDates-method:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addStyleToDates%28java.lang.String,%20java.util.Date%29

As I can't find a method for that I think it's not available out of the 
box, right?
Anyone ever implemented this functionality or something similar, are there 
problems extending DatePicker?

Regards
Alex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_F8M2acKJbkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-08 Thread Brandon Donnelson
Not sure this will help, but when I wanted some functions in DatePicker I 
extended it. I thought about copying all the datepickers source but there 
several classes that go along with it.

http://c.gwt-examples.com/home/ui/datepicker

Brandon Donnelson
http://c.gwt-examples.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9vDUG-QdnTIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Set title on specific dates in DatePicker

2012-05-08 Thread Patrick Tucker
Take a look at the patch I just made.

http://code.google.com/p/google-web-toolkit/issues/detail?id=7360

On Tuesday, May 8, 2012 8:45:09 AM UTC-4, Alex opn wrote:

 Hello,

 I'd like to be able to to set some text as title (which show up when a 
 user hovers over a specific date) on some dates of a datepicker similar to 
 the addStyleToDates-method:


 http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addStyleToDates%28java.lang.String,%20java.util.Date%29

 As I can't find a method for that I think it's not available out of the 
 box, right?
 Anyone ever implemented this functionality or something similar, are there 
 problems extending DatePicker?

 Regards
 Alex


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/8e7QPpw8GjkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker UTC

2012-04-15 Thread Thomas Lefort
Just saw your answer, thanks.

I use JsDate to get the UTC conversion. However this still doesn't work for 
the picker, as it will still display the date using the local time format. 
If I have 12/04/2012 at 1am UTC in the US, it will show me the picker at 
11/04/2012. May be the solution would be to pass a converted date to the 
picker, ie add the time offset to the data when opening the picker. I do 
not use the DateBox but my own widget, so I can pass the date I want to the 
picker.


On Thursday, 29 March 2012 15:56:33 UTC+2, kjordan wrote:

 http://code.google.com/p/gwt-traction/ (Look for UTCDateBox towards the 
 bottom)

 http://gwt-traction.googlecode.com/hg/demo/com.tractionsoftware.gwt.demo.utcdatebox.UTCDateBoxDemo/UTCDateBoxDemo.html(Demo
  of it).

 I created one based off of this for GXT and this should do what you want. 
  Although when I went to create a GXT version, I kept it so get/setValue 
 used Date and not Long but did the timezone offset subtraction that this 
 did.

 On Wednesday, March 28, 2012 3:07:39 PM UTC-5, Thomas Lefort wrote:

 I need the datepicker to render the date in UTC and not the local 
 format. Is there any simple way to do so?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0y3Odj482gYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker next/prev month events

2012-04-08 Thread Nikola Markovic
It actually worked! Thanks alot guys.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9kP4JreoE64J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker next/prev month events

2012-04-07 Thread Nikola Markovic
I'm not sure I understand you. Create a class inside a 
com.google.gwt.user.datepicker.client package, which is provided in the GWT 
library as gwt-user.jar? I don't think I know how to.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mIZvCab4fOAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker next/prev month events

2012-04-07 Thread Andy Stevko
Yes, create a class in your own project src tree with the Google package
name to access default scoped methods.
On Apr 7, 2012 4:23 PM, Nikola Markovic dev.mercur...@gmail.com wrote:

 I'm not sure I understand you. Create a class inside a
 com.google.gwt.user.datepicker.client package, which is provided in the GWT
 library as gwt-user.jar? I don't think I know how to.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/mIZvCab4fOAJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker next/prev month events

2012-04-06 Thread Nikola Markovic
Bump, still stuck in here :(

p.s. Thinking of making my own date picker.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gsLA7TQedlUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker next/prev month events

2012-04-06 Thread Boris Lenzinger
Hi,

Create your custom class in the same package as google and you should
workaround the IllegalAccessException (since method addMonth is protected).

Boris

Le 6 avril 2012 09:00, Nikola Markovic dev.mercur...@gmail.com a écrit :

 Bump, still stuck in here :(

 p.s. Thinking of making my own date picker.

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/gsLA7TQedlUJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker UTC

2012-03-29 Thread Thomas Lefort
To be more clear, I have a date which is 2012-03-29 at 01:00:00 UTC, if I 
do setDate(date) on the datepicker and if the user is based in the US, the 
date selected on the calendar will be the 2012-03-28, because it uses their 
local time. I want the calendar to show 2012-03-29 wherever the user is.


On Wednesday, 28 March 2012 22:07:39 UTC+2, Thomas Lefort wrote:

 I need the datepicker to render the date in UTC and not the local 
 format. Is there any simple way to do so?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0A_WEwacv9sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker UTC

2012-03-29 Thread Kevin Jordan
http://code.google.com/p/gwt-traction/ (Look for UTCDateBox towards the 
bottom)
http://gwt-traction.googlecode.com/hg/demo/com.tractionsoftware.gwt.demo.utcdatebox.UTCDateBoxDemo/UTCDateBoxDemo.html
 
(Demo of it).

I created one based off of this for GXT and this should do what you want. 
 Although when I went to create a GXT version, I kept it so get/setValue 
used Date and not Long but did the timezone offset subtraction that this 
did.

On Wednesday, March 28, 2012 3:07:39 PM UTC-5, Thomas Lefort wrote:

 I need the datepicker to render the date in UTC and not the local 
 format. Is there any simple way to do so?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/joQfhQCm1uQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker UTC

2012-03-28 Thread Thomas Lefort
I need the datepicker to render the date in UTC and not the local 
format. Is there any simple way to do so?


--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Change DatePicker language

2012-03-22 Thread Nicanor Babula
Thank you very much, Thomas. Setting -deploy and -extra to directories
outside the war solved the problem.
Problem solved.


On Wed, Mar 21, 2012 at 4:42 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Wednesday, March 21, 2012 2:02:27 PM UTC+1, nicanor.babula wrote:

 Hi everyone,

 How can I change the display language of the DatePicker object? My app is
 internationalized on a GWT level, but enabling more than 1 language in
 module.gwt.xml generates a war too big to be deployed on Appengine,


 Could it be because of the WEB-INF/deploy? If so, pass -deploy to the
 compiler to redirect these files to another folder outside your WAR.


 therefore I am stuck with the default which I assume is english. Is there
 a way to change only the locale of the DatePicker or to change the default
 locale?


 You can change the default locale with the following in your gwt.xml:
 extend-property name=locale value=fr /
 set-property-default name=locale value=fr /
 set-property name=locale value=fr /

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/NMT8ZWQR7eYJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Nicanor Cristian Babula

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Change DatePicker language

2012-03-21 Thread nicanor.babula
Hi everyone,

How can I change the display language of the DatePicker object? My app is 
internationalized on a GWT level, but enabling more than 1 language in 
module.gwt.xml generates a war too big to be deployed on Appengine, 
therefore I am stuck with the default which I assume is english. Is there a 
way to change only the locale of the DatePicker or to change the default 
locale?

Thanks,
Cristian.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZfVD0z_bFOIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Change DatePicker language

2012-03-21 Thread Thomas Broyer


On Wednesday, March 21, 2012 2:02:27 PM UTC+1, nicanor.babula wrote:

 Hi everyone,

 How can I change the display language of the DatePicker object? My app is 
 internationalized on a GWT level, but enabling more than 1 language in 
 module.gwt.xml generates a war too big to be deployed on Appengine,


Could it be because of the WEB-INF/deploy? If so, pass -deploy to the 
compiler to redirect these files to another folder outside your WAR.
 

 therefore I am stuck with the default which I assume is english. Is there 
 a way to change only the locale of the DatePicker or to change the default 
 locale?


You can change the default locale with the following in your gwt.xml:
extend-property name=locale value=fr /
set-property-default name=locale value=fr /
set-property name=locale value=fr /

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NMT8ZWQR7eYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker next/prev month events

2012-03-09 Thread Nikola Markovic
Next and previous month buttons in MonthSelector are declared as private 
and have a default behavior of adding/subtracting one month and refreshing 
the datepicker. There are no events that fire when this occurs. I've tried 
to fire my own event, by extending the MonthSelector class and implementing 
a similar solution like in DefaultMonthSelector, plus firing the event. The 
problem is that, while calling addMonth(+1) (or -1) from 
DatePickerComponent i get an illegalAccessModifier exception saying I'm 
trying to access the com.googl... package from my package. 

Tried to work around by calling some other methods, didn't work. 

Tried DateChooser(smartGwt) component, but it's all native code and all I 
can get from the component itself is the name of the Icon rendered as 
next/prev button. Not sure if messing with native code could solve my 
problem here.

Thanks in advance,

Nikola Markovic

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KZVnZdkp5qIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



PopupPanel.showRelativeTo an individual date on a DatePicker?

2012-01-31 Thread King_V
Can this be done?

I am not using any extensions or other libraries, just GWT 2.4 itself.

I have a screen that is used for scheduling, and thus shows several
DatePickers next to each other, each showing a different month, and
with the month-forward and month-back buttons disabled.

Some of the individual dates will have a marking indicating that
events or meetings are scheduled.

What I would like is to be able to have the user hover over the marked
date, and have a PopupPanel appear and show the details of what's
scheduled.

More or less I have this working - however, while I can center() the
PopupPanel, it's relatively small, and I want to show it near the date
that's actually being hovered over.

The best I've been able to manage thus far is
PopupPanel.showRelativeTo(datePickerInstance).  This is the sort of
behavior I want (show below, to left, to right, above, whatever, based
on how much room there is on the client), but I would like it to be
relative to the individual date within the DatePicker, rather than
relative to the entire DatePicker itself.

Is it possible to get a handle to the UIObject that shows the date
(ie: the 17, for, say, July 17th), and thus show the PopupPanel
relative to that?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT DialogBox Jquery DatePicker

2012-01-23 Thread Bruno MT
Hola Daniel,
Supongo que al final lo que haré será crear un componente que tenga la
misma estructura y los mismos estilos que el datePicker de Jquery. Yo
soy un mandado, no tengo ningun poder de decisión :(
Muchas gracias por contestar.
Saludos!
Bruno.


On 19 ene, 23:13, Daniel Mauricio Patino León ceo.lion@gmail.com
wrote:
 convence a tu cliente de usar el Date picker del GWT. No tiene sentido
 reemplazarlo por el de jQuery.

 2012/1/19 Bruno MT bruno.martine...@gmail.com



  Hello,

  I'm spanish java developer, like u can read(horrible english...)

  I'm a little newbie in GWT development. I enter in a maintence
  project, and it's the worst code I had ever seen...
  Client told that he wants to use Jquery DatePicker in a GWT dialogBox.
  In Internet Explorer everything is all right, but in FF the calendar
  showed by Jquery is not responding to click events, is like jquery z-
  index were less than dialgobox z-index, but its not true.

  GWT 1 - Bruno 0

  Please Elders From Internet, Help Me!!

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 ISC. Daniel Mauricio Patiño León.
 Director ejecutivo
 Liondev S.A. de C.V.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT DialogBox Jquery DatePicker

2012-01-19 Thread Bruno MT
Hello,

I'm spanish java developer, like u can read(horrible english...)

I'm a little newbie in GWT development. I enter in a maintence
project, and it's the worst code I had ever seen...
Client told that he wants to use Jquery DatePicker in a GWT dialogBox.
In Internet Explorer everything is all right, but in FF the calendar
showed by Jquery is not responding to click events, is like jquery z-
index were less than dialgobox z-index, but its not true.

GWT 1 - Bruno 0

Please Elders From Internet, Help Me!!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT DialogBox Jquery DatePicker

2012-01-19 Thread Daniel Mauricio Patino León
convence a tu cliente de usar el Date picker del GWT. No tiene sentido
reemplazarlo por el de jQuery.


2012/1/19 Bruno MT bruno.martine...@gmail.com

 Hello,

 I'm spanish java developer, like u can read(horrible english...)

 I'm a little newbie in GWT development. I enter in a maintence
 project, and it's the worst code I had ever seen...
 Client told that he wants to use Jquery DatePicker in a GWT dialogBox.
 In Internet Explorer everything is all right, but in FF the calendar
 showed by Jquery is not responding to click events, is like jquery z-
 index were less than dialgobox z-index, but its not true.

 GWT 1 - Bruno 0

 Please Elders From Internet, Help Me!!

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker : clear all styles

2012-01-10 Thread Sean
I'm still waiting for a way to do this. Everything is private, you can't 
even extend and create your own. Or CnP the source, because many of the 
classes it uses aren't visible either. 

Has anyone found a replacement for the gwt Date Picker? 

Such a nice widget, not sure why they made it so un-extendable.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Tqba348n3XUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker : clear all styles

2012-01-10 Thread Sean
So I got around the not being able to extend the class by copying:
CalendarModel.java
CalendarUtil.java
CalendarView.java
CellGridImpl.java
DateBox.java
DateChangeEvent.java
DatePicker.java
DatePickerComponent.java
DefaultCalendarView.java
DefaultMonthSelector.java
MonthSelector.java

from the gwt-user.jar and putting them in my project. Changing all private 
to protected. I also had to delete the CSS line call to dayIsWeekend() 
because it would overwrite any style I added. So all weekdays looked 
perfect, but weekends were un-affected. 

Not the prettiest of solutions, but it works.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/s-k9CVOzdioJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Disable Datepicker date

2011-12-27 Thread Ed
 Please reply with your valuable answers. :) 
Please ask valuable questions ;)
This has been asked many times in the forum, search for it please.
BTW: it's simple to do yourself, just extends the GWT datepicker classes.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xUduY3qm0IUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Disable Datepicker date

2011-12-27 Thread Rahul Mathur
Hi,
I am using From and To datpickers, when I select date from from
datepicker, I want all dates in calender before 'From date' to get
disabled. Like if, 'From date' chosen from it is : 22/12/2011, I want
all dates before it in calendar to be seen as disable.
Please reply with your valuable answers. :)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker : clear all styles

2011-11-29 Thread philippe
In the DatePicker widget, I can easily mark some dates with the 
'addStylesToDate' method. My problem is I can't found a way to clear all 
special styles (useful in a re-use case). Has somebody found a clever way 
to do this ?
Thanks !

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/nk2oJaCbOoUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Datepicker with multiselect

2011-11-27 Thread Deepak Singh
Hi Eric,

I also need this multi select datepicker.
Can release the component or send the source code to us.

Thanks
Deepak

On Mon, Jun 27, 2011 at 5:54 PM, Dmitry Tikhomirov chani.l...@gmail.comwrote:

 Hi Erik,

 Have you realese your multi-select DatePicker ?

 Thanks




 17.05.2011, в 21:09, Erik Uzureau написал(а):

 :-) Ok great to hear. I'm a little tied up this week but I'll see about
 getting that process started next week at the latest


 Erik Uzureau
 *France: *+33.6.85.96.94.08
 *USA: *+1.312.927.5644


 On Tue, May 17, 2011 at 15:19, Dmitry Tikhomirov chani.l...@gmail.comwrote:

 Yes, We need it !


 17.05.2011, в 17:05, Juan Pablo Gardella написал(а):

 Yes! Very useful.

 2011/5/17 Erik Uzureau euz...@gmail.com

 Hello Dmitry,

 We built a date picker that can handle the selection of date ranges (for
 the hospitality industry).

 We basically forked the generic GWT one to add the support for
 multi-select and the range display.
 It's not the most optimised code in the world but it gets the job
 done

 You can see it live running here: https://demo.reztrip.com/

 We were thinking about taking the code and open sourcing it. Would this
 be useful to you? Others?

 Erik Uzureau
 **

 On Thu, May 5, 2011 at 16:39, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 See multiselect calendar in 
 jqueryhttp://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and
 see gwtquery http://code.google.com/p/gwtquery/ (jquery ported to
 GWT). You can try with this to integrate to your application.

 2011/5/5 Dmitry Tikhomirov chani.l...@gmail.com

 Hi all,

 Does anyone know any Datepicker with multiselect support. I need
 ability to select several dates.

 Thanks !

 --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to
 google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to
 google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Deepak Singh

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker and short month names

2011-11-24 Thread Bademus ᵗʰᵉ
Hello.
How to change (replace by month number) short month name (Like Nov Dec ...) 
in DatePicker?
Thx.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LMLsTPa-uyYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker and short month names

2011-11-24 Thread kebatshotse setimela
hello! sory no idea


On 11/24/11, Bademus ᵗʰᵉ bade...@gmail.com wrote:
 Hello.
 How to change (replace by month number) short month name (Like Nov Dec ...)
 in DatePicker?
 Thx.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/LMLsTPa-uyYJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



gwt custom datepicker css issue with weekend dates on month navigation

2011-11-16 Thread Waqas Sadiq
0 down vote favorite
share [fb] share [tw]


I have developed the code to change the gwt datepicker CSS for a week
for a selected date.

i am able to change the whole week colour, but i move to next week or
previous week and return back to current date, then the css on
weekends is removed but on remaining 5 days, it there.

I am attaching both the classes and css-classes which i am using.

custom datepicker class

import java.util.Date;

import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event.logical.shared.ShowRangeHandler;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.i18n.client.LocaleInfo;
import com.google.gwt.i18n.client.constants.DateTimeConstants;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.datepicker.client.DatePicker;

/**

public class CustomeDatePicker extends DatePicker {
private Date date;
public Date getDate() {
return date;
}

public void setDate(Date date) {
this.date = date;
}

@Override
public HandlerRegistration addShowRangeHandler(
ShowRangeHandlerDate handler) {

if(getDate()!=null){
 setWeekStyle(getDate());
}



return super.addShowRangeHandler(handler);
}

public CustomeDatePicker() {

}

@Override
public void addStyleToDates(String styleName, Date date) {

super.addStyleToDates(customeDatePicker, date);

}


@Override
public HandlerRegistration addValueChangeHandler(
ValueChangeHandlerDate handler) {
if(getDate()!=null){
setWeekStyle(getDate());
}
return super.addValueChangeHandler(handler);
}

public void setWeekStyle(Date date) {

setDate(date);
  DateTimeConstants constants =
LocaleInfo.getCurrentLocale().getDateTimeConstants();
  int firstDay =
Integer.parseInt(constants.firstDayOfTheWeek()) - 1;

  int offset = firstDay - date.getDay();
  date.setDate(date.getDate() + offset);


// hun tak
/*  this.removeStyleFromDates(this.getStyleName(), date);*/

Window.alert(setWeekStyle);

/*this.removeStyleFromDates(datePickerDayIsWeekend, date);*/
this.addStyleToDates(customeDatePicker, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));

/*  this.removeStyleFromDates(datePickerDayIsWeekend, date);
*/  this.addStyleToDates(customeDatePicker, date);
this.getElement().getStyle().setBackgroundColor(red);

this.removeStyleFromDates(datePickerDayIsWeekend, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));

this.addStyleToDates(customeDatePicker, date);
this.getElement().getStyle().setBackgroundColor(red);

this.removeStyleFromDates(datePickerDayIsWeekend, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));

this.addStyleToDates(customeDatePicker, date);
this.getElement().getStyle().setBackgroundColor(red);

this.removeStyleFromDates(datePickerDayIsWeekend, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));

this.addStyleToDates(customeDatePicker, date);
this.getElement().getStyle().setBackgroundColor(red);

this.removeStyleFromDates(datePickerDayIsWeekend, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));

this.addStyleToDates(customeDatePicker, date);
this.getElement().getStyle().setBackgroundColor(red);
this.removeStyleFromDates(datePickerDayIsWeekend, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));

this.addStyleToDates(customeDatePicker, date);
this.getElement().getStyle().setBackgroundColor(red);
this.removeStyleFromDates(datePickerDayIsWeekend, date);
date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000));
Window.alert(itjay rakh);


}


}

the entry class

import java.util.Date;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.logical.shared.ShowRangeEvent;
import com.google.gwt.event.logical.shared.ShowRangeHandler;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.datepicker.client.DatePicker;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class Gwtproj implements EntryPoint {



/**
 * The message displayed to the user when the server cannot be
reached or
 * returns an error.
 */
private static final String SERVER_ERROR

Detect mouse position when click on DatePicker?

2011-11-14 Thread King_V
All,

Ok, I'm sure the question can be applied more generically  -  however,
I figured I'd ask it for my particular problem.

I have a DatePicker, and a class that implements
ValueChangeHandlerDate

What I want to do is figure out the mouse's absolute x and y position
on the browser window when this happens.

Is this possible?  If so, how?

Thanks in advance...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker - different styles for different instances?

2011-11-07 Thread King_V
Just posting here to bounce this one up - anyone have any idea if what
I'm asking is possible?  Or am I asking for something that can't be
done?



On Oct 21, 10:24 am, King_V kin...@mindless.com wrote:
 All,

 Ok, I've used DatePicker, NOT with DateBox, to show a calendar and
 allow selection.  No problem.

 In order to get my own styles for some of the components, my own
 project's .css has a few of the DatePicker css components in it.

 First question:  What is .gwt-DatePicker used for?  What parts of the
 DatePicker does it apply to?  What properties can be set there?

 Second question: Far more important to me.  How do I get different
 DatePicker looks?  I have .datePickerDay, .datePickerWeekendLabel, and
 a few others in my own .css file.  I do NOT have .gwt-DatePicker in
 it.  Most of my DatePickers are just fine, but there are one or two
 places where I want it to look completely different - different
 colors, different font sizes for the days in the month, the days of
 the week across the top, and the month and year name, and so on.

 How do I add/set styles for these without changing how the other
 DatePickers look?

 Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DatePicker - different styles for different instances?

2011-10-21 Thread King_V
All,

Ok, I've used DatePicker, NOT with DateBox, to show a calendar and
allow selection.  No problem.

In order to get my own styles for some of the components, my own
project's .css has a few of the DatePicker css components in it.

First question:  What is .gwt-DatePicker used for?  What parts of the
DatePicker does it apply to?  What properties can be set there?

Second question: Far more important to me.  How do I get different
DatePicker looks?  I have .datePickerDay, .datePickerWeekendLabel, and
a few others in my own .css file.  I do NOT have .gwt-DatePicker in
it.  Most of my DatePickers are just fine, but there are one or two
places where I want it to look completely different - different
colors, different font sizes for the days in the month, the days of
the week across the top, and the month and year name, and so on.

How do I add/set styles for these without changing how the other
DatePickers look?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT DatePicker +CSS

2011-09-27 Thread Sean
Hey guys,

I'm trying to create a calendar that represents when my DB has data. So I 
see DatePicker has addStyleToDates(styleName,ListDate). That's all well 
and good, but it seems that weekends have a style that is overriding my 
style, and it never shows my style on the weekend. Looking at GWT's code, 
they have a PRIVATE styler that can take in a boolean to make it set style 
name, instead of add, but again, its private and I can't access it.

Are there any ways around this without creating my own DatePicker or 
implementing the entire style heirarchy?

My style is super simple for reference

.hasData
{
background-color:green;
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pVWNMOetaVcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: A DateBox where I can select the time and hide the DatePicker

2011-09-20 Thread Alexander Orlov
Thx, however I try to avoid third-party extensions as *much as possible*. 
Really, with time their maintenance can become the biggest pain in ones 
behind. So I suppose, I have to use a TextBox.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/v9ZBle-hBP8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



A DateBox where I can select the time and hide the DatePicker

2011-09-19 Thread Alexander Orlov
final DateBox.Format format = new 
DateBox.DefaultFormat(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.TIME_SHORT));
begin.setFormat(format);
begin.hideDatePicker();

I have two problems with this DateBox

   1. I don't want it to show the DatePicker and although *
   begin.isDatePickerShowing()* reports *false,* every time I click on the 
   DateBox the DatePicker comes down
   2. I want let the DatePicker not show the Calendar but a TimeSelector 
   (I suppose it's not possible?)

To hide the DatePicker I could also use a TextBox but in this particular 
case a semantic Date widget would be nice to use.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UMd3rUd43foJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

attachment: Screen Shot 2011-09-19 at 9.36.44 AM.png

Re: A DateBox where I can select the time and hide the DatePicker

2011-09-19 Thread Thad
The now discontinued GWT Incubator project had a Time option for its
DatePicker:

http://code.google.com/docreader/#p=google-web-toolkit-incubators=google-web-toolkit-incubatort=Spinner

I dunno why the GWT didn't pick up on this feature, but they didn't.

I was using the Incubator's date-time picker before GWT introduced
DatePicker, and I still need a time selector. I now use
com.google.gwt.gen2.picker.client.DateTimePicker. Its DatePicker is
from the trunk, its TimePicker is its own (per javadoc, TimePicker
widget to enter the time part of a date using spinners).

Since this project is no longer supported, you'll have to spend some
time with the source to remove the classes that no longer compile with
GWT.

On Sep 19, 3:46 am, Alexander Orlov alexander.or...@loxal.net wrote:
                     final DateBox.Format format = new
 DateBox.DefaultFormat(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.TIME_SHORT));
                     begin.setFormat(format);
                     begin.hideDatePicker();

 I have two problems with this DateBox

    1. I don't want it to show the DatePicker and although *
    begin.isDatePickerShowing()* reports *false,* every time I click on the
    DateBox the DatePicker comes down
    2. I want let the DatePicker not show the Calendar but a TimeSelector
    (I suppose it's not possible?)

 To hide the DatePicker I could also use a TextBox but in this particular
 case a semantic Date widget would be nice to use.

  Screen Shot 2011-09-19 at 9.36.44 AM.png
 12KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Unable to disable a range of date in the DatePicker component.

2011-09-02 Thread jepau
I am trying to disable all the date in the DatePicker GWT component,
here is my sample of code :

datePicker.addShowRangeHandler(new ShowRangeHandler() {

public void onShowRange(ShowRangeEventDate event) {
 System.out.println(First date :  + event.getStart());
 System.out.println(Last date :  + event.getEnd());

 System.out.println(First date from date picker :  +
datePicker.getFirstDate());
 System.out.println(Last date from date picker :  +
datePicker.getLastDate());

  // Disable all the date shown by the Calendar
 ListDate dateList = new ArrayListDate();
 Date currentDate = event.getStart();

while(!currentDate.after(datePicker.getLastDate())) {
   Date updateDate = CalendarUtil.copyDate(currentDate);
   dateList.add(updateDate);
   CalendarUtil.addDaysToDate(currentDate, 1);
}

for(Date date : dateList) {
  System.out.println(Date selected :  + date);
  System.out.println(date visibility :  +
datePicker.isDateVisible(date));
} }

});

Date visibility is always false , it keep telling me that all the date
are not visible, but it should be true since it' between the first
date and last date, anybody know a way to disable date in calendar?,
so if tried the method setTransientOnEnables() on the datePicker for
any of the date I keep getting an exception as the date arenot
visible.

I had tried also impleenting my own DefaultClendarView but it requires
protected class which is not available by GWT.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Datepicker

2011-08-31 Thread nic
Hello,

In my app, I have a datepicker. The format of my datepicker is
dd.MM.. In firefox and google chrome, when I enter for example
2011, the date is automatically to 1.1.2011 updated.

Why ? Is there a possibility to disable this feature ?

Thank you very much !

Nic

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



  1   2   3   >