?? tdockpanel.java
字號:
/**
* package com.mc.tables.client;
*/
package com.mc.tables.client;
/**
* import lib
*/
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.DockPanel;
/**
* class TDockPanel extends DockPanel
* @author Administrator
* 添加背景色 和 背景圖片
*/
public class TDockPanel extends DockPanel{
public TDockPanel(){
super();
}
public Element getPanelBody(){
return this.getBody();
}
/**
* 設置背景圖片
* @param imageUrl 圖片的路徑位置
*/
public void setBackgroundImage(String imageUrl){
Element e = this.getTable();
DOM.setAttribute(e, "background", imageUrl);
}
/**
* 設置背景顏色
* @param color 顏色值 "#ffffff"
*/
public void setBackgroundColor(String color){
Element e = this.getTable();
DOM.setStyleAttribute(e, "background", color);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -