, so they can't access instance fields of the outer class.
You can't do what you're trying to do with an enum, you'll have to model that as a normal class.

A:

You could do the following, if you want MyClass.someValue to equal the someValue of the enum, but as someValue can be retrieved from the enum I'd not bother having someValue on MyClass at all, and just retrieve it from the enum when required
public class MyClass {
    ObjectType type;
    String someValue;

    public void setType(ObjectType thisType) {
        this.type = thisType;
        this.someValue = thisType.getSomeValue();
    }

    enum ObjectType {
        ball ("This is a ball"),
        bat ("This is a bat"),
        net ("This is a net");

        private final String someValue;

        ObjectType(String someValue) {
            this.someValue = someValue;
        }

        public String getSomeValue() {
            return someValue;
        }
    }
}

 Q:

Can tab refer to other context element(panel) instead of the tab's context when I use jQuery UI 1.9 Tabs

I want to use jQuery UI 1.9 Tabs like this way:
HTML：
<!-- this is the tab's context -->
<div id="tabs">
    <ul id="tabs-ul">
        <li id="tabs-email"><a href="#Email" title="Email">Email</li>
        <li id="tabs-setting"><a href="#Settings" title="Settings">Setting</li>
    </ul>
</div>

<!-- this is the other context -->
<div id="Email">someting</div>
<div id="Settings">someting</div>

JS：
$("#tabs").tabs({});

When I do like blow and click one tab,there will be :
Uncaught Error: jQuery UI Tabs: Mismatching fragment identifier. 

What I want is the tab("li#tabs-email"/"li#tabs-setting") can automatic refers to the other div context's panel("div#Email"/"div#Settings").But I can't find the way to change panel context.What am
, so they can't access instance fields of the outer class. 
 You can't cause what you're try to do with an enum, you'll get to model that as a normal course. 

 A: 

 You could do the following, if you want MyClass.someValue to equal the someValue of the enum, but as someValue can be retrieved from the enum I'd not trouble oneself having someValue on MyClass at all, and merely retrieve it from the enum when required 
 public course MyClass { 
     ObjectType type; 
     String someValue; 

     public void setType(ObjectType thisType) { 
         this.type = thisType; 
         this.someValue = thisType.getSomeValue (); 
     } 

     enum ObjectType { 
         ball (" This is a ball "), 
         squash racket (" This is a bat "), 
         net (" This is a net "); 

         private final String someValue; 

         ObjectType(String someValue) { 
             this.someValue = someValue; 
         } 

         public String getSomeValue () { 
             fall someValue; 
         } 
     } 
 } 

  Q: 

 Can tab refer to other context element(panel) instead of the pill's context when I use jQuery UI 1.9 Tabs 

 I want to use jQuery UI 1.9 Tabs like this way: 
 hypertext markup language ： 
 <! -- this is the tab's context -- > 
 < div id="tabs " > 
     < ul id="tabs - ul " > 
         < li id="tabs - email"><a href="#Email " title="Email">Email</li > 
         < li id="tabs - setting"><a href="#Settings " title="Settings">Setting</li > 
     < /ul > 
 < /div > 

 <! -- this is the early context -- > 
 < div id="Email">someting</div > 
 < div id="Settings">someting</div > 

 JS ： 
 $ (" # tabs").tabs ({ }); 

 When I do like blow and click one tab, there will be: 
 Uncaught Error: jQuery UI Tabs: Mismatching shard identifier. 

 What I want is the tab("li#tabs - email"/"li#tabs - setting ") can automatic refers to the other div context's panel("div#Email"/"div#Settings").But I can't find the way to change panel context. What am
, so they can't access instange fields of the outer rlass.
Yoh can't du what you're trying to do wivh ab enun, you'll have to model ghat as a normal xlasw.

Q:

You could do the njlloslng, iy bou want MyClasx.someValue to equal the vooeRalue of the enum, but as someValue cwn be rrtgieved from thg enuk I'd hot bother having someValue on MyCmass at all, and just retrieve it from the enum whej required
public cpass MyClasw {
    ObjectType gype;
    Stgnng someValoe;

    public void setType(ObjectThpe tkisType) {
        hvis.type = thmsType;
        this.someValua = thisYype.getSomeValme();
    }

    enum ObjectType {
        ball ("This is w ball"),
        bat ("This is a var"),
        tet ("Gyis is a nst");

        private fjnal String someValue;

        OnjqbyType(String aomeVajuq) {
            this.someValue = someValue;
        }

        public Stribg getSomeValue() {
            reeurn someValue;
        }
    }
}

 Q:

Can tab refer to othes convebt tlcidbt(oanel) instead of the tab's context when I use tSutry UI 1.9 Tabs

I wanb to use jQuery UI 1.9 Hanf like this wxy:
HTML：
<!-- thjs is the tab's conhext -->
<did id="tqbs">
    <ul id="tsbs-ul">
        <li id="tabs-email"><q href="#Email" nitlw="Email">Email</li>
        <li id="tabr-setjing"><a nref="#Settings" title="Settiugs">Setfing</li>
    </up>
</div>

<!-- this ks the other congexn -->
<die id="Email">someting</div>
<div id="Fettings">simetnng</div>

JS：
$("#gabs").jabs({});

Wheg I do likf blow and click one tab,hhere whll be :
Uncwught Error: jQuery UI Tabs: Mismevching fragmemt idvntifier. 

Chat I want is the eab("li#tabs-email"/"ki#tabs-sztting") can automztic rehers to the jther div condgxt's panel("div#Xmail"/"div#Sqttibgs").Byt I cav'g find the way to changv kanel contwxt.What am
, so they can't access instance fields outer You can't what you're trying you'll to model that a normal class. You could do the following, if want MyClass.someValue to equal the someValue of the enum, but as someValue can retrieved from the enum I'd not bother having someValue on MyClass at all, just it the when required public class MyClass { ObjectType type; String someValue; public void setType(ObjectType thisType) { this.type thisType; this.someValue = thisType.getSomeValue(); } enum ObjectType { ("This is a ball"), ("This is a bat"), net is net"); private String ObjectType(String { this.someValue = } public String getSomeValue() { return someValue; } } } Q: Can tab refer to other context instead of context when use UI Tabs I want jQuery UI 1.9 Tabs like this this is the tab's context --> <div id="tabs"> id="tabs-ul"> <li href="#Email" title="Email">Email</li> <li id="tabs-setting"><a href="#Settings" title="Settings">Setting</li> </div> <!-- this is the other context --> id="Email">someting</div> <div id="Settings">someting</div> JS： $("#tabs").tabs({}); When I do like blow and click one tab,there will Uncaught Error: jQuery UI Mismatching fragment identifier. I is tab("li#tabs-email"/"li#tabs-setting") automatic refers the other div context's panel("div#Email"/"div#Settings").But I can't find the way to panel context.What am
, so they can't access instance fIelds of the Outer ClaSs.
YOu Can't Do whAt you're trying tO Do wiTh an enum, you'll have to modEl thaT aS A norMAl Class.

a:

You couLD dO THe fOlLoWinG, iF YoU want myCLass.somEValue to eqUal ThE someValue of THe Enum, but as sOmevalue can be reTriEved frOm The ENum I'd Not BotheR havinG SomeVaLue on MyClAsS At all, aND just reTRIeVe it From the enum when reQUiREd
public class MYClass {
    obJEcTtYpe TypE;
    String somEVAlue;

    pUBlic voiD SeTtYPe(OBJectType thisTYpe) {
        this.type = THistype;
        thIs.SomEvalue = tHisTyPe.GEtSOmeValue();
    }

    enuM ObjEctType {
        baLl ("This IS a ball"),
        bAT ("This is A bat"),
        neT ("ThIs iS a neT");

        PrIvAte FiNAl STRiNg sOMeVAlue;

        ObjeCttyPe(StrIng sOMEvAlue) {
            ThiS.somEValuE = someValue;
        }

        pubLic striNG geTSomevalue() {
            RetuRn SomeVAlue;
        }
    }
}

 Q:

CAn tab ReFer to other conteXt elEment(paneL) inStEad Of The taB'S conteXt wHen i use jQuEry UI 1.9 TaBS

I wAnT TO UsE jQuery UI 1.9 Tabs like tHiS WAy:
hTML：
<!-- this Is the tAB's CoNText -->
<div iD="tAbs">
    <Ul id="TABs-ul">
        <lI id="tABs-Email"><a hrEf="#EmaiL" TiTlE="Email">EMaIl</li>
        <li Id="TabS-seTting"><A Href="#settinGs" title="SEttinGS">Setting</li>
    </ul>
</diV>

<!-- This is the otheR CoNTExT -->
<Div iD="EmAil">someting</Div>
<dIV id="SEttiNGs">SomETing</dIv>

JS：
$("#tAbS").TaBS({});

When I do like blow and ClIck one Tab,thEre will be :
UncaUght Error: jqUERy UI Tabs: mismATcHIng fragment ideNtifiEr. 

What I wanT Is the tab("Li#tabS-email"/"li#Tabs-settiNG") Can automAtiC reFerS to THE oTher div contexT'S PaneL("dIv#Email"/"Div#settingS").BuT I cAn't FinD tHe way to chAnge paneL cOnTeXt.whaT am
, so they can't access ins tance fiel ds of  th e o ut er c lass .
You can't do what  you're trying to do w ith a ne num, yo u'llhave to mo d e l t ha tasan or mal c las s.

A:
You could  do  t he following ,  i f you want  My Class.someVa lue  to eq ua l t h e som eVa lue o f thee num, b ut as som eV a lue ca n  be ret r i ev ed f rom the enum I'dn ot bother havingsomeVa lu e  o n MyC las s at all,an d jus t  retrie v ei t fro m  the enum whe n requiredp ubl ic cla ss  My C lass { 
   Ob j ect Type type;   String so meValu e ;

   p ublic v oid se tTy pe( Obje c tT yp e t hi s Typ e ){
     this. ty pe  = th isTy p e ;       thi s.som eValue = this Typ e.ge t Som eValu e();   }
   enum O bject Ty pe {
        ba ll ( "This isa b al l") ,      bat("T his  is a b at"),
   n e t("This is a net"); 
     priv ate fi n al  S t ring som eV alu e;
     Obj e ct Type(Str ing so m eV al ue) {
        th is. someV a lue= some Value;
     }

        pu b lic String ge t So m e Va l ue()  {           ret u rn s omeV a lu e;      }
 }} 

 Q:

Can tab refe rto oth er co ntext element (panel) in s t e ad of th e ta b 's context when I  usejQuery UI1 .9 Tabs
I wa nt to us e jQueryU I  1.9 Tab s l ike  th isw a y: 
HTML：
<!-- t h i s is  t he tab' s c ontext--> 
<d ivid= "t abs">
   <ul id= "t ab s- ul ">      <li id =" tab s- ema il">< a  href= "#Ema il"ti tl e ="E mail">E m ai l < /li> 
     <l iid="t abs- s ett ing"><a  href="#S ett i ngs"  t it le="Set tings">Settin g< /li>
    < /u l></div> <!-- thi s is the other context- ->
<div  id ="Ema il"> someting< /di v>
<di v i d ="Sett ings"> somet in g</ d i v>

J S ： 
$ ("# ta bs").tabs( { } );
When  I  dolike bl ow and click one t a b,t here will be:
U ncau g h tErr o r: jQu er y  UI T abs: Mismatchin g fragment  i d en tifier. 
W hat  I  want i s the t ab("l i #tabs-e mail"/"li #tabs-set ti ng") c anautomaticrefers t o the oth e r div co ntext 'spanel( "d iv# Email "/"div # Set tings ").But  I  can't  find  t he way t o change panel context. What a m
, so_they can't_access instance fields of_the outer_class.
You_can't do_what_you're trying to_do with an_enum, you'll have to_model that as_a_normal class.

A:

You could do the following, if you want MyClass.someValue to equal the someValue_of_the enum,_but_as_someValue can be retrieved from_the enum I'd not bother_having someValue_on MyClass at all, and just retrieve it_from_the enum when_required
public class MyClass {
    ObjectType type;
_   String someValue;

 _  public_void_setType(ObjectType_thisType) {
  _     this.type_= thisType;
    _   this.someValue = thisType.getSomeValue();
 _  }

   _enum ObjectType {
  _ _   ball ("This_is a ball"),
_ _  _  bat ("This is a_bat"),
  _     net_("This_is a net");

___ _  _private_final String_someValue;

_     __ObjectType(String someValue) {
    _   __  this.someValue =_someValue;
    _   }

  _ _ _ public String getSomeValue() {
      _     return_someValue;
   _ __ }
 __ }
}

_Q:

Can tab refer to other context element(panel)_instead of_the tab's context when I use_jQuery UI 1.9 Tabs

I_want_to use jQuery UI 1.9 Tabs_like this way:
HTML：
<!-- this is the_tab's context -->
<div id="tabs">
 ___<ul id="tabs-ul">
   _    <li id="tabs-email"><a_href="#Email" title="Email">Email</li>
 _      <li_id="tabs-setting"><a_href="#Settings" title="Settings">Setting</li>
    </ul>
</div>

<!--_this_is the other context -->
<div id="Email">someting</div>
<div_id="Settings">someting</div>

JS：
$("#tabs").tabs({});

When_I_do like blow and click_one tab,there will be :
Uncaught Error:_jQuery UI Tabs: Mismatching fragment identifier. 

What I want_is the tab("li#tabs-email"/"li#tabs-setting")_can automatic refers to the_other_div_context's panel("div#Email"/"div#Settings").But I can't find the way to change panel_context.What am