org.apache.shindig.gadgets.variables
Class BidiSubstituter

java.lang.Object
  extended by org.apache.shindig.gadgets.variables.BidiSubstituter
All Implemented Interfaces:
Substituter

public class BidiSubstituter
extends Object
implements Substituter

Provides static hangman substitutions for bidirectional language support. Useful for generating internationalized layouts using CSS.


Field Summary
static String DIR
           
static String END_EDGE
           
static String LEFT
           
static String LTR
           
static String REVERSE_DIR
           
static String RIGHT
           
static String RTL
           
static String START_EDGE
           
 
Constructor Summary
BidiSubstituter(MessageBundleFactory messageBundleFactory)
           
 
Method Summary
 void addSubstitutions(Substitutions substituter, GadgetContext context, GadgetSpec spec)
          Add the substitutions from this Substituter to the Substitutions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_EDGE

public static final String START_EDGE
See Also:
Constant Field Values

END_EDGE

public static final String END_EDGE
See Also:
Constant Field Values

DIR

public static final String DIR
See Also:
Constant Field Values

REVERSE_DIR

public static final String REVERSE_DIR
See Also:
Constant Field Values

RIGHT

public static final String RIGHT
See Also:
Constant Field Values

LEFT

public static final String LEFT
See Also:
Constant Field Values

RTL

public static final String RTL
See Also:
Constant Field Values

LTR

public static final String LTR
See Also:
Constant Field Values
Constructor Detail

BidiSubstituter

@Inject
public BidiSubstituter(MessageBundleFactory messageBundleFactory)
Method Detail

addSubstitutions

public void addSubstitutions(Substitutions substituter,
                             GadgetContext context,
                             GadgetSpec spec)
                      throws GadgetException
Description copied from interface: Substituter
Add the substitutions from this Substituter to the Substitutions.

Specified by:
addSubstitutions in interface Substituter
Parameters:
substituter - container for the new substitutions, containing any existing substitutions
context - the context in which this gadget is being rendered
spec - the gadget specification being substituted
Throws:
GadgetException - when there has been a general error adding substitutions


Copyright © 2007-2012. All Rights Reserved.