src/org/tiefaces/components/websheet/utility/ColorUtility.java
private static int getThemeIndexFromName(final String idxName) {

		final String[] idxArray = { "bg1", "tx1", "bg2", "tx2", "accent1",
				"accent2", "accent3", "accent4", "accent5", "accent6",
				"hlink", "folHlink" };
		try {
			for (int i = 0; i < idxArray.length; i++) {
				if (idxArray[i].equalsIgnoreCase(idxName)) {
					return i;
				}
			}
		} catch (Exception ex) {
			LOG.log(Level.SEVERE, "error in getThemeIndexFromName :"
					+ ex.getLocalizedMessage(), ex);
		}

		return -1;
	}
private static int getThemeIndexFromName(final String idxName) {

		final String[] idxArray = { "bg1", "tx1", "bg2", "tx2", "accent1",
				"accent2", "accent3", "accent4", "accent5", "accent6",
				"hlink", "folHlink" };
		try {
			for (int i = 0; i < idxArray.length; i++) {
				if (idxArray[i].equalsIgnoreCase(idxName)) {
					return i;
				}
			}
		} catch (Exception ex) {
			LOG.log(Level.SEVERE, "error in getThemeIndexFromName :"
					+ ex.getLocalizedMessage(), ex);
		}

		return -1;
	}
Return index number for giving index name. e.g. tx1 return 1.

@param idxName
theme index name.
@return index number.