Project Wonder 5.0.0.8787

er.extensions.components
Class ERXLocalizationEditor

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by er.extensions.components.ERXLocalizationEditor
All Implemented Interfaces:
WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable

public class ERXLocalizationEditor
extends WOComponent

Editor page for the localized files that are supplied in your settings. Note that the "save" overwrites the files in the bundle, so be sure to have it pointed to the original file and not the built bundle.

Author:
ak
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 NSMutableDictionary currentEntry
           
 String currentFilename
           
 String currentFramework
           
 String currentLanguage
           
 NSMutableArray data
           
 WODisplayGroup displayGroup
           
 String keyToAdd
           
 String selectedFilename
           
 String selectedFramework
           
 String UNSET
           
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations, MINUSONE
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
ERXLocalizationEditor(WOContext context)
           
 
Method Summary
 WOComponent addEntry()
          Add an entry to the array of objects
 NSArray availableLanguages()
           
 void awake()
           
 int colspanForBatchNavigation()
           
 String currentValue()
           
 void editFramework()
           
 boolean fileExistsInLanguage()
           
 NSArray fileNamesToWatch()
           
 NSArray frameworkSearchPath()
           
 boolean hasCurrentValue()
           
 String highlightClass()
          Returns a colored border style for unset values
 boolean isLargeEntry()
           
 WOComponent removeEntry()
          Removes the current entry from all languages
 void saveFramework()
           
 void setCurrentValue(String value)
           
 WOComponent sortEntries()
          Sorts the entries ascending with the selected language, brings empty entries to the first batches
 URL urlForCurrentFile()
           
 URL urlForSelectedFile()
           
 String valueCellWidth()
          Returns a width for the current columns
 String valueComponentName()
           
 
Methods inherited from class com.webobjects.appserver.WOComponent
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentLanguage

public String currentLanguage

currentFilename

public String currentFilename

currentFramework

public String currentFramework

data

public NSMutableArray data

currentEntry

public NSMutableDictionary currentEntry

selectedFramework

public String selectedFramework

selectedFilename

public String selectedFilename

UNSET

public String UNSET

displayGroup

public WODisplayGroup displayGroup

keyToAdd

public String keyToAdd
Constructor Detail

ERXLocalizationEditor

public ERXLocalizationEditor(WOContext context)
Method Detail

awake

public void awake()
Overrides:
awake in class WOComponent

availableLanguages

public NSArray availableLanguages()

frameworkSearchPath

public NSArray frameworkSearchPath()

fileNamesToWatch

public NSArray fileNamesToWatch()

urlForCurrentFile

public URL urlForCurrentFile()

urlForSelectedFile

public URL urlForSelectedFile()

fileExistsInLanguage

public boolean fileExistsInLanguage()

editFramework

public void editFramework()

isLargeEntry

public boolean isLargeEntry()

highlightClass

public String highlightClass()
Returns a colored border style for unset values


valueCellWidth

public String valueCellWidth()
Returns a width for the current columns


colspanForBatchNavigation

public int colspanForBatchNavigation()

valueComponentName

public String valueComponentName()

saveFramework

public void saveFramework()
                   throws IOException
Throws:
IOException

hasCurrentValue

public boolean hasCurrentValue()

currentValue

public String currentValue()

setCurrentValue

public void setCurrentValue(String value)

sortEntries

public WOComponent sortEntries()
Sorts the entries ascending with the selected language, brings empty entries to the first batches


addEntry

public WOComponent addEntry()
Add an entry to the array of objects


removeEntry

public WOComponent removeEntry()
Removes the current entry from all languages


Last updated: Wed, Jan 7, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.