Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.notationmanager
Class NotationManagerImpl  view NotationManagerImpl download NotationManagerImpl.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.notationmanager.NotationManagerImpl
All Implemented Interfaces:
NotationManager

class NotationManagerImpl
extends java.lang.Object
implements NotationManager

Implementation for NotationManager


Nested Class Summary
private static class NotationManagerImpl.FilterAndFactory
           
private static class NotationManagerImpl.LanguageLocaleFilterImpl
           
 
Field Summary
private  com.virtuosotechnologies.asaph.model.notation.NotationFactory defaultFactory_
           
private  java.util.Map locales_
           
 
Fields inherited from interface com.virtuosotechnologies.asaph.notationmanager.NotationManager
API_NAME
 
Constructor Summary
(package private) NotationManagerImpl()
           
 
Method Summary
 com.virtuosotechnologies.asaph.model.notation.NotationFactory getNotationFactoryForLocale(java.util.Locale locale)
          Get the NotationFactory for the given locale.
 java.util.Locale[] getRepresentativeLocales()
          Get an array of representative locales, used for choosing a NotationFactory.
 void setNotationFactoryForLocale(LocaleFilter filter, java.util.Locale representative, com.virtuosotechnologies.asaph.model.notation.NotationFactory factory)
          Register a NotationFactory to use for a given locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locales_

private java.util.Map locales_

defaultFactory_

private com.virtuosotechnologies.asaph.model.notation.NotationFactory defaultFactory_
Constructor Detail

NotationManagerImpl

NotationManagerImpl()
Method Detail

getNotationFactoryForLocale

public com.virtuosotechnologies.asaph.model.notation.NotationFactory getNotationFactoryForLocale(java.util.Locale locale)
Get the NotationFactory for the given locale. If called multiple times for the same locale, it will return the same NotationFactory object.

Specified by:
getNotationFactoryForLocale in interface NotationManager

setNotationFactoryForLocale

public void setNotationFactoryForLocale(LocaleFilter filter,
                                        java.util.Locale representative,
                                        com.virtuosotechnologies.asaph.model.notation.NotationFactory factory)
Register a NotationFactory to use for a given locale.

Specified by:
setNotationFactoryForLocale in interface NotationManager

getRepresentativeLocales

public java.util.Locale[] getRepresentativeLocales()
Get an array of representative locales, used for choosing a NotationFactory. Commonly used to build guis.

Specified by:
getRepresentativeLocales in interface NotationManager