Sha256: f5d7b127407afbb0382d108e07365115f3ae539defaff478a9696b6e30e7a4e7
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
/** * Sencha GXT 3.1.1 - Sencha for GWT * Copyright(c) 2007-2014, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.dldinternet.aws.cfn.stacker.desktopapp.client.utility; import com.google.gwt.user.client.ui.HasWidgets; import com.sencha.gxt.widget.core.client.form.FieldLabel; import com.sencha.gxt.widget.core.client.form.FormPanel.LabelAlign; import com.sencha.gxt.widget.core.client.form.FormPanelHelper; import java.util.List; public class Utility { public static void alignLabels(LabelAlign labelAlign, HasWidgets panel) { List<FieldLabel> labels = FormPanelHelper.getFieldLabels(panel); for (FieldLabel label : labels) { label.setLabelAlign(labelAlign); } } public static String capitalize(String value) { int length = value.length(); StringBuilder s = new StringBuilder(length); for (int i = 0; i < length; i++) { char c = value.charAt(i); if (i == 0) { c = Character.toUpperCase(c); } else { c = Character.toLowerCase(c); } s.append(c); } return s.toString(); } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws-cfn-stacker-0.0.6 | ui/src/com/dldinternet/aws/cfn/stacker/desktopapp/client/utility/Utility.java |