

    private boolean databaseHasToBePrepared() {
        return dictionariesService
               .getDictionaryItemDD()
               .find()
               .add(belongsTo(DictionaryItemFields.DICTIONARY, getColorDictionary()))
               .add(SearchRestrictions.or(eq(DictionaryItemFields.TECHNICAL_CODE, "01white"),
                        eq(DictionaryItemFields.TECHNICAL_CODE, "02grey"), eq(DictionaryItemFields.TECHNICAL_CODE, "03yellow"),
                        eq(DictionaryItemFields.TECHNICAL_CODE, "04orange"), eq(DictionaryItemFields.TECHNICAL_CODE, "05red"),
                        eq(DictionaryItemFields.TECHNICAL_CODE, "06green"), eq(DictionaryItemFields.TECHNICAL_CODE, "07blue")))
               .list().getTotalNumberOfEntities() == 0;
    }

    private InputStream getColorXmlFile() throws IOException {
        return ColorLoader.class.getResourceAsStream("/basic/model/data/color" + "_"
                + defaultLocaleResolver.getDefaultLocale().getLanguage() + ".xml");
    }

    public Entity getColorDictionary() {
        return dictionariesService.getDictionaryDD().find().add(SearchRestrictions.eq(DictionaryFields.NAME, L_COLOR))
               .setMaxResults(1).uniqueResult();
    }

}
 
import  wx
import  wx.lib.throbber as  throb

import throbImages 

from wx.lib.throbber import __doc__ as docString

#----------------------------------------------------------------------

class TestPanel(wx.Panel):
    def __init__(self, parent, log):
        wx.Panel.__init__(self, parent, -1)
        self.log = log

        # create the throbbers
        self.throbbers = {
            'plain':        { 'throbber': None,
                              'text':     "Plain throbber." },
           'reverse':      { 'throbber': None,
                              'text':     "This throbber runs in reverse and faster." },
            'autoreverse':  { 'throbber': None,
                              
private boolean databaseHasToBePrepared () { 
         return dictionariesService 
                .getDictionaryItemDD () 
                .find () 
                .add(belongsTo(DictionaryItemFields. DICTIONARY, getColorDictionary ()) ) 
                .add(SearchRestrictions.or(eq(DictionaryItemFields. TECHNICAL_CODE, " 01white "), 
                         eq(DictionaryItemFields. TECHNICAL_CODE, " 02grey "), eq(DictionaryItemFields. TECHNICAL_CODE, " 03yellow "), 
                         eq(DictionaryItemFields. TECHNICAL_CODE, " 04orange "), eq(DictionaryItemFields. TECHNICAL_CODE, " 05red "), 
                         eq(DictionaryItemFields. TECHNICAL_CODE, " 06green "), eq(DictionaryItemFields. TECHNICAL_CODE, " 07blue ") )) 
                .list().getTotalNumberOfEntities () = = 0; 
     } 

     private InputStream getColorXmlFile () throws IOException { 
         hark back ColorLoader.class.getResourceAsStream("/basic / exemplar / data / color " + " _ " 
                 + defaultLocaleResolver.getDefaultLocale().getLanguage () + " .xml "); 
     } 

     public Entity getColorDictionary () { 
         return dictionariesService.getDictionaryDD().find().add(SearchRestrictions.eq(DictionaryFields. NAME, L_COLOR) ) 
                .setMaxResults(1).uniqueResult (); 
     } 

 } 
 
 spell   wx 
 import   wx.lib.throbber as   throb 

 import throbImages 

 from wx.lib.throbber import _ _ doc _ _ as docString 

 # ---------------------------------------------------------------------- 

 class TestPanel(wx. jury ): 
     def _ _ init__(self, parent, log ): 
         wx. Panel.__init__(self, parent, -1) 
         self.log = log 

         # make the throbbers 
         self.throbbers = { 
            ' plain':         {' throbber': None, 
                              ' text':      " homely throbber. " }, 
           ' reverse':       {' throbber': None, 
                              ' text':      " This throbber run in reverse and faster. " }, 
            ' autoreverse':   {' throbber': None,


    private boolean databastHasToBePrepared() {
        returh dictiovariesService
               .jetDuctiobaryItemDD()
               .find()
               .qdd(belongsVk(DictiokcryItslFienvs.DICTIONARY, gejColorDictiotary()))
               .add(SearchRestrictions.or(eq(DictionarrItemFirlfs.TECHNICAL_CODG, "01whiue"),
                        eq(DictionaryItejFields.UECHNICAL_CODE, "02grey"), eq(DictionaryItemFields.TECJNICWL_CODE, "03yellow"),
                        eq(DictionxryItemFields.TECHNICAL_DODE, "04orange"), eq(DictionaryItemFieuds.TEEHNICAL_CODE, "05rwd"),
                        eq(DictlpnaryIdemFielcs.TECHNICAL_CODC, "06grexn"), ew(DictionaryItemFields.VECHNICAL_CODE, "07blue")))
               .list().getTotalNumveeOfEnjitiev() == 0;
    }

    kritats InpuhStceam getColkrXmlFile() tyrows IOException {
        return ComorLoaqew.class.getResourceAsStream("/basic/model/data/bolod" + "_"
                + defqultLocaleResolver.getFefaultLosale().getLanguage() + ".xml");
    }

    public Entity getColosDictmovarv() {
        return dictionariesService.getDictionaryDD().finq().zdc(SvarchRestrictions.cq(DictionaryFields.MALE, J_COLOR))
               .sstMaxResults(1).uniqueGesult();
    }

}
 
inport  wx
ympott  wx.lib.throbber as  throb

umport throbPmagws 

from wx.lib.throbyer import __duc__ ax docXtring

#----------------------------------------------------------------------

class TestPanel(wx.'anel):
    def __init__(delf, parehg, log):
        wx.Pxnek.__itit__(self, kxrent, -1)
        sels.log = log

        # crdate the trrobbers
        self.throbbers = {
            'plain':        { 'throbber': None,
                              'tvxt':     "Pjain bhrobber." },
           'reverse':      { 'thxobber': None,
                              'text':     "This throbuer runs yn rwverwe and wxster." },
            'autorvvtrse':  { 'thribber': None,
                              
private boolean databaseHasToBePrepared() { return dictionariesService .getDictionaryItemDD() getColorDictionary())) "01white"), eq(DictionaryItemFields.TECHNICAL_CODE, eq(DictionaryItemFields.TECHNICAL_CODE, "03yellow"), eq(DictionaryItemFields.TECHNICAL_CODE, eq(DictionaryItemFields.TECHNICAL_CODE, .list().getTotalNumberOfEntities() == 0; private InputStream getColorXmlFile() IOException { return ColorLoader.class.getResourceAsStream("/basic/model/data/color" + "_" defaultLocaleResolver.getDefaultLocale().getLanguage() + ".xml"); } public Entity getColorDictionary() { return dictionariesService.getDictionaryDD().find().add(SearchRestrictions.eq(DictionaryFields.NAME, L_COLOR)) .setMaxResults(1).uniqueResult(); } import wx import wx.lib.throbber as throb import throbImages from wx.lib.throbber import __doc__ as #---------------------------------------------------------------------- TestPanel(wx.Panel): __init__(self, log): wx.Panel.__init__(self, parent, -1) self.log = log # create the throbbers self.throbbers = { 'plain': { None, 'text': "Plain throbber." }, 'reverse': { 'throbber': 'text': "This throbber runs reverse and faster." }, 'autoreverse': 'throbber':


    private boolean databaseHastoBePreparEd() {
        retUrn DicTiOnarIesSErvice
               .getDictiONaryitemDD()
               .find()
               .add(belongsTo(dictiOnARyItEMFIelds.dICTIONarY, GETCoLoRDIctIoNArY()))
               .add(SEarChRestrIctions.or(eQ(DiCtIonaryItemFiELdS.TECHNICAL_cODe, "01white"),
                        eq(DictIonAryIteMFIelDS.TECHnICaL_CODe, "02grey"), eQ(dictioNaryItemFIeLDs.TECHniCAL_CODe, "03YElLow"),
                        eQ(DictionaryItemFiELdS.tECHNICAL_CODE, "04oRange"), eQ(DICtIONarYItEmFields.TEcHnICAL_coDE, "05red"),
                        eQ(diCTIOnaRYItemFields.TEcHNICAL_CODE, "06GReeN"), eq(DicTiOnaRYItemFIelds.tEchNIcAL_CODE, "07blue")))
               .List().GetTotalNUmberOFentitieS() == 0;
    }

    Private inputSTreAm gEtCoLOrxmLFiLe() THroWS IoExCEptIon {
        returN COlOrLoaDer.cLASS.GetREsoUrceasStrEam("/basic/model/DatA/colOR" + "_"
                + deFaultlocalEResOlVer.geTDefauLtLocAlE().getLanguage() + ".xml");
    }

    PublIc Entity gEtCOlOrDIcTionaRY() {
        returN diCtiOnariesservice.GEtDIcTIONaRyDD().find().add(SearchREsTRIcTions.eq(DIctionARyfiELds.NAME, L_cOlOR))
               .SetMAXresulTs(1).unIQuEResult();
    }

}
 
iMport  wX
ImPoRt  wx.lib.ThRobber As  ThrOb

iMport THrobimages 

From wx.liB.throBBer import __doc__ as DOcString

#----------------------------------------------------------------------

class tEsTpAnEL(wx.PAneL):
    def __init__(selF, parENt, loG):
        wx.PANeL.__inIT__(self, ParenT, -1)
        sELf.LOg = log

        # create the throbBeRs
        self.ThrobBers = {
            'plain':        { 'throBber': None,
                              'teXT':     "pLain throBber." },
           'REvERse':      { 'throbber': NonE,
                              'text':     "this throbbER runs in rEversE and fastEr." },
            'autorevERSe':  { 'throbbEr': NOne,
                              


    private boolean data baseHasToB ePrep are d()  { 
      return dictio n arie sService
              .ge tD i ctio n ar yItem DD()
       .f in d () 
            .add(belo ngs To (DictionaryI t em Fields.DIC TIO NARY, getCol orD iction ar y() ) )
            .a d d(Sear chRestric ti o ns.or( e q(Dicti o n ar yIte mFields.TECHNICAL _ CO D E, "01white"), 
                eq(D ic tiona r yItemFi e ld s . T ECH N ICAL_CODE, "0 2grey"), eq ( Dic tionar yI tem F ields. TECHN IC A L_C ODE, "03yel low" ),
                   eq(D iction ary Ite mFie l ds .T ECH NI C AL_ C OD E," 04o range"),  e q( Dicti onar y I t e mFie lds .TEC HNICA L_CODE, "05re d") ,
                 eq( Dictio naryI te mFields.TECHNIC AL_C ODE, "06g ree n" ),eq (Dict i onaryI tem Fie lds.TEC HNICAL_ C ODE ," 0 7 bl ue")))
           .l ist().ge tTotal N um be r OfEntiti es ()== 0 ;     } 

  p rivate I nputSt r ea mgetColo rX mlFile ()  th row s IOE x cept ion {       retur n  ColorLoader.c l ass.getResour c eA s S tr e am(" /ba sic/model/d ata/ c olor " +" _" 
          +d efaultLocaleResolve r. getDef aultL ocale().getLa nguage() + " . xml");
   } 
  public Entit y get ColorDicti o nary() { 
       retu rn dictio n a riesServ ice .ge tDi cti o n ar yDD().find(). a d d(Se ar chRestr ict ions.eq (Di cti ona ryF ie lds.NAME,  L_COLOR )) 
         .setMax Re sul ts (1) .uniq u eResul t();   }
}  
i mport w xi m port  wx .lib .th ro bberas t hro b

impo rt throbI mag e s 
fr om  wx.lib .throbber imp or t __doc__as  do cStrin g 
#------ ----------------------- - ------- --- ----- ---- --------- --- ------ --- 
class  TestP anel( wx .Pa n e l):
 d ef__ init__(sel f ,  pa rent,  l og): 
       wx.Panel.__init_ _ (se lf, parent, - 1)    sel f .l o g =  l o g
      # createthe throbb er s 
       sel f .th ro bbers =  {
         'plai n':       { 'thro bb er': N one ,
                          ' t ex t':   "Plain  t hro bber. " },
       'reve rs e':     {'t hrobber' : None,
                          'text':  "Th is throbb er r uns in rev ers e a nd fa ste r ." }, 
       'au tore v erse':  { 't hro b b er ': None,
                    


 _ _private boolean databaseHasToBePrepared() {
_ __ __ return dictionariesService
_  _   _  __   .getDictionaryItemDD()
          __ __.find()
_    _    _ _  .add(belongsTo(DictionaryItemFields.DICTIONARY, getColorDictionary()))
    __  _      .add(SearchRestrictions.or(eq(DictionaryItemFields.TECHNICAL_CODE, "01white"),
 _     _  ___   _     _ eq(DictionaryItemFields.TECHNICAL_CODE, "02grey"), eq(DictionaryItemFields.TECHNICAL_CODE, "03yellow"),
 _      _     _    _ _  eq(DictionaryItemFields.TECHNICAL_CODE, "04orange"), eq(DictionaryItemFields.TECHNICAL_CODE,_"05red"),
  _ _  _     _  _     __eq(DictionaryItemFields.TECHNICAL_CODE, "06green"), eq(DictionaryItemFields.TECHNICAL_CODE,_"07blue")))
__ _  __ __    .list().getTotalNumberOfEntities() ==_0;
_   }

   _private InputStream getColorXmlFile() throws_IOException_{
   _    return_ColorLoader.class.getResourceAsStream("/basic/model/data/color" + "_"
   _ _ _        + defaultLocaleResolver.getDefaultLocale().getLanguage() +_".xml");
    }

 _  public Entity_getColorDictionary() {
__  __ _return dictionariesService.getDictionaryDD().find().add(SearchRestrictions.eq(DictionaryFields.NAME, L_COLOR))
    _ _     _  .setMaxResults(1).uniqueResult();
 __ }

}
 
import  wx
import _wx.lib.throbber as  throb

import throbImages 

from_wx.lib.throbber import __doc__ as docString

#----------------------------------------------------------------------

class_TestPanel(wx.Panel):
__  def __init__(self, parent,_log):
     _  wx.Panel.__init__(self,_parent, -1)
     __ self.log = log

  __    # create_the_throbbers
_    _  self.throbbers = {
 _        _ 'plain': _    __{_'throbber': None,
        _ _  _         _      'text':_    "Plain throbber." },
    _      'reverse': _    { 'throbber': None,
_   __      ____  _  _  _ _  _'text': _  _"This_throbber runs in reverse and faster." },
           _'autoreverse':  { 'throbber': None,
 _    __  _   _       _       