本文整理匯總了Java中com.google.gwt.user.client.ui.Anchor.setVisible方法的典型用法代碼示例。如果您正苦於以下問題:Java Anchor.setVisible方法的具體用法?Java Anchor.setVisible怎麽用?Java Anchor.setVisible使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.Anchor
的用法示例。
在下文中一共展示了Anchor.setVisible方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: UniTimeDialogBox
import com.google.gwt.user.client.ui.Anchor; //導入方法依賴的package包/類
public UniTimeDialogBox(boolean autoHide, boolean modal) {
super(autoHide, modal);
setAnimationEnabled(true);
setGlassEnabled(true);
iContainer = new FlowPanel();
iContainer.addStyleName("dialogContainer");
iClose = new Anchor();
iClose.setTitle(MESSAGES.hintCloseDialog());
iClose.setStyleName("close");
iClose.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
onCloseClick(event);
}
});
iClose.setVisible(autoHide);
iControls = new FlowPanel();
iControls.setStyleName("dialogControls");
iControls.add(iClose);
}
示例2: AlertStackWidget
import com.google.gwt.user.client.ui.Anchor; //導入方法依賴的package包/類
public AlertStackWidget() {
alertWidgets = new ArrayList<AlertWidget>();
VerticalPanel rootPanel = new VerticalPanel();
rootPanel.setWidth("100%");
alertsPanel = new VerticalPanel();
alertsPanel.setWidth("100%");
rootPanel.add(alertsPanel);
showHideAnchor = new Anchor(
I18nUtils.tr(visible ? "hide.alerts" : "show.alerts"));
showHideAnchor.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
visible = !visible;
alertsPanel.setVisible(visible);
showHideAnchor.setText(
I18nUtils.tr(visible ? "hide.alerts" : "show.alerts"));
}
});
showHideAnchor.addStyleName("alert-showhide-link");
showHideAnchor.setVisible(false);
rootPanel.add(showHideAnchor);
initWidget(rootPanel);
}
示例3: TopBar
import com.google.gwt.user.client.ui.Anchor; //導入方法依賴的package包/類
public TopBar()
{
horizontalPanel=new HorizontalPanel();
horizontalPanel.setStyleName("topBar");
initWidget(horizontalPanel);
horizontalPanel.setWidth("100%");
setHorizontalPanelSpacing(6);
// horizontalPanel.setStyleName(css.paddedHorizontalPanel());
logoutAnchor = new Anchor("Logout");
logoutAnchor.setWordWrap(false);
logoutAnchor.setVisible(false);
horizontalPanel.add(logoutAnchor);
lblWelcome=new HTML();
horizontalPanel.add(lblWelcome);
}
示例4: HiddenField
import com.google.gwt.user.client.ui.Anchor; //導入方法依賴的package包/類
/**
* This is the normal construct used for creating or subclassing TextBoxFieldWidget
* @param def the fieldDef determines the type of field to create
*/
public HiddenField(FieldDef def) {
value = def.getDefaultValueAsString();
fieldDef = def;
label = new FieldLabel.Immutable() {
public String getHtml() {
return "";
}
};
holder = new Anchor("");
holder.setVisible(false);
initWidget(holder);
}
示例5: buildContentView
import com.google.gwt.user.client.ui.Anchor; //導入方法依賴的package包/類
private Widget buildContentView() {
VNavigationView contentView = new VNavigationView();
contentView.setHeight("100%");
contentView.setWidth("100%");
VNavigationBar navigationBar = new VNavigationBar();
navigationBar.setCaption("Wound Management App");
navigationBar.setWidth("100%");
contentView.setNavigationBar(navigationBar);
VVerticalLayout panel = new VVerticalLayout();
panel.setWidth("100%");
panel.setStyleName("v-csslayout-margin-left v-csslayout-margin-right");
offlineOnlineIndicator = new VCssLayout();
offlineOnlineIndicator.addStyleName("offlineindicator");
VCssLayout indicatorWrapper = new VCssLayout();
indicatorWrapper.setWidth("100%");
VImage image = new VImage();
image.setAltText("Conection offline");
image.setResource(Resources.INSTANCE.offline());
panel.add(image);
onlineStatusLabel = new Label("Connection offline");
indicatorWrapper.add(onlineStatusLabel);
reconnectLabel = new Anchor("Reconnect", Window.Location.getHref());
reconnectLabel.setVisible(false);
indicatorWrapper.add(reconnectLabel);
offlineOnlineIndicator.add(indicatorWrapper);
panel.add(offlineOnlineIndicator);
contentView.setContent(panel);
return contentView;
}
示例6: setVisible
import com.google.gwt.user.client.ui.Anchor; //導入方法依賴的package包/類
public void setVisible(boolean visible, String text){
for (Anchor link : linkMap.keySet()){
if (linkMap.get(link).equals(text))
link.setVisible(visible);
}
}