org.eaglei.ui.gwt.instance.widgets
Class InstanceWidgetUtils

java.lang.Object
  extended by org.eaglei.ui.gwt.instance.widgets.InstanceWidgetUtils

public class InstanceWidgetUtils
extends java.lang.Object


Constructor Summary
InstanceWidgetUtils()
           
 
Method Summary
static java.lang.String capitalizeFirst(java.lang.String original)
           
static com.google.gwt.user.client.ui.Label createLabel(org.eaglei.model.EIEntity propertyEntity, java.lang.String definition, boolean isRequired)
           
static com.google.gwt.user.client.ui.Label createLabel(java.lang.String label, java.lang.String definition, boolean isRequired)
           
static java.lang.String formatText(java.lang.String value)
          Some field values that are retrieved from the repo have extra bit of data attached.
static java.lang.String getExtendedPropertyLabel(java.lang.String typeLabel, java.lang.String propertyName)
           
static java.lang.String insertBreaks(java.lang.String value)
           
static boolean isLabProperty(org.eaglei.model.EIClass range)
           
static boolean isLabProperty(org.eaglei.model.EIEntity range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceWidgetUtils

public InstanceWidgetUtils()
Method Detail

createLabel

public static com.google.gwt.user.client.ui.Label createLabel(org.eaglei.model.EIEntity propertyEntity,
                                                              java.lang.String definition,
                                                              boolean isRequired)
Parameters:
propertyEntity -
Returns:

createLabel

public static com.google.gwt.user.client.ui.Label createLabel(java.lang.String label,
                                                              java.lang.String definition,
                                                              boolean isRequired)

capitalizeFirst

public static java.lang.String capitalizeFirst(java.lang.String original)

formatText

public static java.lang.String formatText(java.lang.String value)
Some field values that are retrieved from the repo have extra bit of data attached. This method eliminates the unwanted data in the value.

Returns:
formatted value String

isLabProperty

public static boolean isLabProperty(org.eaglei.model.EIEntity range)

isLabProperty

public static boolean isLabProperty(org.eaglei.model.EIClass range)

getExtendedPropertyLabel

public static java.lang.String getExtendedPropertyLabel(java.lang.String typeLabel,
                                                        java.lang.String propertyName)

insertBreaks

public static java.lang.String insertBreaks(java.lang.String value)


Copyright © 2009-2011 Eagle-I. All Rights Reserved.