[isidorus-cvs] r913 - in branches/gdl-frontend/src/anaToMia/GDL_Widgets: src/us/isidor/gdl/anaToMia/Widgets/isidorus war
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Fri Sep 16 07:21:17 UTC 2011
Author: lgiessmann
Date: Fri Sep 16 00:21:15 2011
New Revision: 913
Log:
gdl-frontend: Widgets: finalised the page for http://textgrid.org/serviceregistry/model/types/Hash-Object
Modified:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/PsiContainer.java
branches/gdl-frontend/src/anaToMia/GDL_Widgets/war/GDL_Widgets.css
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java Thu Sep 15 06:20:12 2011 (r912)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java Fri Sep 16 00:21:15 2011 (r913)
@@ -44,6 +44,7 @@
@Override
public void onModuleLoad() {
this.createNewButton.addStyleName(this.CREATE_NEW_BUTTON_STYLE_NAME);
+ DOM.setStyleAttribute(this.createNewButton.getElement(), "marginBottom", "1em");
try{
GdlPanel.addClickHandler("hash_object_reset_button_id", new ResetClickHandler());
this.psiContainer = new PsiContainer(new PsiClickHandler());
@@ -62,7 +63,17 @@
public void resetPage(){
- // TODO: implement
+ if(gdlPanel != null) this.gdlPanel.removeFromParent();
+ if(this.psiContainer != null) this.psiContainer.removeFromParent();
+ if(this.createNewButton != null) this.createNewButton.removeFromParent();
+
+ try{
+ this.psiContainer = new PsiContainer(new PsiClickHandler());
+ }catch(Exception e){
+ Window.alert("could not create web page, becuase: (" + e.getClass() + ") " + e.getMessage());
+ this.resetPage();
+ }
+ this.requestHashObjectPsis();
}
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/PsiContainer.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/PsiContainer.java Thu Sep 15 06:20:12 2011 (r912)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/PsiContainer.java Fri Sep 16 00:21:15 2011 (r913)
@@ -19,6 +19,11 @@
private final String PSI_LABEL_STYLE_CLASS = "psi_label";
+ public void removeFromParent(){
+ this.containerPanel.removeFromParent();
+ }
+
+
public PsiContainer(ClickHandler labelClikcHandler) throws ExecutionException{
if(labelClikcHandler == null) throw new ExecutionException("labelClickHandler must not be null");
this.lblClickHandler = labelClikcHandler;
@@ -40,6 +45,7 @@
break;
}
}
+
if(widgetIdx == this.containerPanel.getWidgetCount()) this.containerPanel.add(lbl);
if(this.lblClickHandler != null)lbl.addClickHandler(this.lblClickHandler);
}
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/war/GDL_Widgets.css
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/war/GDL_Widgets.css Thu Sep 15 06:20:12 2011 (r912)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/war/GDL_Widgets.css Fri Sep 16 00:21:15 2011 (r913)
@@ -10,6 +10,7 @@
text-align: center;
}
+
.sendButton {
display: block;
font-size: 16pt;
@@ -60,6 +61,12 @@
background-color: rgb(134, 169, 203);
}
+
+image {
+ border-style: none;
+}
+
+
.gdl_panel {
margin-left:auto;
margin-right:0;
More information about the Isidorus-cvs
mailing list