Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 26 | Rev 28 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26 Rev 27
Line 20... Line 20...
20
import com.google.gwt.json.client.JSONParser;
20
import com.google.gwt.json.client.JSONParser;
21
import com.google.gwt.json.client.JSONString;
21
import com.google.gwt.json.client.JSONString;
22
import com.google.gwt.json.client.JSONValue;
22
import com.google.gwt.json.client.JSONValue;
23
import com.google.gwt.user.client.HTTPRequest;
23
import com.google.gwt.user.client.HTTPRequest;
24
import com.google.gwt.user.client.ResponseTextHandler;
24
import com.google.gwt.user.client.ResponseTextHandler;
25
import com.google.gwt.user.client.Window;
-
 
26
import com.google.gwt.user.client.ui.HorizontalPanel;
-
 
27
import com.google.gwt.user.client.ui.Image;
25
import com.google.gwt.user.client.ui.Image;
28
import com.google.gwt.user.client.ui.PopupPanel;
26
import com.google.gwt.user.client.ui.PopupPanel;
29
import com.google.gwt.user.client.ui.VerticalPanel;
27
import com.google.gwt.user.client.ui.VerticalPanel;
Line 30... Line 28...
30
 
28
 
Line 97... Line 95...
97
  
95
  
98
  public void setImageTop(String url) {
96
  public void setImageTop(String url) {
99
		if (url.compareTo("null")!=0) {
97
		if (url.compareTo("null")!=0) {
Line 100... Line 98...
100
//			setPopupPosition(3*(Window.getClientWidth()/4), mediator.getInventoryItemList().getAbsoluteTop()+50);	
98
//			setPopupPosition(3*(Window.getClientWidth()/4), mediator.getInventoryItemList().getAbsoluteTop()+50);	
101
			
99
			
102
		  setPopupPosition(mediator.getLeftPanel().getAbsoluteLeft()+10, mediator.getLeftPanel().getAbsoluteTop()  + (mediator.getLeftPanel().getOffsetHeight()/2));
100
		  setPopupPosition(mediator.getLeftPanel().getAbsoluteLeft()+10, mediator.getLeftPanel().getAbsoluteTop()  + (mediator.getLeftPanel().getOffsetHeight()/2)+50);
103
		  show();
101
		  show();
104
		  imageTop.setUrl(url);
102
		  imageTop.setUrl(url);
105
		}
103
		}
Line 111... Line 109...
111
 
109
 
112
  
110
  
113
  public void setImageBottom(String url) {
111
  public void setImageBottom(String url) {
114
		if (url.compareTo("null")!=0) {
112
		if (url.compareTo("null")!=0) {
115
//			setPopupPosition(3*(Window.getClientWidth()/4), mediator.getInventoryItemList().getAbsoluteTop()+50);	
113
//			setPopupPosition(3*(Window.getClientWidth()/4), mediator.getInventoryItemList().getAbsoluteTop()+50);	
116
	  setPopupPosition(mediator.getLeftPanel().getAbsoluteLeft()+10, mediator.getLeftPanel().getAbsoluteTop()  + (mediator.getLeftPanel().getOffsetHeight()/2));
114
	  setPopupPosition(mediator.getLeftPanel().getAbsoluteLeft()+10, mediator.getLeftPanel().getAbsoluteTop()  + (mediator.getLeftPanel().getOffsetHeight()/2) + 50);
117
		  show();
115
		  show();
118
		  imageBottom.setUrl(url);
116
		  imageBottom.setUrl(url);
119
		}
117
		}