[isidorus-cvs] r667 - in branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets: . button
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Fri Jul 22 17:39:05 UTC 2011
Author: lgiessmann
Date: Fri Jul 22 10:39:04 2011
New Revision: 667
Log:
gdl-frontend: Widgets: implemented GdlCheckBox
Added:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlInputButton.java
Modified:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlButton.java
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlCheckBox.java
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlRadioButton.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt Fri Jul 22 10:04:46 2011 (r666)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt Fri Jul 22 10:39:04 2011 (r667)
@@ -1,6 +1,5 @@
* Implement GdlButton(s)
* Implement GdlButton(s) positioning
-* change the GDL spec of GdlUnit => set a default constraint (or none)
* Implement TopicMaps data consumption
* Implement TopicMaps data generation
* ImplementGdlVisibleObject => (de)registerButtonCallback
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlButton.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlButton.java Fri Jul 22 10:04:46 2011 (r666)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlButton.java Fri Jul 22 10:39:04 2011 (r667)
@@ -5,9 +5,7 @@
import us.isidor.gdl.anaToMia.Widgets.environment.InvalidGdlSchemaException;
import us.isidor.gdl.anaToMia.Widgets.text.GdlTextObject;
-public abstract class GdlButton extends GdlTextObject {
- // TODO: implement
-
+public abstract class GdlButton extends GdlTextObject {
protected GdlButton(){
super();
}
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlCheckBox.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlCheckBox.java Fri Jul 22 10:04:46 2011 (r666)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlCheckBox.java Fri Jul 22 10:39:04 2011 (r667)
@@ -1,12 +1,11 @@
package us.isidor.gdl.anaToMia.Widgets.button;
+import com.google.gwt.user.client.ui.CheckBox;
import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Topic;
import us.isidor.gdl.anaToMia.Widgets.environment.ExecutionException;
import us.isidor.gdl.anaToMia.Widgets.environment.InvalidGdlSchemaException;
-public class GdlCheckBox extends GdlButton {
- // TODO: implement
-
+public class GdlCheckBox extends GdlInputButton {
protected GdlCheckBox(){
super();
}
@@ -14,5 +13,19 @@
public GdlCheckBox(Topic tmRepresentative) throws InvalidGdlSchemaException, ExecutionException{
super(tmRepresentative);
+ // TODO: create a check box for each tm construct
+ this.createcheckBox().setText("Check Box 1");
+ this.createcheckBox().setText("Check Box 2");
+ this.createcheckBox().setText("Check Box 3");
+ }
+
+
+
+ public CheckBox createcheckBox() throws InvalidGdlSchemaException, ExecutionException{
+ CheckBox cb = new CheckBox();
+ cb.setName(this.getGroupName());
+ this.addToContainerPanel(cb);
+ this.setGdlStyle(cb);
+ return cb;
}
}
Added: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlInputButton.java
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlInputButton.java Fri Jul 22 10:39:04 2011 (r667)
@@ -0,0 +1,21 @@
+package us.isidor.gdl.anaToMia.Widgets.button;
+
+import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Topic;
+import us.isidor.gdl.anaToMia.Widgets.environment.ExecutionException;
+import us.isidor.gdl.anaToMia.Widgets.environment.InvalidGdlSchemaException;
+
+public class GdlInputButton extends GdlButton {
+ protected GdlInputButton(){
+ super();
+ }
+
+
+ public GdlInputButton(Topic tmRepresentative) throws InvalidGdlSchemaException, ExecutionException{
+ super(tmRepresentative);
+ }
+
+
+ public String getGroupName() throws InvalidGdlSchemaException{
+ return this.getId() + "__RB__GROUP";
+ }
+}
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlRadioButton.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlRadioButton.java Fri Jul 22 10:04:46 2011 (r666)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/button/GdlRadioButton.java Fri Jul 22 10:39:04 2011 (r667)
@@ -6,7 +6,7 @@
import us.isidor.gdl.anaToMia.Widgets.environment.ExecutionException;
import us.isidor.gdl.anaToMia.Widgets.environment.InvalidGdlSchemaException;
-public class GdlRadioButton extends GdlButton {
+public class GdlRadioButton extends GdlInputButton {
protected GdlRadioButton(){
super();
}
@@ -21,12 +21,6 @@
}
-
- public String getGroupName() throws InvalidGdlSchemaException{
- return this.getId() + "__RB__GROUP";
- }
-
-
public RadioButton createRadioButton() throws InvalidGdlSchemaException, ExecutionException{
RadioButton rb = new RadioButton(this.getGroupName());
this.addToContainerPanel(rb);
More information about the Isidorus-cvs
mailing list