Lines Matching refs:prefix

76      * to a List of LazyStyles. Each LazyStyle has a reference to the prefix
81 * than one prefix defined for a given region. For example, both Button and
88 * prefix in a very fast manner. This is used in the "matches" method of
161 * <p>Registers the given region and prefix. The prefix, if it contains
163 * quoted sections, then the prefix refers to a generic component type.</p>
165 * <p>If the given region/prefix combo has already been registered, then
171 * @param prefix The UIDefault prefix. For example, could be ComboBox, or if
175 void register(Region region, String prefix) {
177 if (region == null || prefix == null) {
182 //Add a LazyStyle for this region/prefix to m.
186 styles.add(new LazyStyle(prefix));
189 //iterate over all the current styles and see if this prefix has
192 if (prefix.equals(s.prefix)) {
196 styles.add(new LazyStyle(prefix));
212 * for the best match, based on prefix. If a match was made, then return
440 * <li>Splitting the prefix specified in the constructor into its
447 * The prefix this LazyStyle was registered with. Something like
450 private String prefix;
456 * The various parts, or sections, of the prefix. For example,
457 * the prefix:
472 * @param prefix The prefix associated with this style. Cannot be null.
474 private LazyStyle(String prefix) {
475 if (prefix == null) {
477 "The prefix must not be null");
480 this.prefix = prefix;
488 //Thus, if the prefix ends with "cellRenderer", then remove all the
489 //previous dotted parts of the prefix name so that it becomes, for
493 String temp = prefix;
528 s = new NimbusStyle(prefix, c);
536 style = new NimbusStyle(prefix, null);
544 * for each part of the prefix the component hierarchy matches exactly.
592 * Given some dot separated prefix, split on the colons that are
595 * @param prefix
598 private List<String> split(String prefix) {
603 for (int i = 0; i < prefix.length(); i++) {
604 char c = prefix.charAt(i);
616 "Malformed prefix: " + prefix);
623 parts.add(prefix.substring(lastIndex, i));
627 if (lastIndex < prefix.length() - 1 && !inquotes
629 parts.add(prefix.substring(lastIndex));