[isidorus-cvs] r912 - 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
Thu Sep 15 13:20:13 UTC 2011


Author: lgiessmann
Date: Thu Sep 15 06:20:12 2011
New Revision: 912

Log:
gdl-frontend: Widgets: added the style for the create new button

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.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:01:45 2011	(r911)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java	Thu Sep 15 06:20:12 2011	(r912)
@@ -37,10 +37,13 @@
 	private Button createNewButton = new Button("create new");
 	private PsiContainer psiContainer = null;
 	private GdlPanel gdlPanel = null;
+	private final String GDL_PANEL_STYLE_NAME = "gdl_panel";
+	private final String CREATE_NEW_BUTTON_STYLE_NAME = "create_new_button";
 	
 	
 	@Override
 	public void onModuleLoad() {
+		this.createNewButton.addStyleName(this.CREATE_NEW_BUTTON_STYLE_NAME);
 		try{
 			GdlPanel.addClickHandler("hash_object_reset_button_id", new ResetClickHandler());
 			this.psiContainer = new PsiContainer(new PsiClickHandler());
@@ -52,7 +55,6 @@
 		
 		RootPanel.get("GWT_Content").add(this.mainPanel);
 		mainPanel.add(this.navigationPanel);
-		mainPanel.setBorderWidth(1);
 		mainPanel.setPixelSize(1024, 700);
 		navigationPanel.add(createNewButton);
 		this.requestHashObjectPsis();
@@ -84,12 +86,13 @@
 				if(HashObjectUi.this.gdlPanel != null) HashObjectUi.this.gdlPanel.removeFromParent();
 				ArrayList<Pair<String, TopicIdentifierTypes>> topicsToCreate = new ArrayList<Pair<String, TopicIdentifierTypes>>();
 				topicsToCreate.add(new Pair<String, TopicIdentifierTypes>(IsidorusConstants.HASH_OBJECT_PSI, TopicIdentifierTypes.SubjectIdentifier));
-				HashObjectUi.this.gdlPanel = new GdlPanel(null, topicsToCreate, 400, 400);
+				HashObjectUi.this.gdlPanel = new GdlPanel(null, topicsToCreate, 362, 160);
 				HashObjectUi.this.mainPanel.add(gdlPanel);
 				gdlPanel.setTmEngine(new JtmsTmEngine());
 				gdlPanel.setLoadSchemaCallback(new LoadSchemaCallback());
 				gdlPanel.setCommitCallback(new CommitCallback());
 				gdlPanel.setDeleteCallback(new DeleteCallback());
+				gdlPanel.addStyleName(HashObjectUi.this.GDL_PANEL_STYLE_NAME);
 				gdlPanel.loadSchema();
 			}catch(Exception e){
 				e.printStackTrace();
@@ -108,13 +111,14 @@
 				Label source = (Label)obj;				
 				try{
 					if(HashObjectUi.this.gdlPanel != null) HashObjectUi.this.gdlPanel.removeFromParent();
-					HashObjectUi.this.gdlPanel = new GdlPanel(new Pair<String, TopicIdentifierTypes>(source.getText(), TopicIdentifierTypes.SubjectIdentifier), null, 400, 400);
+					HashObjectUi.this.gdlPanel = new GdlPanel(new Pair<String, TopicIdentifierTypes>(source.getText(), TopicIdentifierTypes.SubjectIdentifier), null, 362, 160);
 					HashObjectUi.this.mainPanel.add(gdlPanel);
 					gdlPanel.setTmEngine(new JtmsTmEngine());
 					gdlPanel.setLoadSchemaCallback(new LoadSchemaCallback());
 					gdlPanel.setCommitCallback(new CommitCallback());
 					gdlPanel.setDeleteCallback(new DeleteCallback());
 					gdlPanel.loadSchema();
+					gdlPanel.addStyleName(HashObjectUi.this.GDL_PANEL_STYLE_NAME);
 					Window.scrollTo(0, 0);
 				}catch(Exception e){
 					e.printStackTrace();

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:01:45 2011	(r911)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/war/GDL_Widgets.css	Thu Sep 15 06:20:12 2011	(r912)
@@ -58,4 +58,14 @@
   margin-top: 5px;
   margin-bottom: 5px;
   background-color: rgb(134, 169, 203);
+}
+
+.gdl_panel {
+  margin-left:auto;
+  margin-right:0;
+  margin-top: 2em;	
+}
+
+.create_new_button {
+  margin-bottom: 2em;
 }
\ No newline at end of file




More information about the Isidorus-cvs mailing list