home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.rock.table.QlickerDataSource;
-
- public class MetaPropValues implements QlickerDataSource {
- public static final String VALUES = "values";
- public static final String DEFAULT = "default";
- private String[] values;
- private String defaultValue;
-
- public MetaPropValues() {
- this(new String[]{Boolean.FALSE.toString(), Boolean.TRUE.toString()}, (String)null);
- }
-
- public MetaPropValues(String[] var1, String var2) {
- this.values = var1;
- if (var2 == null && var1 != null) {
- this.defaultValue = this.values[0];
- } else {
- this.defaultValue = var2;
- }
-
- }
-
- public Object getQlickerData(String var1, Object var2) {
- if (var1.equals("values")) {
- return this.values;
- } else {
- return var1.equals("default") ? this.defaultValue : null;
- }
- }
- }
-