本文整理汇总了Java中com.google.gwt.user.client.ui.HorizontalPanel.setHeight方法的典型用法代码示例。如果您正苦于以下问题:Java HorizontalPanel.setHeight方法的具体用法?Java HorizontalPanel.setHeight怎么用?Java HorizontalPanel.setHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.ui.HorizontalPanel
的用法示例。
在下文中一共展示了HorizontalPanel.setHeight方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WorkflowDashboard
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
/**
* UserDashboard
*/
public WorkflowDashboard() {
vPanelLeft = new VerticalPanel();
vPanelRight = new VerticalPanel();
hPanel = new HorizontalPanel();
hPanel.add(vPanelLeft);
hPanel.add(vPanelRight);
pendingTasks = new WorkflowWidget("dashboard.workflow.pending.tasks", "img/icon/workflow.gif", true);
pendingPooledTasks = new WorkflowWidget("dashboard.workflow.pending.tasks.unassigned", "img/icon/workflow.gif", true);
pendingTasks.setIsWidgetPendingTask();
pendingPooledTasks.setIsWidgetPooledTask();
workflowFormPanel = new WorkflowFormPanel();
vPanelLeft.add(pendingTasks);
vPanelLeft.add(pendingPooledTasks);
vPanelRight.add(workflowFormPanel);
hPanel.setHeight("100%");
vPanelRight.setHeight("100%");
initWidget(hPanel);
}
示例2: Status
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
/**
* The status
*/
public Status() {
super(false, true);
hPanel = new HorizontalPanel();
image = new Image(OKMBundleResources.INSTANCE.indicator());
msg = new HTML("");
space = new HTML("");
hPanel.add(image);
hPanel.add(msg);
hPanel.add(space);
hPanel.setCellVerticalAlignment(image, HasAlignment.ALIGN_MIDDLE);
hPanel.setCellVerticalAlignment(msg, HasAlignment.ALIGN_MIDDLE);
hPanel.setCellHorizontalAlignment(image, HasAlignment.ALIGN_CENTER);
hPanel.setCellWidth(image, "30px");
hPanel.setCellWidth(space, "7px");
hPanel.setHeight("25px");
msg.setStyleName("okm-NoWrap");
super.hide();
setWidget(hPanel);
}
示例3: Status
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
/**
* Status
*/
public Status() {
super(false, true);
hPanel = new HorizontalPanel();
image = new Image(OKMBundleResources.INSTANCE.indicator());
msg = new HTML("");
space = new HTML("");
hPanel.add(image);
hPanel.add(msg);
hPanel.add(space);
hPanel.setCellVerticalAlignment(image, HasAlignment.ALIGN_MIDDLE);
hPanel.setCellVerticalAlignment(msg, HasAlignment.ALIGN_MIDDLE);
hPanel.setCellHorizontalAlignment(image, HasAlignment.ALIGN_CENTER);
hPanel.setCellWidth(image, "30px");
hPanel.setCellWidth(space, "7px");
hPanel.setHeight("25px");
msg.setStyleName("okm-NoWrap");
super.hide();
setWidget(hPanel);
}
示例4: createWaitingDialog
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private static DialogBox createWaitingDialog( final String message ) {
final DialogBox dialogBox = new DialogBox();
dialogBox.setText( "Info" );
final HorizontalPanel hp = new HorizontalPanel();
DOM.setStyleAttribute( hp.getElement(), "padding", "20px" );
hp.setHeight( "20px" );
hp.add( new Image( "/images/loading.gif" ) );
hp.add( ClientUtils.createHorizontalEmptyWidget( 5 ) );
hp.add( new Label( message ) );
dialogBox.setWidget( hp );
dialogBox.center();
return dialogBox;
}
示例5: Carousel
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public Carousel(MainWidget master) {
this.master = master;
carousel = new VerticalPanel();
time = new HorizontalPanel();
time.setHeight("50px");
allInfo = new HorizontalPanel();
scrollable = new ScrollPanel();
view = new Button("View On Map");
lb = new ListBox();
may = new ListBox();
june = new ListBox();
july = new ListBox();
august = new ListBox();
september = new ListBox();
list = new ArrayList<>();
buildUI();
}
示例6: AbsolutePanelComponent
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public AbsolutePanelComponent() {
componentContainer = new HorizontalPanel();
componentContainer.setWidth("100%");
componentContainer.setHeight("100%");
componentContainer.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
componentContainer.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE);
setPanelWidget(componentContainer);
}
示例7: setLayout
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void setLayout() {
HorizontalPanel radioPanel = new HorizontalPanel();
radioPanel.add(matchAllButton);
radioPanel.add(matchAnyButton);
radioPanel.setHeight("30px");
radioPanel.setSpacing(10);
VStack rowsPanel = new VStack();
rowsPanel.addMember(filterPanel);
rowsPanel.addMember(addButton);
addMember(radioPanel);
addMember(rowsPanel);
setWidth100();
}
示例8: ReferenceCIScreen
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public ReferenceCIScreen() {
setTitleText("References for");
relationPanel = new HorizontalPanel();
relationPanel.setHeight("100%");
dockPanel.add(relationPanel, DockPanel.NORTH);
dockPanel.setCellHeight(relationPanel, "100%");
initWidget(dockPanel);
}
示例9: createCheckingUserWidget
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
/**
* Returns a widget which indicates that the logged in user is being checked.
* @return a widget which indicates that the logged in user is being checked
*/
public static Widget createCheckingUserWidget() {
final HorizontalPanel panel = new HorizontalPanel();
panel.setHeight( "20px" );
panel.add( new Image( "/images/loading.gif" ) );
panel.add( createHorizontalEmptyWidget( 3 ) );
panel.add( styledWidget( new Label( "Checking user..." ), "note" ) );
return panel;
}
示例10: SearchWidget
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public SearchWidget(MainWidget master) {
this.master = master;
panel = new VerticalPanel();
searchbar = new HorizontalPanel();
searchbar.setHeight("100px");
scrollable = new ScrollPanel();
scrollable.setHeight("400px");
oracle = new MultiWordSuggestOracle();
box = new SuggestBox(oracle);
b = new Button("Search");
box.setWidth("200px");
lbl = new Label("Enter Search Criteria");
BuildUI();
}
示例11: buildAndShow
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
/**
* Creates the layout and adds it to the page
*
* <pre>
* +- content:VLayout --------+
* |+- tools:Widget ---------+|
* || # buildTools() ||
* |+------------------------+|
* |+- stack:SectionStack ---+|
* ||+- jobSection ---------+||
* |||+- topPane:Layout ---+|||
* |||| # buildTopPane() ||||
* |||+--------------------+|||
* ||+----------------------+||
* ||+- detailsSection -----+||
* |||+- botPane:Layout ---+|||
* |||| # buildBotPane() ||||
* |||+--------------------+|||
* ||+----------------------+||
* |+------------------------+|
* +--------------------------+
* </pre>
*
*/
private void buildAndShow() {
VLayout contentLayout = new VLayout();
this.rootLayout = contentLayout;
contentLayout.setWidth100();
contentLayout.setHeight100();
contentLayout.setBackgroundColor("#fafafa");
this.aboutWindow = new AboutWindow();
this.settingsWindow = new SettingsWindow(controller);
Canvas tools = buildTools();
HorizontalPanel panel = new HorizontalPanel();
panel.setWidth("100%");
panel.setHeight("3px");
panel.getElement().getStyle().setBackgroundColor("#f47930");
panel.getElement().getStyle().setPadding(-1, Unit.PX);
SectionStackSection executionsSections = this.controller.buildExecutionsView();
Layout botPane = buildBotPane();
SectionStackSection detailsSection = new SectionStackSection();
detailsSection.setTitle("Details");
detailsSection.setExpanded(true);
detailsSection.setItems(botPane);
SectionStack stack = new SectionStack();
stack.setWidth100();
stack.setHeight100();
stack.setMargin(2);
stack.setVisibilityMode(VisibilityMode.MULTIPLE);
stack.setAnimateSections(true);
stack.setOverflow(Overflow.HIDDEN);
stack.setSections(executionsSections, detailsSection);
contentLayout.addMember(buildLogoStrip());
contentLayout.addMember(tools);
contentLayout.addMember(panel);
contentLayout.addMember(stack);
this.logWindow = new LogWindow(controller);
this.rootLayout.draw();
}
示例12: HeaderScreen
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public HeaderScreen() {
HorizontalPanel outer = new HorizontalPanel();
VerticalPanel inner = new VerticalPanel();
outer.setWidth("100%");
outer.setHeight("3em");
//outer.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
inner.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
inner.setWidth("100%");
inner.setHeight("100%");
HorizontalPanel authInfo = new HorizontalPanel();
//authInfo.setSpacing(4);
logout.setStyleName("logout-style");
authInfo.add(welcomeString);
authInfo.add(logout);
logout.setVisible(false);
logout.addClickListener(this);
inner.add(authInfo);
HorizontalPanel actionPanel = new HorizontalPanel();
actionPanel.setStyleName("onecmdb-header-label");
actionPanel.setSpacing(10);
actionPanel.add(getFeedbackWidget());
actionPanel.add(getCheckUpdateWidget());
actionPanel.add(getHomeWidegt());
actionPanel.add(getHelpWidget());
inner.add(actionPanel);
inner.setCellVerticalAlignment(actionPanel, VerticalPanel.ALIGN_BOTTOM);
inner.setCellVerticalAlignment(authInfo, VerticalPanel.ALIGN_TOP);
//DockPanel iconPanel = new DockPanel();
//iconPanel.setWidth("100%");
//welcomePanel.setSpacing(10);
//iconPanel.add(icon,DockPanel.EAST);
// welcomePanel.add(new HTML("<b> </b>"),DockPanel.CENTER);
outer.add(icon);
outer.setCellHorizontalAlignment(icon, HorizontalPanel.ALIGN_LEFT);
outer.add(inner);
outer.setCellHorizontalAlignment(inner, HorizontalPanel.ALIGN_RIGHT);
// Show welcome page.
icon.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
getBaseEntryScreen().showScreen(OneCMDBApplication.WELCOME_SCREEN);
}
});
initWidget(outer);
//outer.setStyleName("one-top-panel");
}