Package org.cishell.reference.gui.guibuilder.swt.builder

Examples of org.cishell.reference.gui.guibuilder.swt.builder.GUIComponent


       
        setupGUI();

        for (AttributeDefinition attribute :
            this.objectClassDefinition.getAttributeDefinitions(ObjectClassDefinition.ALL)) {
            GUIComponent component = ComponentProvider.getInstance().createComponent(attribute);

            component.setAttributeDefinition(attribute);
            component.createGUI(this.parameterArea, style);
            this.idToComponentMap.put(attribute.getID(), component);
            component.addUpdateListener(this);
           
            Object value = component.getValue();
            String valid = component.validate();
           
            if ((value != null) && ((valid == null) || (valid.length() == 0))) {
                this.enteredResponses.put(component.getAttributeDefinition().getID(), value);   
            }
        }
       
        setScrollDimensions(this.scrollingArea, this.parameterArea);
       
View Full Code Here


    public ObjectClassDefinition getObjectClassDefinition() {
        return this.objectClassDefinition;
    }
   
    public Object getResponse(String id) {
        GUIComponent component = this.idToComponentMap.get(id);

        if (component != null) {
          return component.getValue();
        } else {
          return null;
        }
//        return component == null ? null : component.getValue();
    }
View Full Code Here

    public String validate() {
        String totalValid = "";

        for (AttributeDefinition attribute : this.objectClassDefinition.getAttributeDefinitions(
            ObjectClassDefinition.REQUIRED)) {
            GUIComponent component = this.idToComponentMap.get(attribute.getID());
            String valid = component.validate();

            if ((valid != null) && (valid.length() > 0)) {
                totalValid += "\"" + valid + "\"; ";
            }
        }
View Full Code Here

       
        return panel;
    }
   
    protected synchronized void addComponent(int position) {
        GUIComponent component = ComponentProvider.getInstance().createBasicComponent(attribute);
        Control control = component.createGUI(panel, style);
       
       
       
        componentList.add(component);
        controlList.add(control);
View Full Code Here

TOP

Related Classes of org.cishell.reference.gui.guibuilder.swt.builder.GUIComponent

Copyright © 2018 www.massapicom. 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.