GWT Widget ¼Ò°³ ¹× Å×½ºÆ®
ÃÑ ÆäÀÌÁö ¼ö : 3224

Àüü ÇÔ¼ö/¿ë¾î»çÀü
Facebook Joinc ±×·ì   Joinc QA »çÀÌÆ®



joinc´Â Firefox¿Í chrome¿¡¼­ Å×½ºÆ® Çß½À´Ï´Ù. IE¿¡¼­´Â Å×À̺íÀÌ ±úÁö°Å³ª À̹ÌÁö°¡ º¸ÀÌÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ƯÈ÷ ±¸±Û DocsÀ̹ÌÁöÀÇ °æ¿ì ¿¢¹Úó¸®µÉ ¼ö ÀÖ½À´Ï´Ù.

Contents

1 ±âº»Á¦°ø Widget
2 È®Àå Widget
3 ¿ÜºÎ Wiget Library Å×½ºÆ®
4 ¸ÎÀ½¸»
5 ÇÒÀÏ
6 Âü°í¹®Çå

ÅÂ±× :

1 ±âº»Á¦°ø Widget

GWT´Â À¥ »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º¸¦ À§ÇÑ ¸î°³ÀÇ À§Á¬À» Á¦°øÇÑ´Ù. À̵é À§Á¬Àº SwingÀ̳ª SWT¿Í ºñ½ÁÇÑ ÇÁ·¹ÀÓ¿öÅ© ±¸Á¶¸¦ °¡Áø´Ù. Áï À§Á¬À» Æ÷ÇÔÇÒ ¼ö ÀÖ´Â À§Á¬ÀÎ LayoutÀ§¿¡ ¹öư, Box, Tree µîÀ» ³õ´Â ±¸Á¶´Ù.

´ÙÀ½Àº GWT¿¡¼­ Á¦°øÇÏ´Â À§Á¬µéÀÌ´Ù.


2 È®Àå Widget

GWT´Â 20°³ Á¤µµ¸¸ÀÇ À§Á¬À» Á¦°øÇϰí Àִµ¥, À¥ À¯Àú ÀÎÅÍÆäÀ̽ºÀÇ ±¸¼ºÀ» À§Çؼ­´Â ÅξøÀÌ ÀûÀº ¼ýÀÚ´Ù. ±×·¯³ª ´ÙÇàÈ÷µµ GWT´Â ½±°Ô »ç¿ëÀÚ Á¤ÀÇ À§Á¬À» Ãß°¡ÇÒ ¼ö ÀÖ´Â ¹æ¹ýÀ» Á¦°øÇϰí ÀÖ´Ù. ½ÇÁ¦·Î ÀÌ¹Ì ¸¹Àº ¼öÀÇ À§Á¬µéÀÌ °ø°³µÇ¾î ÀÖ´Ù. °ø°³µÈ À§Á¬ Áß ÀϺθ¦ ¼Ò°³ÇÑ´Ù.

Widget Description Library / Homepage License
Login Panel A widgets that provides controls relevant to a login prompt GWT-Stuff Apache License
Rich Text Area Another WYSIWYG HTML Editor with font, color, link ... features GWT Widgets LGPL
Rich Text Editor A WYSIWYG HTML Editor. GWT Addons LGPL or Apache 2.0
HTML (Rich Text) Editor WYSIWYG HTML (Rich Text) Editor Widget HTML (Rich Text) Editor Widget Apache 2.0
Image Button A Image Button with Tooltip. CSS L&F for default, roll over and pressed. GWT Addons LGPL or Apache 2.0
Tooltip A real tooltip that show after a second on the mouse position. GWT Addons LGPL or Apache 2.0
FileUploadField A file upload form field widget. GWT Widget Library LGPL
FormPanel An HTML form widget. GWT Widget Library LGPL
ImageButton Use an image as a button. GWT Widget Library LGPL
OptionList A ListBox extension. GWT Widget Library LGPL
PNGImage Image widget that overcomes PNG browser incompatabilities. GWT Widget Library LGPL
RoundedPanel Rounded corners like GMail gwt.bouwkamp.com Apache License 2.0
Canvas Widget A Graphics Widget GWT Component Library LGPL 2.1
Round Corners Border with round corners GWT Component Library LGPL 2.1
Simple Calendar A embedded calendar GWT Component Library LGPL 2.1
RateIt Control RateIt widget similar to netflix.com, and amazon.com star ratings. You can use mouse and keyboard (left, right, and number keys) to select rating. GWT Component Library LGPL 2.1
Script.aculo.us Effects Integration This component allows you to use Script.aculo.us effects from GWT. GWT Component Library LGPL 2.1
Auto-Completion Textbox A textbox that has a list of string values that will be automatic completed on edit the text. GWT Component Library LGPL 2.1
Simple XML Parser Allows to parse XML with GWT GWT Component Library LGPL 2.1
Hyperlink with Image Hyperlink which allows you to specify Image object as its content. Go ahead, implement your favority rollover effects with it. GWT Component Library LGPL 2.1
Tooltip Listener Allows you to add tooltips (small help messages) to any component that support SourcesMouseEvents interface. GWT Component Library LGPL 2.1
Simple Date Picker A text box and a popup calendar. Parvinder Thapar LGPL 2.1
Sortable Table Widget Client-side sorting of the Table Parvinder Thapar LGPL 2.1
GoogleMaps A widgets that support the Google Map API GWT - Custom Components Apache License
FlashPlayer A widget to play flash movies. GWanTed LGPL
LegendPanel A widget to layout widgets in a legend way. GWanTed LGPL
HttpRequestExt To do sync HTTPRequest downloads. GWanTed LGPL
Navigator A simple wrapper for the navigator DOM object. GWanTed LGPL
ExternalHyperlink Allow you to use external hyperlinks. GWanTed LGPL
AbstractJavascriptClass This class is a base class that let wrap a javascript object in an external javascript file in a GWT class. GWanTed LGPL
ToolItem An ImageButton widget alternative. GWanTed LGPL
RowPanel Think VerticalPanel with more layout flexibilty. GWT Tk Apache 2.0
ColumnPanel Think HorizontalPanel with more layout flexibilty. GWT Tk Apache 2.0
DropDownPanel An expandable panel with a header like "Labels" in Gmail. GWT Tk Apache 2.0
SimpleHyperLink A simple anchor widget. No DIV messing up text flow, no history tokens added to the location field. GWT Tk Apache 2.0
GlassPanel A stylable panel which preventa interaction with the entire document ("light box" effect). GWT Tk Apache 2.0
ModalDialog A modal dialog featuring focus containment, "light box" effect, automatic centering and more. GWT Tk Apache 2.0
AlertDialog A modal dialog tailored to conveniently displaying alert messages. GWT Tk Apache 2.0



3 ¿ÜºÎ Wiget Library Å×½ºÆ®

¿ÜºÎ À§Á¬¶óÀ̺귯¸®¸¦ ¾î¶»°Ô Ãß°¡½Ãų ¼ö ÀÖ´ÂÁö È®ÀÎÇϱâ À§Çؼ­, [http]gwt-html-editorÀÇ RitchEditor¸¦ ¹Þ¾Æ¼­ Å×½ºÆ®Çغ¸±â·Î Çß´Ù.

¿ì¼± À§ »çÀÌÆ®¿¡ °¡¼­ editorÀÇ ÃֽŹöÀüÀ» ¾ò¾î¿Àµµ·Ï ÇÏÀÚ. ÇöÀç (2006-12-23)ÃֽŹöÁ¯Àº editor-0.1.1-preview.jar ÀÌ´Ù. ¾ò¾î¿Â jar ÆÄÀÏÀº Àû´çÇÑ Å¬·¡½º °æ·Î¿¡ µÎµµ·Ï ÇÑ´Ù.

´ÙÀ½°ú °°Àº ¹æ¹ýÀ¸·Î ÇÁ·ÎÁ§Æ®¸¦ »ý¼ºÇÏÀÚ. ÇÁ·ÎÁ§Æ®ÀÇ À̸§Àº RitchTest·Î Çß´Ù.
# ./projectCreator -eclipse RitchTest 
# ./applicationCreator -eclipse RitchTest com.joinc.client.RitchTest 
 

ÀÌÁ¦ eclipse¸¦ ½ÇÇà½ÃŲ´ÙÀ½ RitchTest¸¦ importÇØ¿Í¼­, RitchTest¸¦ ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.
package com.joinc.client; 
 
import com.google.gwt.core.client.EntryPoint; 
import com.google.gwt.user.client.Window; 
import com.google.gwt.user.client.ui.Button; 
import com.google.gwt.user.client.ui.ClickListener; 
import com.google.gwt.user.client.ui.LoadListener; 
import com.google.gwt.user.client.ui.RootPanel; 
import com.google.gwt.user.client.ui.Widget; 
import com.jpavel.gwt.wysiwyg.client.Editor; 
 
/** 
 * Entry point classes define <code>onModuleLoad()</code>. 
 */ 
public class RitchTest implements EntryPoint { 
     
    public void onModuleLoad() { 
        buildSamplePage(); 
    } 
     
    public void buildSamplePage() { 
        final Editor editor = new Editor(); 
        editor.addLoadListener(new LoadListener() { 
            public void onLoad(Widget sender) { 
                // Àû´çÇÑ Äڵ带 ÀÔ·Â 
            } 
             
            public void onError(Widget sender) { 
                // Àû´çÇÑ Äڵ带 ÀÔ·Â  
            } 
        }); 
        editor.setWidth("100%"); 
        editor.setHeight("300px"); 
         
        editor.load(); 
         
        Button button = new Button("Get HTML"); 
        button.addClickListener(new ClickListener() { 
            public void onClick(Widget sender) { 
                Window.alert(editor.getHTML()); 
            } 
        }); 
         
        RootPanel.get().add(editor); 
    } 
} 
 

src/com/joinc/RitchTest.gwt.xml ÆÄÀÏÀ» ¿­¾î¼­, ¸ðµâÀ» Ãß°¡½ÃÄÑ ÁØ´Ù.
<module> 
        <!-- Specify the app entry point class.                   --> 
        <entry-point class='com.joinc.client.RitchTest'/> 
 
        <!-- Inherit the core Web Toolkit stuff.                  --> 
        <inherits name='com.google.gwt.user.User'/> 
 
        <!-- Inherit the Editor Library.                          --> 
        <inherits name='com.jpavel.gwt.wysiwyg.Editor'/> 
        <inherits name='com.joinc.RitchTest'/> 
</module> 
 

¸¶Áö¸·À¸·Î RitchTest-compile¿¡ editor-0.1.1-preview.jar ÀÇ °æ·Î¸¦ Ãß°¡½Ã۵µ·Ï ÇÑ´Ù.
#!/bin/sh 
APPDIR=`dirname $0`; 
java  -cp "$APPDIR/src:...:/work/dir/editor-0.1.1-preview.jar" \ 
com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" com.joinc.RitchTest; 
 

´ÙÀ½Àº eclipse¿¡¼­ È£½ºÆ®¸ðµå ºê¶ó¿ìÀú¸¦ ÅëÇØ¼­ µð¹ö±ëÇÑ ¸ð½ÀÀÌ´Ù.
º¸³»´Â »ç¶÷ Google

java-to-javascript¸¦ ÀÌ¿ëÇØ¼­ ÄÄÆÄÀÏ ÇÑ ÈÄ, »çÀÌÆ®¿¡ ¿Ã¸° °á°ú´Ù. [http]Å×½ºÆ®Çغ¸±â ¹Ù¶õ´Ù.

4 ¸ÎÀ½¸»

GWT°¡ Java±â¼úÀ» »ç¿ëÇÔÀ¸·Î °³¹ßÀÚ´Â ´ÙÀ½°ú °°Àº À̵æÀ» ¾òÀ» ¼ö ÀÖ´Ù.
  • °´Ã¼ÁöÇâÀûÀÎ Àç»ç¿ë°¡´ÉÇÑ ÄÚµå »ý¼º
  • ¼Õ½¬¿î ¹èÆ÷ ¹× ¹®¼­È­

GWT¸¦ ÀÌ¿ëÇÏ¸é ºê¶ó¿ìÀú ȣȯ¼ºÀÌ ÀǽɵǴ °ü¸®Çϱ⵵ ±î´Ù·Î¿î ³­ÀâÇÑ HTML&Javascript Äڵ带 Á÷Á¢Á¦¾î ÇÏ´Â °Íº¸´Ù, ±ò²ûÇÑ È¯°æÀ» Á¦°øÇØ ÁÜÀ» ¾Ë ¼ö ÀÖÀ» °ÍÀÌ´Ù. À¥ÀÀ¿ë °³¹ßµµ, À©µµ¿ìÀÀ¿ë ó·³ °¢°¢ÀÇ ÄÄÆ÷³ÍÆ®¸¦ °¡Á®´Ù ºÙÀÌ´Â ½ÄÀÇ °³¹ßÀÌ °¡´ÉÇÒ ¶§°¡ µµ·¡ÇÏÁö ¾ÊÀ»±î ½Í´Ù.

ÀÌ¹Ì GWT¸¦ ÀÌ¿ëÇÑ ºñÁê¾óÇÑ °³¹ßÀÌ °¡´ÉÇÑ eclipse Ç÷¯±×Àεµ Á¦°øµÇ°í ÀÖ´Ù. ¾ÆÁ÷ ¿Ï¼ºµµ°¡ ¶³¾îÁö±ä ÇÏÁö¸¸ °ü½ÉÀÌ ÀÖ´Ù¸é ¾Æ·¡ÀÇ »çÀÌÆ®¸¦ ¹æ¹®ÇØ º¸±â ¹Ù¶õ´Ù.

5 ÇÒÀÏ

  • »ç¿ëÀÚ Á¤ÀÇ À§Á¬ÀÇ »ý¼º¹× µî·Ï
  • GWT ±âº»Á¦°ø À§Á¬À» »ç¿ëÇÑ º¹ÀâÇÑ UI±¸¼º

6 Âü°í¹®Çå

¹®¼­°¡ µµ¿òÀÌ µÇ¾ú³ª¿ä?
¾ÆÁÖ ¸¹ÀÌ 7 (53.85 %)
¸¹ÀÌ 1 (7.69 %)
±×·°Àú·° 1 (7.69 %)
º°·Î 1 (7.69 %)
ÀüÇô 3 (23.08 %)
ÃÑ ÅõÇ¥13

ÅÂ±× :

EmailÀ» ±âÀÔÇϸé, ´ñ±ÛÀÌ ¸ÞÀÏ·Î Àü´ÞµË´Ï´Ù.