Re: Carousel.. how to make..

2016-03-09 Thread jhpark
update source code...

click hear for download 
<https://drive.google.com/file/d/0B-2hv3-UXZ2oQVhfZVB0Z1VaT1U/view?usp=sharing>

2016년 3월 9일 수요일 오후 2시 4분 33초 UTC+9, jhpark 님의 말:
>
> Thank You.  I success..
>>>
>>
>
> if you want my source.. click hear for download  
> <https://drive.google.com/file/d/0B-2hv3-UXZ2oRVdsdXIxRVpIZmc/view?usp=sharing>
>

-- 
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: Carousel.. how to make..

2016-03-08 Thread jhpark

>
> Thank You.  I success..
>>
>

if you want my source.. click hear for download  


-- 
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: Carousel.. how to make..

2016-03-08 Thread jhpark

>
> Thank You. I Success..
>>
>
Click hear. source download 
 

-- 
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.


Carousel.. how to make..

2016-03-07 Thread jhpark
sorry I can't write english.

I make moble app  and I need carsouel.


I use scrollPanel. but. scrollPanel function is poor. 


I want make owl carsousel..

but so it's to hard...  help me.

http://owlgraphic.com/owlcarousel/  

-- 
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.


how to insert javascript source...

2014-11-26 Thread jhpark
Sorry I can;t wirte English.





*1. my java script source.*


http://checkout.naver.com/customer/js/checkoutButton.js"; 
charset="UTF-8">


 


//










2. My Source

VerticalPanel mainPanel = new VerticalPanel();
mainPanel.add( new imagePananel ())
mainPanel.add( new makeJavaScriptPanel());

private String makeJavaScriptPanel(){
StringBuilder sb = new StringBuilder();

sb.append("");
sb.append("");
sb.append("http://checkout.naver.com/customer/js/checkoutButton.js\"; 
charset=\"UTF-8\">");
sb.append("");
sb.append("");
sb.append(" ");
sb.append("");
sb.append("");
sb.append("//");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");

return new HTMLPanel(sb.toString)
}






watch attached image.

javascript show this image... I want  show...
but script code not working.. I don't know how to this problem




-- 
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.


menubar spacing.

2013-07-08 Thread jhpark
sorry, I can't write English.



show image..

menu   <-  space  -->  menu


how to make...


-- 
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: Label text with..

2013-07-08 Thread jhpark
I solve...

how to..

origenal source...

HorizentalPanel hPanel = new HorizentalPanel();
hPanel.setWith("100%");

hPanel.add(label);


solved source... ( hPanel.setWidth("100%") remove )
HorizentalPanel hPanel = new HorizentalPanel();
hPanel.add(label);



2013년 7월 8일 월요일 오후 4시 53분 35초 UTC+9, jhpark 님의 말:
>
> sorry, I can't write Engish.
>
>
>
> <https://lh4.googleusercontent.com/-WeohliScCIk/UdpvKzPSKmI/AbI/JKlYVVPmpX8/s1600/whitespace.PNG>
>
> Label white space is defferent.
>
> problem ===
> label.gettext = "1"-> white space length =  14px
> label.gettext = "123" -> white space length  =  17px
> label.gettext = "1234567"  -> white space length  =  30px
>
>
> I want =
> label.gettext = "1"-> white space length =  14px
> label.gettext = "123" -> white space length =  14px
> label.gettext = "1234567"  -> white space length =  14px
>
>
>
> how...
>
> Source Code..
>
>
>
> if ( row %2==0 ){
> lbl.setText("1");
> }
> if ( row %3==0 ){
> lbl.setText("123");
> }
> if ( row %4==0 ){
> lbl.setText("1234567");
> }
> Scheduler.get().scheduleDeferred(new ScheduledCommand() {
> @Override
> public void execute() {
>  int length = lbl.getElement().getClientWidth();
> lbl.setWidth(length+"px");
>  lbl.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
> .
> }
> });
>

-- 
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.




Label text with..

2013-07-08 Thread jhpark
sorry, I can't write Engish.




Label white space is defferent.

problem ===
label.gettext = "1"-> white space length =  14px
label.gettext = "123" -> white space length  =  17px
label.gettext = "1234567"  -> white space length  =  30px


I want =
label.gettext = "1"-> white space length =  14px
label.gettext = "123" -> white space length =  14px
label.gettext = "1234567"  -> white space length =  14px



how...

Source Code..



if ( row %2==0 ){
lbl.setText("1");
}
if ( row %3==0 ){
lbl.setText("123");
}
if ( row %4==0 ){
lbl.setText("1234567");
}
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
 int length = lbl.getElement().getClientWidth();
lbl.setWidth(length+"px");
 lbl.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
.
}
});

-- 
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.




Server-side Code and extend problem..

2011-01-23 Thread jhpark
sorry I can't write English..


-- server side code
A_ServiceImpl implements A_NetworkService

A_ServiceImle total line : 1200line..


so..

I want..

B_ServiceImple exends A_SerivceImpl.


But.
rpc call.  invoke Error..


 [ERROR] [bakew] Invoke Error
com.google.gwt.user.client.rpc.StatusCodeException: 500 


Error 500 INTERNAL_SERVER_ERROR

HTTP ERROR: 500INTERNAL_SERVER_ERROR
RequestURI=/bakew/windupCaused by:java.lang.InstantiationException
at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:
339)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
463)


~~
~~
~~

at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
192)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

~~
~~
~~



impossible ???

-- 
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.



checkBoxcell checked -> unchecked

2010-12-29 Thread jhpark
I'm sorry.. I can't write English..

I make cellTable..

when button click  all checkboxcell is uncheck..

↓   image url..  
http://postfiles10.naver.net/20101229_73/isotone_12936152462850Ouse_PNG/ask.png?type=w3


It's very hard...

 source code ↓↓↓
table = new CellTable();
TextColumn nameColumn = new TextColumn() {
@Override
public String getValue(Contact object) {
 return object.name;
 }
};
  final CheckboxCell cCell = new CheckboxCell(false, true);
  final Column checkColumn = new Column(cCell) {
@Override
  public Boolean getValue(Contact object) {
// Get the value from the selection model.
return selectionModel.isSelected(object);
}
};
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(
new  SelectionChangeEvent.Handler() {
 public void onSelectionChange(SelectionChangeEvent event)
{
 Contact selected =
selectionModel.getSelectedObject();
  }
   });
 table.addColumn(checkColumn);
 table.addColumn(nameColumn, "Name");
 table.setRowCount(CONTACTS.size(), true);
 table.setRowData(0, CONTACTS);
 Button btn = new Button("clear");
 btn.addClickHandler( new  ClickHandler() {
public void onClick(ClickEvent event) {
  Boolean f = new Boolean(false);
//  for ( int i = 0; i < table.getRowCount(); i++ ){
// Context context = new Context(i + table.getPageStart(),
0,   checkColumn);
//  cCell.render(context, f, new SafeHtmlBuilder());
//  }
 }
})  ;

-- 
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-tool...@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.



checkBoxcell checked -> unchecked

2010-12-29 Thread jhpark
I'm sorry.. I can't write English..
I make cellTable..
when button click  all checkboxcell is uncheck..
http://postfiles10.naver.net/20101229_73/
isotone_12936152462850Ouse_PNG/ask.png?type=w3">


It's very hard...


source code...


table = new CellTable();
final SingleSelectionModel selectionModel =
new
SingleSelectionModel();
TextColumn nameColumn = new
TextColumn() {
@Override
public String getValue(Contact object) {
return object.name;
}
};
final CheckboxCell cCell = new CheckboxCell(false,
true);
final Column checkColumn = new
Column(cCell) {
@Override
public Boolean getValue(Contact object) {
// Get the value from the selection
model.
return
selectionModel.isSelected(object);
}
};
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
public void
onSelectionChange(SelectionChangeEvent event) {
Contact selected =
selectionModel.getSelectedObject();
}
});
table.addColumn(checkColumn);
table.addColumn(nameColumn, "Name");
table.setRowCount(CONTACTS.size(), true);
table.setRowData(0, CONTACTS);
Button btn = new Button("clear");
btn.addClickHandler( new  ClickHandler() {
public void onClick(ClickEvent event) {
Boolean f = new Boolean(false);
//  for
( int i = 0; i < table.getRowCount(); i++ ){
//
Context context = new Context(i + table.getPageStart(),
0,   checkColumn);
//
cCell.render(context, f, new SafeHtmlBuilder());
//  }
}
})  ;

-- 
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-tool...@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.



checkBoxcell checked -> unchecked

2010-12-29 Thread jhpark
I'm sorry.. I can't write English..

I make cellTable..

when button click  all checkboxcell is uncheck..



http://postfiles10.naver.net/20101229_73/
isotone_12936152462850Ouse_PNG/ask.png?type=w3">


It's very hard...


table = new CellTable();
final SingleSelectionModel selectionModel = new
SingleSelectionModel();
TextColumn nameColumn = new TextColumn() {
@Override
public String getValue(Contact object) {
return object.name;
}
};

final CheckboxCell cCell = new CheckboxCell(false, true);
final Column checkColumn = new Column(cCell) {
@Override
public Boolean getValue(Contact object) {
// Get the value from the selection model.
return selectionModel.isSelected(object);
}
};

table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
public void onSelectionChange(SelectionChangeEvent 
event) {
Contact selected = 
selectionModel.getSelectedObject();
}
});

table.addColumn(checkColumn);
table.addColumn(nameColumn, "Name");

table.setRowCount(CONTACTS.size(), true);
table.setRowData(0, CONTACTS);

Button btn = new Button("clear");
btn.addClickHandler( new  ClickHandler() {
public void onClick(ClickEvent event) {
Boolean f = new Boolean(false);
//  for ( int i = 
0; i < table.getRowCount(); i++ ){
//  Context 
context = new Context(i + table.getPageStart(),
0,   checkColumn);
//  
cCell.render(context, f, new SafeHtmlBuilder());
//  }
}
})  ;

-- 
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-tool...@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 edit celltable css..

2010-12-28 Thread jhpark
sorry,, I can't write english..

I use cellable and apply callTable.css.


1.. load css..
public interface CellTableResource extends CellTable.Resources
{
public interface CellTableStyle extends CellTable.Style {

};
@Source({"CellTable.css"})
CellTableStyle cellTableStyle();
};


2. addstyle  to celltable
CellTableResource resource = GWT.create(CellTableResource.class);
CellTable table = new CellTable(50, resource);

/// work..

3. eidt CellTable.css
 --> append
  .testCSS{
background-color: red;
}

table.addColumnStyleName(1, "testCSS");
 error .
// error messge : Rebinding com.rontab.comp.CellTableResource


next...


public interface CellTableResource extends CellTable.Resources
{
public interface CellTableStyle extends CellTable.Style {
 String testCSS();
<--- append
};
@Source({"CellTable.css"})
CellTableStyle cellTableStyle();
};


// no error message
// but css not work


help me..




same problem :  http://www.devcomments.com/GWT-2-1-CELL-TABLE-at1072804.htm

-- 
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-tool...@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.



ScrollTable scroll position

2008-11-15 Thread jhpark

sorry I can't write English well..

I have make keyboard shortcut like GMail..

problem../

when I input key ( j  key ) scroll down. but I can't..

int scrollPosition = 20;
scrollTable.getElement().setScrollTop(scrollPosition); <- it not
work
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/940e0c84b59965fa/381b38370aeb8afd?lnk=raot


I see this link.. but source code. error...

   private static native void crollTables(ScrollTable table)
{  < error...

[EMAIL PROTECTED]::scrollTables
(Z)
(false);
   }


please tell 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to invoke up, down arrow key ?

2008-11-14 Thread jhpark

Sorry I can't wirte english well..

I have make keyboard shortcut..

if I inupt w key -> work like up arrow key.
if I input s key -> work like down arrow key.

if I input a key - > work like left arrow key
if I input d key -> work like right arrow key.

I think... call arrow key funtion.. but I can't. It's eaey??
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to make scroll funtion like arrow key.

2008-11-09 Thread jhpark

Hi..

Sorry I can't write English well..

I make keyboard shortcut..
I know make  keyboard short.
   but up and down arrow function don't know...

example..)

input h key : up arrow key.
input g key : down arrow key.

how to make?




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



scroll problem ( keyboard shortcut )

2008-11-09 Thread jhpark

sorry I can't write English well...

I have make table.

and make keyboard shorrtcut.( like Gmail )

problem

if  table height is 400px, and panel height is 200px..  then  scroll
visible..

up arrow and down arrow key input  scroll move.. ( up and down )

when I input j key ( Gmail  -> next row )  scroll down..
when I input k key ( Gmail -> prev row ) scroll up


please tell me  if you know...





--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: DOM.eventPreventDefault(event) is not work IE6 and IE7

2008-11-07 Thread jhpark
thank for your answer.

But it' same I don't know how..

On Nov 7, 8:24 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 7 nov, 08:02, jhpark <[EMAIL PROTECTED]> wrote:
>
>
>
> >                         public boolean onEventPreview(Event event) {
> >                                 boolean propagate = true;
>
> >                                 int type = DOM.eventGetType(event);
> >                                 if (type == Event.ONKEYDOWN )  {
> >                                         int keyCode = 
> > DOM.eventGetKeyCode(event);
> >                                         switch(keyCode) {
> >                                         case TrackerKeyCode.CODE_F1:
> >                                                 showHelp();
> >                                                 propagate = false;
> >                                                 break;
> >                                         }
> >                                 }
> >                                 if ( !propagate) {
> >                                         DOM.eventPreventDefault(event);
> >                                 }
> >                                 return propagate;
>
> You're cancelling the keydown, but how about the keyup? (and maybe
> keypress, who knows?)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: DOM.eventPreventDefault(event) is not work IE6 and IE7

2008-11-06 Thread jhpark

I Test below source code


 case TrackerKeyCode.CODE_F1:
   showHelp();
    DOM.eventPreventDefault(event);
DOM.eventCancelBubble(event, true);

  propagate = false;
  break;
}
 / brower F1 evnet
work..

 case TrackerKeyCode.CODE_F1:
   showHelp();
  eventPreventDefault(evt);

  propagate = false;
  break;
}

public native void eventPreventDefault(Event evt) /*-{
if (evt.preventDefault)
evt.preventDefault();
else
evt.returnValue = false;
}-*/;

/ brower F1 evnet
work..

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



DOM.eventPreventDefault(event) is not work IE6 and IE7

2008-11-06 Thread jhpark

Sorry I can't write english well...

see below source code...

F1 key input = > showHelp popupPanel..

public class TrackerEntryPoint implements  EntryPoint  {

private EventPreview keyBoardShorcuts;
private HorizontalPanel hPanel;
public void onModuleLoad() {

hPanel = new HorizontalPanel();
keyBoardShortCut();
RootPanel.get().add(hPanel);

}

public void keyBoardShortCut() {

hPanel.sinkEvents(Event.ONKEYDOWN);
keyBoardShorcuts = new EventPreview() {
public boolean onEventPreview(Event event) {
boolean propagate = true;

int type = DOM.eventGetType(event);
if (type == Event.ONKEYDOWN )  {
int keyCode = 
DOM.eventGetKeyCode(event);
switch(keyCode) {
case TrackerKeyCode.CODE_F1:
showHelp();
propagate = false;
break;
}
}
if ( !propagate) {
DOM.eventPreventDefault(event);
}
return propagate;
}
};
DOM.addEventPreview(keyBoardShorcuts);
}
private void showHelp() {
WindowPanel help = new WindowPanel("keyBoardShortCut");
VerticalPanel vPanel = new VerticalPanel();

HTML j = new HTML("J : ");
vPanel.add( j);

help.setWidget(vPanel);
help.center();
help.show();

}
}
///
chrome, FF : F1 input : showHelp() method work..  brower F1 event not
work..

but IE 6, IE7 : showHelp() method work.. then brower F1 event
work.

so I change source code
case TrackerKeyCode.CODE_F1:
showHelp();
DOM.eventCancelBubble(event, 
true);  <-insert..
propagate = false;
break;
}


but brower F1 evnent work..

I don't know how to...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make ctrl+s keyboard shortcut..

2008-11-02 Thread jhpark

thank your answer..  thank you..

public boolean onEventPreview(Event evt) {
evt.preventDefault();   < add this method
( 1 )
int keyCode = DOM.eventGetKeyCode(evt);
boolean ctrl = DOM.eventGetCtrlKey(evt);
if  (  ctrl && keyCode == 83  ) {  // 83 is 's'  ->
ctrl + s
   evt.preventDefault(); <-- add this metohd
( 2 )
save();
return false;
  }
   return true;
}
 public void save(){
   
  ~
}

add ( 1 ).. not work
add ( 2 ).. not work

add (1) (2) work..

so I solve this problem...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make ctrl+s keyboard shortcut..

2008-11-02 Thread jhpark

thank for your answer.
But evt.prevnentDefault() not work..
 public boolean onEventPreview(Event evt) {

evt.preventDefault() ;  <--- this method not workgin..
Element elt = DOM.eventGetTarget(evt);
int keyCode = DOM.eventGetKeyCode(evt);
boolean ctrl = DOM.eventGetCtrlKey(evt);
boolean shift = DOM.eventGetShiftKey(evt);
boolean alt = DOM.eventGetAltKey(evt);
boolean meta = DOM.eventGetMetaKey(evt);
   if  (  ctrl && keyCode == 83  ) {  // 83 is 's'  ->
ctrl + s
 evt.preventDefault()  <--- this method not working...
save();
   return false;
  }
return true;
}

On 11월3일, 오전12시46분, Adam T <[EMAIL PROTECTED]> wrote:
> did you try evt.preventDefault() in your onEventPreview method?
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...()
>
> (also your onEventPreview mthod should return a boolean value, but I
> guess maybe that's missing in the code below just due to cut'n'paste)
>
> //A
>
> On 2 Nov, 08:35, jhpark <[EMAIL PROTECTED]> wrote:
>
> > sorry I cant write english well..
>
> > I will make keyboard short cut..
>
> > public class TrackerEntryPoint implements EventPreview, EntryPoint  {
>
> > private TrackerController trackerController;
> > public void onModuleLoad() {
> > trackerController = new TrackerController();
> > final Viewport viewport = new Viewport();
> > Window.addWindowResizeListener(new WindowResizeListener() {
> > public void onWindowResized(int width, int height) {
> > trackerController.setWindowSize(width, 
> > height);
> > }
> > });
>
> > viewport.add(trackerController);
> > RootPanel.get().add(viewport);
> > DOM.addEventPreview(this);
>
> > }
> > public boolean onEventPreview(Event evt) {
> > Element elt = DOM.eventGetTarget(evt);
> > int keyCode = DOM.eventGetKeyCode(evt);
> > boolean ctrl = DOM.eventGetCtrlKey(evt);
> > boolean shift = DOM.eventGetShiftKey(evt);
> > boolean alt = DOM.eventGetAltKey(evt);
> > boolean meta = DOM.eventGetMetaKey(evt);
>
> >if  (  ctrl && keyCode == 83  ) {  // 83 is 's'  ->
> > ctrl + s
> > save();
> >   }
>
> > }
> >  public void save(){
> >
> >   ~
> > }
>
> > }
>
> > input ctrl + s
> >  save method run and then brower save window open..
>
> > google docs..
> > input ctrl + s
> >  save method run. and  browser save window not open...
>
> > please someone  tell me.. How to...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make ctrl+s keyboard shortcut..

2008-11-02 Thread jhpark

thank for your answer.

But evt.prevnentDefault() not work..

 public boolean onEventPreview(Event evt) {
Element elt = DOM.eventGetTarget(evt);
int keyCode = DOM.eventGetKeyCode(evt);
boolean ctrl = DOM.eventGetCtrlKey(evt);
boolean shift = DOM.eventGetShiftKey(evt);
boolean alt = DOM.eventGetAltKey(evt);
boolean meta = DOM.eventGetMetaKey(evt);
   if  (  ctrl && keyCode == 83  ) {  // 83 is 's'  ->
ctrl + s
save();

  }
}


On 11월3일, 오전12시46분, Adam T <[EMAIL PROTECTED]> wrote:
> did you try evt.preventDefault() in your onEventPreview method?
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...()
>
> (also your onEventPreview mthod should return a boolean value, but I
> guess maybe that's missing in the code below just due to cut'n'paste)
>
> //A
>
> On 2 Nov, 08:35, jhpark <[EMAIL PROTECTED]> wrote:
>
> > sorry I cant write english well..
>
> > I will make keyboard short cut..
>
> > public class TrackerEntryPoint implements EventPreview, EntryPoint  {
>
> > private TrackerController trackerController;
> > public void onModuleLoad() {
> > trackerController = new TrackerController();
> > final Viewport viewport = new Viewport();
> > Window.addWindowResizeListener(new WindowResizeListener() {
> > public void onWindowResized(int width, int height) {
> > trackerController.setWindowSize(width, 
> > height);
> > }
> > });
>
> > viewport.add(trackerController);
> > RootPanel.get().add(viewport);
> > DOM.addEventPreview(this);
>
> > }
> > public boolean onEventPreview(Event evt) {
> > Element elt = DOM.eventGetTarget(evt);
> > int keyCode = DOM.eventGetKeyCode(evt);
> > boolean ctrl = DOM.eventGetCtrlKey(evt);
> > boolean shift = DOM.eventGetShiftKey(evt);
> > boolean alt = DOM.eventGetAltKey(evt);
> > boolean meta = DOM.eventGetMetaKey(evt);
>
> >if  (  ctrl && keyCode == 83  ) {  // 83 is 's'  ->
> > ctrl + s
> > save();
> >   }
>
> > }
> >  public void save(){
> >
> >   ~
> > }
>
> > }
>
> > input ctrl + s
> >  save method run and then brower save window open..
>
> > google docs..
> > input ctrl + s
> >  save method run. and  browser save window not open...
>
> > please someone  tell me.. How to...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to make ctrl+s keyboard shortcut..

2008-11-02 Thread jhpark

sorry I cant write english well..

I will make keyboard short cut..

public class TrackerEntryPoint implements EventPreview, EntryPoint  {

private TrackerController trackerController;
public void onModuleLoad() {
trackerController = new TrackerController();
final Viewport viewport = new Viewport();
Window.addWindowResizeListener(new WindowResizeListener() {
public void onWindowResized(int width, int height) {
trackerController.setWindowSize(width, height);
}
});

viewport.add(trackerController);
RootPanel.get().add(viewport);
DOM.addEventPreview(this);

}
public boolean onEventPreview(Event evt) {
Element elt = DOM.eventGetTarget(evt);
int keyCode = DOM.eventGetKeyCode(evt);
boolean ctrl = DOM.eventGetCtrlKey(evt);
boolean shift = DOM.eventGetShiftKey(evt);
boolean alt = DOM.eventGetAltKey(evt);
boolean meta = DOM.eventGetMetaKey(evt);

   if  (  ctrl && keyCode == 83  ) {  // 83 is 's'  ->
ctrl + s
save();
  }

}
 public void save(){
   
  ~
}
}


input ctrl + s
 save method run and then brower save window open..


google docs..
input ctrl + s
 save method run. and  browser save window not open...

please someone  tell me.. How to...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to block brower event ( ctrl +s , alt+ f .. etc )

2008-10-31 Thread jhpark

sorry I can't write english well..

I make editor like google doc.

google doc posibble ctrl+s..

but I can't..

I will try javascript.. but it's not work..



function processKey()
{
if( (( event.ctrlKey == true || event.altKey == true ) &&
(event.keyCode == 78 || event.keyCode == 82)) ||
(event.keyCode >= 65 && event.keyCode <= 90) || event.keyCode
== 8)
{
event.keyCode = 0;
event.cancelBubble = true;
event.returnValue = false;

}
}

document.onkeydown = processKey;



I don't know how to..

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



setaccesskey not work FireFox

2008-10-30 Thread jhpark

Sorry I can't write english well...

GWT ver : 1.5.3
os : window xp
FireFox ver : 3.0.3


IE, Chrome work very well..

FF is not work..

thank you.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWITTIR keybinding

2008-10-29 Thread jhpark

sorry I can't wirte english well

I have to keyboad binding..

http://code.google.com/p/gwittir/wiki/Keyboarding  <- sample source
code.

But I can't use it..

final Button suggest = new Button("Suggest");//create 
the
button
KeyBinding keybind = new KeyBinding('a',true,true,false);   // 
ctrl
+ alt + a

try {
KeyboardController.INSTANCE.register(keybind, 
suggest);
}catch(Exception e ) {

}

suggest.setAction(new Action() {
public void execute(BoundWidget model) {
Window.alert("DFA");  // if input key == ctrl + 
alt + a  =>
work
}
});


I don't know how to..



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SetAccesskey question...

2008-10-26 Thread jhpark

thank for your answer..

But I don't understand your answer. May be my question is strange...
( english problem.. )

I know keyboard event. ( keyPress, keyDown etc )

I want know is that setAccessKey()...

setAccessKey event is static.. ( => mouse focus not need )

btn.addKeyEvent( ~~ ) is local.. ( => mouse focus need )

example))
short cut :  Ctrl + F

I want CTRL + F => alt + f  + c

thank... I need your help.






On 10월24일, 오후6시36분, bc <[EMAIL PROTECTED]> wrote:
> you will need to add a keyboard listener to the button.  Check out the
> doc 
> here:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g
>
> Button will source the keyboard events - the modifiers will be passed
> to you via a combination of the bits defined by MODIFIER_SHIFT,
> MODIFIER_CTRL...
>
> On Oct 23, 11:52 pm, jhpark <[EMAIL PROTECTED]> wrote:
>
> > Sorry I can't write english well...
>
> > Button btn = new Button();
>
> > btn.setAccessKey('r');  <- only 'r';
>
> > alt + r --> button work...
>
> > but I want 'r' and ' t'
> > alt + r + t ==> button work..
>
> > and
> > alt + ctrl + r ==> button work...
>
> > It is posibble ?
>
> > thank...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



SetAccesskey question...

2008-10-23 Thread jhpark

Sorry I can't write english well...

Button btn = new Button();



btn.setAccessKey('r');  <- only 'r';

alt + r --> button work...

but I want 'r' and ' t'
alt + r + t ==> button work..


and
alt + ctrl + r ==> button work...

It is posibble ?

thank...



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



keyboard short cut problem..

2008-10-23 Thread jhpark

Sorry I can't write english.

I want button navigation..

example)
button1 button2 button3 button4

key press :
ctrl + n
 -> button1
ctrl + n
 -> button2
ctrl + n
 -> button3
ctrl + n
 -> button4

ctrl+p
 -> button3
ctrl+p
 -> button2
ctrl+p
 -> button1

I want like google mail short cut..



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



TinyMCEEditor keyEvent

2008-10-22 Thread jhpark

Sorry I can't write Eenglish well..

I  use TinyMCE eidtor.  it's very gd editor..

http://consult.goannatravel.com/blog/2007/11/22/gwt-tinymce-widget/
<- convert tinymce.js to gwt wrapper class.


question..



public TinyMainEditor() {
editorId = "tinyMCE-" + System.currentTimeMillis();

loadListeners = new ArrayList();
changeListeners = new ArrayList();

textArea = new TextArea();
//  textArea.setWidth("100%");
DOM.setElementAttribute(textArea.getElement(), "id", editorId);
DOM.setStyleAttribute(textArea.getElement(), "width", "100%");
DOM.setStyleAttribute(textArea.getElement(), "height", "450");
initWidget(textArea);
DeferredCommand.addCommand(new Command() {

public void execute() {
initEditor();
}
});
}

public TextArea getTextArea() {
return textArea;

}
private native void initEditor()/*-{
  ~
}

~~~
~~~


I want TextArea key event.

==> textArea .addKeyboardListener(new KeyboardListenerAdapter(){
public void onKeyDown(Widget sender, char keyCode, int 
modifiers){
//  if ( modifiers == 
KeyboardListener.MODIFIER_SHIFT) {
//  if (  (keyCode == (char) KEY_ENTER) ){
//  System.out.println("DDD");
//  }
//  if (  (keyCode == (char) KEY_ESCAPE) ){
//  }
//  }
System.out.println("editor");
}
public void onKeyPress(Widget sender, char keyCode, int 
modifiers)
{
System.out.println("editor1");
}
public void onKeyUp(Widget sender, char keyCode, int 
modifiers) {
System.out.println("editor2");
}
});

But it not work..

Beacuse tinymceEditor catch event...

It is imposible??
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



What you use WYSIWYG Editor? ( like RichTextArea)

2008-09-04 Thread jhpark

I search editor.

So i found TinyMCE.. it is greate... but it is some inconvenience.

RichTextArea also.

etc.) enter => p tag..
2byte code problem..


I think GWT support editor poor..

What you use WYSIWYG Editor?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Widget.addFocusEvent, or Widget.removeFocusEvnet bug???

2008-09-04 Thread jhpark

I found bug...  ( is bug ?? )

tb.addFocusListener(focusEvent);
tb.addFocusListener(focusEvent);
tb.addFocusListener(focusEvent);


tb has 3 focusEvent

tb.removeFocusListener(focusEvnet)

tb has 2 focusEvent.


so focusEvnet is Work..

///
tb.addFocusListener(focusEvent);
tb.addFocusListener(focusEvent);

tb.removeFocusListener(focusEvent);
tb.removeFocusListener(cousEvent);

tb not work.. ( tb has not focusEvent)..






--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Widget.addFocusEvent, or Widget.removeFocusEvnet bug???

2008-09-03 Thread jhpark

think  you. I find it..

On 9월4일, 오후1시50분, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> In your onClick(), add and remove the focus listener from the *TextBox* not
> the *Button*
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Widget.addFocusEvent, or Widget.removeFocusEvnet bug???

2008-09-03 Thread jhpark

sorry, I can't write English well..



this program is addFocusEvent and removeFocusEvent.

if  toggle button is down - > removeFocusEvnet,
if  toggle button is up  -> addFocusEvent.


but when the focus is on textbox,   focusEvnet is work...

How can remove event???
(I test KeyboardListenerAdapter, but same..)

package com.rontab.pine.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.FocusListenerAdapter;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.ToggleButton;
import com.google.gwt.user.client.ui.Widget;


public class TrackerEntryPoint implements EntryPoint {


TextBox tb = new TextBox();
ToggleButton btn = new ToggleButton("toggle");
FocusEvent focusEvent = new FocusEvent();
public void onModuleLoad() {

HorizontalPanel hPanel = new HorizontalPanel();

hPanel.add(tb);
tb.addFocusListener(focusEvent);
hPanel.add(btn);

btn.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
if ( btn.isDown() ) {
GWT.log("Toggle is Down", null);
btn.removeFocusListener(focusEvent);


}else {
GWT.log("Toggle is up", null);
btn.addFocusListener(focusEvent);
}
}
});

RootPanel.get().add(hPanel);

}

}
class FocusEvent extends FocusListenerAdapter {
public FocusEvent(){
}

public void onFocus(Widget sender) {
GWT.log("TextBox get Focus", null);
}
public void onLostFocus(Widget sender) {
GWT.log("TextBox lost Focus", null);
}
}
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---