本文整理汇总了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;
}
示例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());
}
}
示例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);
}
示例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);
}
}
示例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;
}
示例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");
}