/** * Converts the given string from camel case. * <p> * For example, converts <code>fooBar1</code> into <code>Foo Bar 1</code>. Used primarily to * convert property names and paths into human-readable UI labels. */ public static String uncamelCase( String camelCase ) { return uncamelCase( camelCase, ' ' ); }
/** * Converts the given string from camel case. * <p> * For example, converts <code>fooBar1</code> into <code>Foo Bar 1</code>. Used primarily to * convert property names and paths into human-readable UI labels. */ public static String uncamelCase( String camelCase ) { return uncamelCase( camelCase, ' ' ); }
public String getLabelString( Map<String, String> attributes ) { if ( attributes == null ) { return ""; } // Explicit label String label = attributes.get( LABEL ); if ( label != null ) { // (may be forced blank) if ( "".equals( label ) ) { return null; } return label.trim(); } // Default name String name = attributes.get( NAME ); if ( name != null ) { return StringUtils.uncamelCase( name ); } return ""; }
public String getLabelString( Map<String, String> attributes ) { if ( attributes == null ) { return ""; } // Explicit label String label = attributes.get( LABEL ); if ( label != null ) { // (may be forced blank) if ( "".equals( label ) ) { return null; } return label.trim(); } // Default name String name = attributes.get( NAME ); if ( name != null ) { return StringUtils.uncamelCase( name ); } return ""; }
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
return StringUtils.uncamelCase( name );
String outcome = targetDir.isEmpty() || targetDir.startsWith("/") ? targetDir : "/" + targetDir; outcomeTargetLink.putAttribute("outcome", outcome + "/" + resource.getName() + "/search"); outcomeTargetLink.setValue(StringUtils.uncamelCase(resource.getName())); context.put("appName", StringUtils.uncamelCase(this.project.getRoot().getName())); context.put("navigation", writer.toString().trim()); context.put("targetDir", targetDir);
outcomeTargetLink.setValue(StringUtils.uncamelCase(resource.getName())); context.put("appName", StringUtils.uncamelCase(this.project.getProjectRoot().getName())); context.put("navigation", writer.toString().trim()); context.put("targetDir", targetDir);
context.put("beanName", beanName); context.put("ccEntity", ccEntity); context.put("entityName", StringUtils.uncamelCase(entity.getName())); setPrimaryKeyMetaData(context, entity);
rowAction.setValue( StringUtils.uncamelCase( actionName ) ); } else { rowAction.setValue( localizedKey );
rowAction.setValue( StringUtils.uncamelCase( actionName ) ); } else { rowAction.setValue( localizedKey );
addLink.putAttribute("action", StaticFacesUtils.wrapExpression(addExpression)); addLink.putAttribute("onclick", "if (document.getElementById(document.forms[0].id+':" + selectId + "').selectedIndex < 1) { alert('Must select a " + StringUtils.uncamelCase(simpleComponentType) + "'); return false; }");
addLink.putAttribute("action", StaticFacesUtils.wrapExpression(addExpression)); addLink.putAttribute("onclick", "if (document.getElementById(document.forms[0].id+':" + selectId + "').selectedIndex < 1) { alert('Must select a " + StringUtils.uncamelCase(simpleComponentType) + "'); return false; }");