当前位置: 首页>>代码示例>>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;未经允许,请勿转载。