本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel.setPixelSize方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.setPixelSize方法的具體用法?Java VerticalPanel.setPixelSize怎麽用?Java VerticalPanel.setPixelSize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.VerticalPanel
的用法示例。
在下文中一共展示了VerticalPanel.setPixelSize方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: makeFailureMessage
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
public Panel makeFailureMessage(String message, int width, int height, boolean decorated) {
VerticalPanel panel= new VerticalPanel();
HTML header = new HTML(getTitle());
Widget msg = GwtUtil.centerAlign(new HTML(message));
header.addStyleName("preview-title");
GwtUtil.setStyle(msg, "padding", "5px");
panel.add(header);
panel.add(msg);
panel.setPixelSize(width, height);
Panel retval= panel;
if (decorated) {
DecoratorPanel dp= new DecoratorPanel();
dp.setWidget(panel);
retval= dp;
}
return retval;
}
示例2: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(315, 400);
vPanel.setSpacing(5);
vPanel.add(createTopPanel());
return vPanel;
}
示例3: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(490, 400);
vPanel.setSpacing(5);
vPanel.add(createTopPanel());
vPanel.add(createBottomPanel());
return vPanel;
}
示例4: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(490, 420);
vPanel.setSpacing(5);
vPanel.add(createTopPanel());
vPanel.add(createBottomPanel());
return vPanel;
}
示例5: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(490, 420);
vPanel.setSpacing(5);
vPanel.add(createCompanyPanel());
vPanel.add(createGridPanel());
return vPanel;
}