Examples of AbstractSelect


Examples of com.vaadin.ui.AbstractSelect

      grid.addComponent(searchComponent, 0, 1);
    }
  }
 
  protected void addSelectComponent() {
    AbstractSelect select = createSelectComponent();
    grid.addComponent(select, 0, 2);
  }
View Full Code Here

Examples of com.vaadin.ui.AbstractSelect

      grid.addComponent(searchComponent, 0, 1);
    }
  }
 
  protected void addSelectComponent() {
    AbstractSelect select = createSelectComponent();
    if (select != null) {
      grid.addComponent(select, 0, 2);
    }
  }
View Full Code Here

Examples of com.vaadin.ui.AbstractSelect

    }

    private <T extends Field> T createEnumField(Class<?> type,
            Class<T> fieldType) {
        if (AbstractSelect.class.isAssignableFrom(fieldType)) {
            AbstractSelect s = createCompatibleSelect((Class<? extends AbstractSelect>) fieldType);
            populateWithEnumData(s, (Class<? extends Enum>) type);
            return (T) s;
        }

        return null;
View Full Code Here

Examples of com.vaadin.ui.AbstractSelect

        return null;
    }

    protected AbstractSelect createCompatibleSelect(
            Class<? extends AbstractSelect> fieldType) {
        AbstractSelect select;
        if (fieldType.isAssignableFrom(ListSelect.class)) {
            select = new ListSelect();
            select.setMultiSelect(false);
        } else if (fieldType.isAssignableFrom(NativeSelect.class)) {
            select = new NativeSelect();
        } else if (fieldType.isAssignableFrom(OptionGroup.class)) {
            select = new OptionGroup();
            select.setMultiSelect(false);
        } else if (fieldType.isAssignableFrom(Table.class)) {
            Table t = new Table();
            t.setSelectable(true);
            select = t;
        } else {
            select = new ComboBox(null);
        }
        select.setImmediate(true);
        select.setNullSelectionAllowed(false);

        return select;
    }
View Full Code Here

Examples of org.richfaces.component.AbstractSelect

        @ResourceDependency(library = "org.richfaces", name = "select.ecss") })
public class SelectRendererBase extends InputRendererBase implements MetaComponentRenderer {
    public static final String ITEM_CSS = "rf-sel-opt";

    public JSReference getClientFilterFunction(UIComponent component) {
        AbstractSelect select = (AbstractSelect) component;
        String clientFilter = (String) select.getAttributes().get("clientFilterFunction");
        if (clientFilter != null && clientFilter.length() != 0) {
            return new JSReference(clientFilter);
        }

        return null;
View Full Code Here

Examples of org.richfaces.component.AbstractSelect

        return null;
    }

    @Override
    protected void doDecode(FacesContext context, UIComponent component) {
        AbstractSelect select = (AbstractSelect) component;
        if (InputUtils.isDisabled(select)) {
            return;
        }
        super.doDecode(context, component);
        Map<String, String> requestParameters = context.getExternalContext().getRequestParameterMap();
View Full Code Here

Examples of org.richfaces.component.AbstractSelect

        }
        return width;
    }

    public String encodeHeightAndWidth(UIComponent component) {
        AbstractSelect select = (AbstractSelect) component;

        String height = getListHeight(select);
        if (!"auto".equals(height)) {
            height = (height != null && height.trim().length() != 0) ? ("height: " + height) : "";
        } else {
View Full Code Here

Examples of org.richfaces.component.AbstractSelect

        return concatStyles(height, width);
    }

    public String getListCss(UIComponent component) {
        AbstractSelect inplaceSelect = (AbstractSelect) component;
        String css = inplaceSelect.getListClass();
        css = (css != null) ? concatClasses("rf-sel-lst-cord", css) : "rf-sel-lst-cord";
        return css;
    }
View Full Code Here

Examples of org.richfaces.component.AbstractSelect

    public boolean isAutocomplete(UIComponent component) {
        if (! (component instanceof AbstractSelect)) {
            return false;
        }
        AbstractSelect select = (AbstractSelect) component;
        return select.getAutocompleteMethod() != null || select.getAutocompleteList() != null;
    }
View Full Code Here

Examples of org.richfaces.component.AbstractSelect

        @ResourceDependency(library = "org.richfaces", name = "select.ecss") })
public class SelectRendererBase extends InputRendererBase {
    public static final String ITEM_CSS = "rf-sel-opt";

    public JSReference getClientFilterFunction(UIComponent component) {
        AbstractSelect select = (AbstractSelect) component;
        String clientFilter = (String) select.getAttributes().get("clientFilterFunction");
        if (clientFilter != null && clientFilter.length() != 0) {
            return new JSReference(clientFilter);
        }

        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.