Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  *  Unless required by applicable law or agreed to in writing, software
  *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.wookie.util;
import  org.apache.wookie.beans.IWidget;
i18n formatting utilities The methods in this class can be used to generate i18n strings using CSS bidi properties for use in display. This involves inserting HTML tags containing CSS styling properties for text direction
public class WidgetFormattingUtils extends FormattingUtils{

Returns the CSS formatted i18n string for the widget name

Parameters:
name the Widget's Name
Returns:
a CSS-formatted i18n string
	public static String getFormattedWidgetName(IName name){
		return getFormatted(name.getDir(), name.getName());
	}
Returns the CSS formatted i18n string for the widget short name

Parameters:
name the Widget's Name
Returns:
a CSS-formatted i18n string
	public static String getFormattedWidgetShortName(IName name){
		return getFormatted(name.getDir(), name.getShort());
	}
Returns the CSS formatted i18n string for the widget version

Parameters:
widget the Widget
Returns:
a CSS-formatted i18n string
	public static String getFormattedWidgetVersion(IWidget widget){
		return getFormatted(widget.getDir(), widget.getVersion());
	}
Returns the CSS formatted i18n string for the widget description

Parameters:
description the Widget's description
Returns:
a CSS-formatted i18n string
	public static String getFormattedWidgetDescription(IDescription description){
		return getFormatted(description.getDir(), description.getDescription());
	}
Returns the CSS formatted i18n string for the widget license

Parameters:
license the Widget's License
Returns:
a CSS-formatted i18n string
	public static String getFormattedWidgetLicense(ILicense license){
		return getFormatted(license.getDir(), license.getLicenseText());
	}
New to GrepCode? Check out our FAQ X