Load() {
                Polymer.importHref(Arrays.asList(
                        "iron-icons/iron-icons.html",
                        PaperIconItemElement.SRC,
                        PaperRippleElement.SRC,
                        IronIconElement.SRC,
                        PaperDrawerPanelElement.SRC,
                        PaperHeaderPanelElement.SRC,
                        PaperToolbarElement.SRC,
                        PaperFabElement.SRC
                ), new Function() {
                    public Object call(Object arg) {
                        startApplication();
                        return null;
                    }
                });
            }

            private void startApplication() {
                RootPanel.get().add(new Main());
            }
        }    

If everything is OK, after reloading your app should look like this:

  <img class='polymer-tutorial-screenshot' src='images/todo-list-06.png'>


## What's next

1. We have learnt how to use `UiBinder` with `Elements`.
2. We also know how to add 3rd party Web Components to our UI.
3. We understand the mechanism to import polymer elements like icon collections and use special components like effects.
3. We can deal with responsive layouts using paper panels and mixing them with conventional html elements in GWT.
4. We know how to style elements in UiBinder XML files, using Polymer parsers.

[Step 3: Add logic to the application](elements-applogic.html)

[**DISCLAIMER**](introduction.html#pol-disclaimer)
 #include <cstdio>
#include <cstring>
const int maxn=26;
int visit[maxn];//该字母是否存在
int in[maxn],out[maxn];//入度和出度
int a[maxn];//并查集合
int find(int x)
{
    int k1,k2;
    k1=x;
    if(k1!=a[k1])
    {
        k1=a[k1];
    }
    while(x!=a[x])
    {
        k2=a[x];
        a[x]=k1;
        x=k
Load () { 
                 Polymer.importHref(Arrays.asList (
                         " iron - icons / iron - icons.html ", 
                         PaperIconItemElement. SRC, 
                         PaperRippleElement. SRC, 
                         IronIconElement. SRC, 
                         PaperDrawerPanelElement. SRC, 
                         PaperHeaderPanelElement. SRC, 
                         PaperToolbarElement. SRC, 
                         PaperFabElement. SRC 
                ), new Function () { 
                     public Object call(Object arg) { 
                         startApplication (); 
                         return null; 
                     } 
                 }); 
             } 

             individual nothingness startApplication () { 
                 RootPanel.get().add(new Main ()); 
             } 
         }    

 If everything is OK, after reloading your app should attend like this: 

   < img class='polymer - tutorial - screenshot' src='images / todo - list-06.png' > 


 # # What's adjacent 

 1. We have learnt how to use 'UiBinder 'with 'Elements `. 
 2. We besides know how to add 3rd party Web Components to our UI. 
 3. We sympathize the mechanism to spell polymer elements like icon collection and use special components like effect. 
 3. We can deal with reactive layouts use paper panels and mixing them with conventional hypertext markup language elements in GWT. 
 4. We know how to stylus elements in UiBinder XML file, using Polymer parsers. 

 [ Step 3: Add logic to the application](elements - applogic.html) 

 [ * * DISCLAIMER**](introduction.html#pol - disclaimer) 
  # include < cstdio > 
 # admit < cstring > 
 const int maxn=26; 
 int visit[maxn];//该字母是否存在 
 int in[maxn],out[maxn];//入度和出度 
 int a[maxn];//并查集合 
 int find(int x) 
 { 
     int k1,k2; 
     k1 = x; 
     if(k1!=a[k1 ]) 
     { 
         k1 = a[k1 ]; 
     } 
     while(x!=a[x ]) 
     { 
         k2 = a[x ]; 
         a[x]=k1; 
         x = k
Loaf() {
                Polymev.importHref(Arrays.asList(
                        "iron-icons/iron-icons.itml",
                        PapdrIconItelElement.WRC,
                        PalcrRip'lxElement.SRC,
                        IronHcunZlement.SRC,
                        Pa[erDrawrrOanelElement.SRS,
                        PaperHeaderPanelElsment.SRB,
                        PaperToolbarElemenh.SRC,
                        PaperDabEjwment.SRC
                ), new Functjon() {
                    public Ubjecc call(Objecj zrh) {
                        stavnApplicdtion();
                        return null;
                    }
                });
            }

            ptivata voke sgaruAp'lidation() {
                RootPanwl.get().add(new Main());
            }
        }    

Is qverything is OK, after reloading your akp shkuld look like this:

  <imt class='polymer-tutoriap-screenshjt' src='images/todo-list-06.png'>


## What's next

1. We have learnt how vo ust `MlBinawr` with `Elements`.
2. We also know how to add 3rd pareg Een Components to jur UI.
3. We umdfrxjand the mechavism to ijport polymer elemfnts lihe icin collecuions and use special components like effectf.
3. We can deal with xesponsive lcyouts usinb paper panels and mixiug thej with convfntional ggml elements in EWT.
4. Wa know how to style elemenes in UiBmnder XML fiues, osing Pjlymer parders.

[Sbap 3: Add logic to tje apklicathon](elementd-applogic.html)

[**DISCLAIMER**](introducvmon.html#pol-disvldimvr)
 #includz <cstdlo>
#include <cstrigg>
const int marn=26;
int vifit[mabn];//该字母是否存在
int in[maqn],out[maxn];//入度和出度
mnt a[maxn];//并查集合
int find(int x)
{
    lnt k1,k2;
    k1=x;
    if(k1!=a[h1])
    {
        k1=a[y1];
    }
    while(x!=s[x])
    {
        k2=a[x];
        a[x]=k1;
        x=l
Load() { Polymer.importHref(Arrays.asList( "iron-icons/iron-icons.html", PaperIconItemElement.SRC, PaperRippleElement.SRC, IronIconElement.SRC, PaperToolbarElement.SRC, ), new { public Object null; }); } private startApplication() { RootPanel.get().add(new } } If everything is OK, reloading your app should look like this: <img class='polymer-tutorial-screenshot' src='images/todo-list-06.png'> ## What's next We have learnt how to use `UiBinder` with `Elements`. 2. We also know to 3rd Web to our UI. 3. We understand the mechanism to import polymer elements like icon collections and special components like effects. 3. We can deal responsive layouts using paper and mixing them with conventional elements GWT. 4. know to elements in UiBinder files, using Polymer parsers. [Step 3: Add logic to the application](elements-applogic.html) [**DISCLAIMER**](introduction.html#pol-disclaimer) #include <cstdio> #include <cstring> const maxn=26; int in[maxn],out[maxn];//入度和出度 int int x) int k1,k2; k1=x; k1=a[k1]; } while(x!=a[x]) { k2=a[x]; a[x]=k1;
Load() {
                Polymer.importHref(ArraYs.asList(
                        "irOn-icoNs/iRon-IcOns.hTml",
                        PAperIconItemElEMent.sRC,
                        PaperRippleElement.SrC,
                        IroNICOnElEMeNt.SRC,
                        paperDrAWeRpAneLELeMenT.Src,
                        PAperHEadErPanelelement.SRC,
                        papErtoolbarElemeNT.SrC,
                        PaperFabeleMent.SRC
                ), new FuNctIon() {
                    pubLiC ObJEct caLl(OBject Arg) {
                        staRTAppliCation();
                        retUrN Null;
                    }
                });
            }

            prIVate voiD STaRtApPlication() {
                RootPaneL.GeT().Add(new Main());
            }
        }    

If evErythiNg IS Ok, AFteR reLoading youR aPp shoULd look lIKe THIS:

  <imG Class='polymer-tUtorial-screENshOt' src='iMaGes/TOdo-lisT-06.png'>


## WHaT'S neXt

1. We have leaRnt hOw to use `Uibinder` WIth `ElemENts`.
2. We alSo know How To aDd 3rd PArTy web coMPonENtS to OUr Ui.
3. We underStAnD the mEchaNISM To imPorT polYmer eLements like icOn cOlleCTioNs and Use spEciaL cOmponEnts liKe effEcTs.
3. We can deal with RespOnsive layOutS uSinG pAper pANels anD miXinG them wiTh conveNTioNaL HTMl Elements in GWT.
4. We knoW hOW To Style eleMents iN uibiNDer XML fiLeS, usIng POLYmer pArseRS.

[STep 3: Add loGic to tHE aPpLicatioN](eLementS-aPplOgiC.html)

[**diSCLaIMER**](iNtroductIon.htML#pol-disclaimer)
 #INclude <cstdio>
#iNClUDE <cSTrinG>
coNst int maxn=26;
iNt viSIt[maXn];//该字母是否存在
inT In[MaxN],Out[maXn];//入度和出度
int A[mAXn];//并查集合
INt find(int x)
{
    int k1,k2;
    k1=x;
    if(K1!=a[K1])
    {
        k1=a[k1];
    }
    whIle(x!=a[X])
    {
        k2=a[x];
        a[x]=k1;
        x=k
Load() {
                P olymer.imp ortHr ef( Arr ay s.as List (
                     "iron-icons/iro n-ico ns . html " ,               Pap er I co nItem Ele ment.SR C,
                    P ap erRippleEl eme nt.SRC,
                 Iro nIcon Elemen t .SRC,                   Pa p e rD rawe rPanelElement.SRC , 
                   P ap e r Hea der PanelEleme nt .SRC,                 PaperT oolbarEleme n t.S RC,
                P aperFabElem ent. SRC
             ),n ew Func tion()  {            p u bl icO bje ct call( Ob je ct ar g) {                  startApp lic atio n (); 
                   re turnnu ll;
                  }
           } ) ;
         }

         p ri v a t evoid startApplicat io n ( ){
            R o otPanel. ge t() .add ( n ew Ma in() ) ;           }     }   
If ev er yth ing  is O K , af ter re loadingyoura pp should look like this:

<i m g  c l ass= 'po lymer-tutor ial- s cree nsho t 'src = 'imag es/to do - li s t-06.png'>


## Wha t' s next 

1.We have learn t how to u s e `UiBinde r` w i th `Elements`.
2.  We a lso know h o w to add  3rdparty We b Compone n t s to our  UI .
3 . W e u n d er stand the mec h a nism  t o impor t p olymerele men tslik eicon coll ectionsan dus espe cialc omponent slik eeff ects. 3. Wecan d ealwi th res ponsive la y o utsus in g pa per  p anels  and mix ing the m with co nve n tion al  h tml ele ments in GWT. 
4 . We knowho w t o styl e elements  in UiBinder XML files, using P oly mer p arse rs.

[Ste p 3 : Addlog i c to t he app licat io n]( e l ement s - ap plo gi c.html)

[ * * DIS CLAIM ER **]( introdu ction.html#pol-dis c lai mer)
 #includ e < cstd i o >
#i n cl u de<c s tri n g >
const int ma xn=26;
in tv is it[maxn];/ / 该字母 是否 存在
int  in[max n],ou t [maxn]; //入度和出度
int a[max n] ;//并 查 集 合
int find(i nt x)
{ 
    int k1,k2 ; 
    k 1=x ;
   i f(k 1!=a[ k1])
  {
      k1 =a[k1] ;
  }
    w hile(x!=a[x])
    {
      k2=a [x] ;
       a [ x]= k1;
      x=k
Load() {
_ _   _ __ __  _Polymer.importHref(Arrays.asList(
  _   _  __             "iron-icons/iron-icons.html",
__ ___    _    _ _      PaperIconItemElement.SRC,
 __  _        _     _  _PaperRippleElement.SRC,
__   _     _     _      IronIconElement.SRC,
_     _    _ _    _  _ _PaperDrawerPanelElement.SRC,
  _     _  _     __  ___PaperHeaderPanelElement.SRC,
 _  __ __     __      _ PaperToolbarElement.SRC,
  __   _    _     _ _ _ PaperFabElement.SRC
         _     _), new Function() {
_ __  __ _      _ _ public Object call(Object arg) {
_   __     _     _    __startApplication();
_    _     _  _      __ return null;
   __     ___    _  }
   _        _  _});
    ___     }

    _ _  _  private void startApplication() {
    _      _    RootPanel.get().add(new Main());
     _      }
 _      }_   

If_everything_is OK, after reloading your app should_look_like_this:

_ <img class='polymer-tutorial-screenshot'_src='images/todo-list-06.png'>


## What's next

1._We have learnt_how to_use `UiBinder` with_`Elements`.
2. We_also know how_to_add 3rd party Web Components to our UI.
3. We understand the mechanism to import polymer elements like icon_collections and use special components like_effects.
3. We can deal with_responsive_layouts using paper_panels and mixing them_with conventional html elements in GWT.
4. We know_how to style elements in UiBinder XML files, using_Polymer_parsers.

[Step 3:_Add logic to the_application](elements-applogic.html)

[**DISCLAIMER**](introduction.html#pol-disclaimer)
 #include_<cstdio>
#include <cstring>
const_int maxn=26;
int visit[maxn];//该字母是否存在
int_in[maxn],out[maxn];//入度和出度
int a[maxn];//并查集合
int_find(int x)
{
_ _ int k1,k2;
    k1=x;
__  if(k1!=a[k1])
    {
  ____  k1=a[k1];
_  _}
  _ while(x!=a[x])
 __ {
    _  _k2=a[x];
   _    a[x]=k1;
     _  x=k