本文整理汇总了Java中com.google.gwt.user.client.ui.HorizontalPanel.setVisible方法的典型用法代码示例。如果您正苦于以下问题:Java HorizontalPanel.setVisible方法的具体用法?Java HorizontalPanel.setVisible怎么用?Java HorizontalPanel.setVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.ui.HorizontalPanel
的用法示例。
在下文中一共展示了HorizontalPanel.setVisible方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createUrlToShareAnchor
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private Widget createUrlToShareAnchor() {
urlPanel = new HorizontalPanel();
urlPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
urlPanel.setSpacing(1);
urlToShareAnchor = new AnchorBuilder().build();
urlPanel.add(urlToShareAnchor);
Image img = new Image(ImageProvider.INSTANCE.externalLink16());
urlPanel.add(img);
urlPanel.setVisible(false);
return urlPanel;
}
示例2: getCSVComboPanel
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void getCSVComboPanel() {
comboPanel = new HorizontalPanel();
comboPanel.setWidth("100%");
comboPanel.addStyleName(ThemeStyles.get().style().borderTop());
comboPanel.setSpacing(5);
comboPanel.setVisible(false);
comboPanel.add(new Label(UIMessages.INSTANCE.bindableAttribute()));
comboPanel.add(csvAttributeCombo);
}
示例3: createLayerAttributeComboPanel
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void createLayerAttributeComboPanel() {
layerAttributeComboPanel = new HorizontalPanel();
layerAttributeComboPanel.setWidth("100%");
layerAttributeComboPanel.addStyleName(ThemeStyles.get().style()
.borderBottom());
layerAttributeComboPanel.setSpacing(5);
layerAttributeComboPanel.setVisible(false);
layerAttributeComboPanel.add(new Label(UIMessages.INSTANCE
.layerSchemaToolText()));
layerAttributeComboPanel.add(layerAttributeCombo);
}
示例4: LoginWidget
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public LoginWidget(AsyncCallback<Void> logincb, AsyncCallback<Void> logoutcb) {
this.resize(1, 2);
this.getCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);
this.addStyleName("easyvote-LoginWidget");
LoginHandler handler = new LoginHandler();
whoAmIPanel = new HorizontalPanel();
whoAmIPanel.setVisible(false);
userIdLabel = new Label();
userIdLabel.addStyleName("LoginWidget-component");
whoAmIPanel.add(userIdLabel);
logoutButton = new Button("Logout");
logoutButton.addStyleName("LoginWidget-logoutButton");
logoutButton.addClickHandler(new LogoutHandler());
whoAmIPanel.add(logoutButton);
setWidget(0, 1, whoAmIPanel);
inputPanel = new FlowPanel();
loginCallback = logincb;
logoutCallback = logoutcb;
nameField = new TextBox();
nameField.setText("VoterID");
nameField.addStyleName("LoginWidget-component");
nameField.addKeyUpHandler(handler);
inputPanel.add(nameField);
passField = new PasswordTextBox();
passField.setText("Password");
passField.addKeyUpHandler(handler);
passField.addStyleName("LoginWidget-component");
inputPanel.add(passField);
sendButton = new Button("Login");
sendButton.addClickHandler(handler);
inputPanel.add(sendButton);
this.setWidget(0, 0, inputPanel);
}
示例5: setupStatusRegion
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public static void setupStatusRegion(LayoutManager lm) {
final HorizontalPanel hp = new HorizontalPanel();
Region statusBar = new BaseRegion(STATUS) {
@Override
public void setDisplay(Widget display) {
GwtUtil.setStyles(display, "fontSize", "12px", "lineHeight", "40px");
super.setDisplay(display);
}
@Override
public void hide() {
hp.setVisible(false);
}
@Override
public void show() {
hp.setVisible(true);
}
};
Image im = new Image("images/gxt/attention.gif");
im.setSize("16px", "16px");
GwtUtil.setStyle(im, "marginLeft", "20px");
hp.add(im);
hp.add(statusBar.getDisplay());
hp.getElement().setId("app-status");
hp.setSize("99%", "40px");
hp.setCellVerticalAlignment(im, VerticalPanel.ALIGN_MIDDLE);
hp.setCellVerticalAlignment(statusBar.getDisplay(), VerticalPanel.ALIGN_MIDDLE);
hp.setVisible(false);
RootPanel.get("application").add(hp);
lm.addRegion(statusBar);
}
示例6: processRequest
import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
protected void processRequest(Request req, AsyncCallback<String> callback) {
final SimpleInputField tagName = SimpleInputField.createByProp("HistoryTags.tagname");
Button tagIt = new Button("Tag It", new ClickHandler(){
public void onClick(ClickEvent event) {
if (Application.getInstance().hasSearchResult()) {
if (tagName.validate()) {
TagCmd.TagItCmd.doTag(tagName.getValue(), new BaseCallback(){
public void doSuccess(Object result) {
tagTable.reloadTable(0);
}
});
}
} else {
PopupUtil.showInfo(null, "Tag Current Search",
"No search results to tag.");
}
}
});
final HorizontalPanel hp = new HorizontalPanel();
hp.add(tagName);
hp.add(tagIt);
boolean taggingPossible = false;
Request currentSearchRequest = Application.getInstance().getRequestHandler().getCurrentSearchRequest();
if (Application.getInstance().hasSearchResult() && currentSearchRequest != null) {
final GeneralCommand cmd = Application.getInstance().getCommand(currentSearchRequest.getCmdName());
if (cmd instanceof RequestCmd && ((RequestCmd)cmd).isTagSupported(currentSearchRequest)) {
taggingPossible = true;
}
}
hp.setVisible(taggingPossible);
final TabPane<TablePanel> tabPane = new TabPane<TablePanel>();
tabPane.setHeight("400px");
// tab = new TableGroupPreviewCombo(null);
// tab.setTabGroupTitle("Search History and Tags");
histTable = new TagHistoryConfig(false).createAndLoadTable();
tagTable = new TagHistoryConfig(true).createAndLoadTable();
histTable.setHelpId("basics.history");
tagTable.setHelpId("basics.history");
tabPane.addTab(histTable, "History");
tabPane.addTab(tagTable, "Tags");
// TitlePanel ttp = tab.getTableTitlePanel();
// ttp.addToTitle(HelpManager.makeHelpIcon("results.tagging", false));
// onComplete(1);
// setResults(tab);
FlowPanel fp = new FlowPanel();
fp.add(hp);
fp.add(tabPane);
GwtUtil.setStyle(fp, "margin", "5px");
registerView(LayoutManager.DROPDOWN_REGION, fp);
callback.onSuccess("");
}