本文整理匯總了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");
}