當前位置: 首頁>>代碼示例>>Java>>正文


Java GWTHTMLUtils類代碼示例

本文整理匯總了Java中com.akjava.gwt.lib.client.GWTHTMLUtils的典型用法代碼示例。如果您正苦於以下問題:Java GWTHTMLUtils類的具體用法?Java GWTHTMLUtils怎麽用?Java GWTHTMLUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GWTHTMLUtils類屬於com.akjava.gwt.lib.client包,在下文中一共展示了GWTHTMLUtils類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createEditingClothSkinMaterial

import com.akjava.gwt.lib.client.GWTHTMLUtils; //導入依賴的package包/類
protected MeshPhongMaterial createEditingClothSkinMaterial(){
	MeshPhongMaterial material=THREE.MeshPhongMaterial(GWTParamUtils.MeshPhongMaterial()
			.skinning(gpuSkinning)
			.color(editingClothModelSkinnedMeshColor)
			.shading(THREE.FlatShading)
			.transparent(true)
			.alphaTest(0.1)
			.side(textureSide)
			.displacementScale(GWTHTMLUtils.parameterDouble("displacementScale", 0.1))
			);
	
	if(editingClothModelTextureUpload.isUploaded()){
		Texture texture=THREE.Texture(editingClothModelTextureUpload.getLastUploadImage());
		texture.setNeedsUpdate(true);
		material.setMap(texture);
		material.getColor().setHex(0xffffff);
	}
	material.setDisplacementMap(editingClothModelDisplacementUpload.createTextureFromUpload(null));
	return material;
}
 
開發者ID:akjava,項目名稱:GWTModelWeight,代碼行數:21,代碼來源:GWTModelWeight.java

示例2: syncOutput

import com.akjava.gwt.lib.client.GWTHTMLUtils; //導入依賴的package包/類
/**
* syncOutput is integrate for standard html web-apps
*/
  public void syncOutput(){//TODO async
  	
  		//set values for html-form hidden
  		if(syncHtmlKey.isPresent()){
  			String html=htmlArea.getText();
  			GWTHTMLUtils.setValueAttributeById(syncHtmlKey.get(), html);
  		}
  		
      	String text=textArea.getText();
  		if(syncTextKey.isPresent()){
  			GWTHTMLUtils.setValueAttributeById(syncTextKey.get(), text);
  		}
  		
  		//store to session-storage for back-button
  		try {
  			sessionControler.setValue(KEY_SESSION, textArea.getText());
  		} catch (StorageException e) {
  			e.printStackTrace();
  		}
  		
  		if(syncOutputListener!=null){
  			syncOutputListener.syncOutput(textArea.getText());
  		}
  }
 
開發者ID:akjava,項目名稱:GWTMarkdownEditor,代碼行數:28,代碼來源:MarkdownEditor.java

示例3: createBaseCharacterModelSkin

import com.akjava.gwt.lib.client.GWTHTMLUtils; //導入依賴的package包/類
protected void createBaseCharacterModelSkin() {
	Texture texture=baseCharacterModelTextureUpload.createTextureFromUpload(basicCharacterModelMapTexture);
	Texture displacement=baseCharacterModelDisplacementUpload.createTextureFromUpload(basicCharacterModelDisplacementTexture);
	
	
	MeshPhongMaterial material=THREE.MeshPhongMaterial(GWTParamUtils.MeshPhongMaterial()
			.skinning(gpuSkinning)
			.map(texture)
			.transparent(true)
			.alphaTest(0.1)
			.side(textureSide)
			.displacementMap(displacement)
			.displacementScale(GWTHTMLUtils.parameterDouble("displacementScale", 0.1))
			);
	
	if(baseCharacterModelSkinnedMesh!=null){
		scene.remove(baseCharacterModelSkinnedMesh);
	}
	Geometry geometry=baseCharacterModelGeometry.clone();
	baseCharacterModelGeometry.gwtSoftCopyToWeightsAndIndicesAndBone(geometry);
	
	baseCharacterModelSkinnedMesh = THREE.SkinnedMesh(geometry, material);
	scene.add(baseCharacterModelSkinnedMesh);
	
	
	
	mixer=THREE.AnimationMixer(baseCharacterModelSkinnedMesh);
}
 
開發者ID:akjava,項目名稱:GWTModelWeight,代碼行數:29,代碼來源:GWTModelWeight.java

示例4: onModuleLoad

import com.akjava.gwt.lib.client.GWTHTMLUtils; //導入依賴的package包/類
public void onModuleLoad() {
	if(GWTHTMLUtils.isExistPanel("gwtmarkdowneditorcontainer")){
		MarkdownEditor editor=createMarkdownEditortByHtml();
		GWTHTMLUtils.getPanelIfExist("gwtmarkdowneditorcontainer").add(editor);
		//trying fix scroll bugs,seems not bad
		editor.getTextArea().setFocus(true); //if true scroll problem will fixed,but window scroll to there.
		Window.scrollTo(0, -1000);
		editor.getTextArea().setFocus(false);
	}
	
}
 
開發者ID:akjava,項目名稱:GWTMarkdownEditor,代碼行數:12,代碼來源:GWTMarkdownEditor.java

示例5: createMarkdownEditortByHtml

import com.akjava.gwt.lib.client.GWTHTMLUtils; //導入依賴的package包/類
public static MarkdownEditor createMarkdownEditortByHtml(){
	  boolean readOnly=GWTHTMLUtils.isExistPanel(PEOPERTY_READ_ONLY);
      
      String defaultValue=GWTHTMLUtils.getInputValueById(PEOPERTY_DEFAULT_ID, "");
      String session_id=GWTHTMLUtils.getInputValueById(PEOPERTY_SESSION_ID,"");
      
      MarkdownEditor editor= new MarkdownEditor(readOnly, session_id, defaultValue);
      
     
      editor.setSyncTextKey(Optional.of(PEOPERTY_OUTPUT_TEXT));
      editor.setSyncHtmlKey(Optional.of(PEOPERTY_OUTPUT_HTML));
      
      return editor;
}
 
開發者ID:akjava,項目名稱:GWTMarkdownEditor,代碼行數:15,代碼來源:GWTMarkdownEditor.java

示例6: initializeOthers

import com.akjava.gwt.lib.client.GWTHTMLUtils; //導入依賴的package包/類
@Override
protected void initializeOthers(WebGLRenderer renderer) {
	LogUtils.log("Model Weight:"+version);
	
	//Window.open("text/plain:test.txt:"+url, "test", null);
	
	storageControler = new StorageControler();
	canvas.setClearColor(0xaaaaaa);//canvas has margin?
	
	
	
	scene.add(THREE.AmbientLight(0x444444));
	Light pointLight = THREE.DirectionalLight(0xaaaaaa,1);
	pointLight.setPosition(0, 10, 300);
	scene.add(pointLight);
	
	Light pointLight2 = THREE.DirectionalLight(0xaaaaaa,1);//for fix back side dark problem
	pointLight2.setPosition(0, 10, -300);
	scene.add(pointLight2);
	
	mouseClickCatcher=THREE.Mesh(THREE.PlaneGeometry(100, 100, 10, 10),
			
			THREE.MeshBasicMaterial(GWTParamUtils.MeshBasicMaterial().color(0xffff00).wireframe(true)
					.visible(false)));//hide and catch mouse
	mouseClickCatcher.setVisible(true); //now Ray only check visible object and to hide use material's visible
	
	scene.add(mouseClickCatcher);
	
	nearCamera=0.001;
	updateCamera(scene,screenWidth , screenHeight);
	
	cameraZ=4;
	
	
	
	
	
	autoUpdateCameraPosition=false;
	
	//showControl();

	
	
	mouseSelector = new Object3DMouseSelecter(renderer, camera);
	
	
	//warning not loaded
	basicCharacterModelDisplacementTexture=GWTHTMLUtils.parameterImage("displacement");
	basicCharacterModelMapTexture=GWTHTMLUtils.parameterImage("texture");
}
 
開發者ID:akjava,項目名稱:GWTModelWeight,代碼行數:51,代碼來源:GWTModelWeight.java


注:本文中的com.akjava.gwt.lib.client.GWTHTMLUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。