當前位置: 首頁>>代碼示例>>Java>>正文


Java VerticalPanel.setStylePrimaryName方法代碼示例

本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel.setStylePrimaryName方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.setStylePrimaryName方法的具體用法?Java VerticalPanel.setStylePrimaryName怎麽用?Java VerticalPanel.setStylePrimaryName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.gwt.user.client.ui.VerticalPanel的用法示例。


在下文中一共展示了VerticalPanel.setStylePrimaryName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: PropertiesPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
 * Creates a new properties panel.
 */
public PropertiesPanel() {
  // Initialize UI
  VerticalPanel outerPanel = new VerticalPanel();
  outerPanel.setWidth("100%");

  componentName = new Label("");
  componentName.setStyleName("ode-PropertiesComponentName");
  outerPanel.add(componentName);

  panel = new VerticalPanel();
  panel.setWidth("100%");
  panel.setStylePrimaryName("ode-PropertiesPanel");
  outerPanel.add(panel);

  initWidget(outerPanel);
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:20,代碼來源:PropertiesPanel.java

示例2: MockListView

import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
 * Creates a new MockListView component. It places a label inside a simplepanel which
 * is then placed into a vertical panel
 *
 * @param editor  editor of source file the component belongs to
 */
public MockListView(SimpleEditor editor) {
  super(editor, TYPE, images.listview());
  listViewWidget = new VerticalPanel();
  //TODO (Jose) extract magic numbers as ComponentConstants.java
  listViewWidget.setSize(ComponentConstants.LISTVIEW_PREFERRED_WIDTH + "px", "100%");
  listViewWidget.setStylePrimaryName("ode-SimpleMockComponent");
  listViewWidget.setStyleName("listViewComponentStyle", true);

  createFilterBox();

  // textColor must be set before the component is initialized, because onPropertyChange
  // might call setSlementsFromString, which tries to set the item textcolor
  textColor  = DEFAULT_TEXT_COLOR;

  initComponent(listViewWidget);
  MockComponentsUtil.setWidgetBackgroundColor(listViewWidget, DEFAULT_BACKGROUND_COLOR);
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:24,代碼來源:MockListView.java

示例3: createUI

import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
 * The UI consists of a vertical panel that holds a drop-down list box,
 *   a Horizontal panel that holds the templates list (cell list) plus
 *   the selected template. This is inserted in the Wizard dialog.
 *
 * @param templates should never be null
 * @return the main panel for Wizard dialog.
 */
VerticalPanel createUI(final ArrayList<TemplateInfo> templates) {
  VerticalPanel panel = new VerticalPanel();
  panel.setStylePrimaryName("gwt-SimplePanel");
  panel.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
  panel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);

  templatePanel = new HorizontalPanel();
  templatePanel.add(makeTemplateSelector(templates));
  if (templates.size() > 0)
    templatePanel.add(new TemplateWidget(templates.get(0), templateHostUrl));

  templatesMenu = makeTemplatesMenu();

  HorizontalPanel hPanel = new HorizontalPanel();
  hPanel.add(templatesMenu);
  removeButton = new Button("Remove this repository", new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
        removeCurrentlySelectedRepository();
      }
    });
  removeButton.setVisible(false);
  hPanel.add(removeButton);
  panel.add(hPanel);
  panel.add(templatePanel);
  return panel;
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:36,代碼來源:TemplateUploadWizard.java

示例4: SlidingToolbar

import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private SlidingToolbar(PanelSizeInfo sizeInfo) {
	HorizontalPanel container = new HorizontalPanel();
	this.initWidget(container);
	setWidth("340px");
	setStylePrimaryName("toolbar");
	setHeight("100%");
	container.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
	DOM.setStyleAttribute(getElement(), "marginLeft", "-320px");
	mainPanel = new VerticalPanel();
	mainPanel.setStylePrimaryName("mainToolbarPanel");
	tab = new Label(">");
	tab.setStylePrimaryName("tabToolbarPanel");
	container.add(mainPanel);
	container.add(tab);
	
	// Configure Main Panel
	mainPanel.setHeight("80%");
	mainPanel.setWidth("320px");
	mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
	Element mainElem = mainPanel.getElement();
	DOM.setStyleAttribute(mainElem, "paddingLeft", "70px");
	DOM.setStyleAttribute(mainElem, "paddingTop", "20px");
	DOM.setStyleAttribute(mainElem, "paddingRight", "20px");
	DOM.setStyleAttribute(mainElem, "paddingBottom", "20px");
	
	// Configure Tab
	tab.setWidth("20px");
	tab.setHeight("50px");
	tab.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
	Element tabElem = tab.getElement();
	DOM.setStyleAttribute(tabElem, "lineHeight", "50px");
	
	// Add to Window
	RootPanel.get().add(this, 0, 0);
	
	addAnimation();
	
	createToolbarContent(sizeInfo);
}
 
開發者ID:openremote,項目名稱:WebConsole,代碼行數:40,代碼來源:SlidingToolbar.java

示例5: ExpressionCollectionView

import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
 * Instantiates a new expression collection view.
 */
public ExpressionCollectionView()
{
	super();
	panelForExpressions = new VerticalPanel();
	panelForExpressions.setStylePrimaryName("expressionCollectionBox");
	add(panelForExpressions);
	setSpacing(3);
}
 
開發者ID:synergynet,項目名稱:synergynet3.1,代碼行數:12,代碼來源:ExpressionCollectionView.java


注:本文中的com.google.gwt.user.client.ui.VerticalPanel.setStylePrimaryName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。