Ignore:
Timestamp:
10/13/11 13:21:32 (14 years ago)
Author:
lgiessmann
Message:

gdl-frontend: Widgets: started to implement the constriant support for: reifier-constraint, variant-name-constraint, scope-constraint, Type, Datatype, Variant-Name-Identifiers, Variant-Name-Refier, Variant-Name-Scope

Location:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/GDL_Widgets.gwt.xml

    r925 r999  
    1919 
    2020  <!-- Specify the app entry point class.                         -->
    21   <!-- <entry-point class='us.isidor.gdl.anaToMia.Widgets.base.TestClass'/> -->
     21  <entry-point class='us.isidor.gdl.anaToMia.Widgets.base.TestClass'/>
    2222  <!-- <entry-point class="us.isidor.gdl.anaToMia.Widgets.isidorus.HashObjectUi"/> -->
    2323  <!-- <ntry-point class="us.isidor.gdl.anaToMia.Widgets.isidorus.EnvironmentUi"/> -->
    24   <entry-point class='us.isidor.gdl.anaToMia.Widgets.isidorus.IsidorusEntryPoint'/>
     24  <!-- <entry-point class='us.isidor.gdl.anaToMia.Widgets.isidorus.IsidorusEntryPoint'/> -->
    2525 
    2626
  • TabularUnified branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt

    r878 r999  
    44* implement validation
    55* implement the handling of default-values
    6 * Implement TopicMaps data consumption
    7 * Implement TopicMaps data generation
    86* Implement HiddenValue
     7* Finalise Text and List-Box
     8* Implement all other elements
    99* Fix css-pseudo-class-handlers
  • TabularUnified branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java

    r853 r999  
    19381938                        for(int i = 0; i != ((Topic)this.receivedData).getOccurrences(occurrenceType).length(); ++i)
    19391939                                this.addSubItem(((Topic)this.receivedData).getOccurrences(occurrenceType).get(i).getValue());
     1940                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.TMCL.tmclReifierConstraint)){
     1941                        // TODO: implement: reifier-constraint
     1942                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.TMCL.tmclVariantNameConstraint)){
     1943                        // TODO: implement: variant-name-constraint
     1944                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.TMCL.tmclScopeConstraint)){
     1945                        // TODO: implement: scope-constraint
    19401946                } else if(TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlRolePlayer)){
    19411947                        if(!(receivedData instanceof Association)) throw new ExecutionException("the constraint " + TmHelper.getAnyIdOfTopic(this.getConstraint()) + " must be bound to an Association, but is: " + receivedData.getClass());
     
    19491955                                }
    19501956                        }
    1951                 }
    1952                 // TODO: implement type, variant, datatype, associations, roles, ... constraints
     1957                } else if(TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlType)){
     1958                        // TODO: implement: Type
     1959                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlDatatype)){
     1960                        // TODO: implement: Datatype
     1961                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlVariantNameIdentifiers)){
     1962                        // TODO: implement: Variant-Name-Identifiers
     1963                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlVariantNameReifier)){
     1964                        // TODO: implement: Variant-Name-Reifier
     1965                } else if (TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlVariantNameScope)){
     1966                        // TODO: implement: Variant-Name-Scope
     1967                } else {
     1968                        throw new InvalidGdlSchemaException("The constraint " + TmHelper.getAnyIdOfTopic(this.getConstraint()) + " is not suported to be bound to the value group instance " + TmHelper.getAnyIdOfTopic(this.getValueGroup()));
     1969                }
    19531970        }
    19541971       
  • TabularUnified branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TestClass.java

    r936 r999  
    22
    33
    4 import us.isidor.gdl.anaToMia.Widgets.isidorus.LoadScreenPanel;
    5 
     4import java.util.ArrayList;
     5import us.isidor.gdl.anaToMia.TmEngine.jtmsBasedEngine.JtmsTmEngine;
     6import us.isidor.gdl.anaToMia.Widgets.environment.Pair;
     7import us.isidor.gdl.anaToMia.Widgets.environment.TopicIdentifierTypes;
     8import us.isidor.gdl.anaToMia.Widgets.isidorus.CommitCallback;
     9import us.isidor.gdl.anaToMia.Widgets.isidorus.DeleteCallback;
     10import us.isidor.gdl.anaToMia.Widgets.isidorus.LoadSchemaCallback;
    611import com.google.gwt.core.client.EntryPoint;
    7 import com.google.gwt.user.client.Timer;
     12import com.google.gwt.dom.client.Element;
     13import com.google.gwt.dom.client.TextAreaElement;
     14import com.google.gwt.event.dom.client.ClickEvent;
     15import com.google.gwt.event.dom.client.ClickHandler;
     16import com.google.gwt.user.client.DOM;
     17import com.google.gwt.user.client.Window;
     18import com.google.gwt.user.client.ui.Button;
    819import com.google.gwt.user.client.ui.HorizontalPanel;
    920import com.google.gwt.user.client.ui.RootPanel;
     
    1526       
    1627        @Override
    17         public void onModuleLoad() {
    18                 final LoadScreenPanel lsp = new LoadScreenPanel("Title", "message");
    19                 RootPanel.get().add(lsp);
    20                
    21                 Timer t = new Timer() {
    22                         @Override
    23                         public void run() {
    24                                 lsp.removeFromParent();
    25                         }
    26                 };
    27                
    28                 t.schedule(5000);
    29                
    30                 /*
     28        public void onModuleLoad() {   
    3129                try{
    3230                        RootPanel.get("GWT_Content").add(mainPanel);
     
    4543                        gdlPanel = new GdlPanel(null, requestedTopicsToCreate);
    4644                         
    47                         gdlPanel.addClickHandler("hash_object_reset_button_id", new ClickHandler() {
     45                        GdlPanel.addClickHandler("hash_object_reset_button_id", new ClickHandler() {
    4846                                @Override
    4947                                public void onClick(ClickEvent event) {
     
    5755                        mainPanel.add(gdlPanel);
    5856                        gdlPanel.setTmEngine(new JtmsTmEngine());
    59                         gdlPanel.setLoadSchemaCallback(new LoadSchemaCallback());
    60                         gdlPanel.setCommitCallback(new CommitCallback());
    61                         gdlPanel.setDeleteCallback(new DeleteCallback());
     57                        gdlPanel.setLoadSchemaCallback(new LoadSchemaCallback(null));
     58                        gdlPanel.setCommitCallback(new CommitCallback(null));
     59                        gdlPanel.setDeleteCallback(new DeleteCallback(null));
    6260                       
    6361                        Button requestButton = new Button("load schema");
     
    7472                        Window.alert(">> e >> " + e.getClass() + " >> " + e.getMessage());
    7573                }
    76                 */
    7774        }
    7875}
Note: See TracChangeset for help on using the changeset viewer.