当前位置: 首页>>代码示例>>Java>>正文


Java FlowPanel.setStyleName方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.FlowPanel.setStyleName方法的典型用法代码示例。如果您正苦于以下问题:Java FlowPanel.setStyleName方法的具体用法?Java FlowPanel.setStyleName怎么用?Java FlowPanel.setStyleName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.FlowPanel的用法示例。


在下文中一共展示了FlowPanel.setStyleName方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: UniTimeDialogBox

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的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);
  }
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:25,代码来源:UniTimeDialogBox.java

示例2: SimpleNonVisibleComponentsPanel

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
/**
 * Creates new component design panel for non-visible components.
 */
public SimpleNonVisibleComponentsPanel() {
  // Initialize UI
  VerticalPanel panel = new VerticalPanel();
  panel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);

  heading = new Label("");
  heading.setStyleName("ya-NonVisibleComponentsHeader");
  panel.add(heading);

  componentsPanel = new FlowPanel();
  componentsPanel.setStyleName("ode-SimpleUiDesignerNonVisibleComponents");
  panel.add(componentsPanel);

  initWidget(panel);
}
 
开发者ID:mit-cml,项目名称:appinventor-extensions,代码行数:19,代码来源:SimpleNonVisibleComponentsPanel.java

示例3: ItemViewCarrier

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
public ItemViewCarrier(String err) {
    errorView = new FlowPanel();
    errorView.setStyleName("qp-item-error");

    Label errorLabel = new Label(err);
    errorLabel.setStyleName("qp-item-error-text");
    errorView.add(errorLabel);
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:9,代码来源:ItemViewCarrier.java

示例4: TableModule

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
@Inject
public TableModule(TableStyleNameConstants styleNames, StyleSocket styleSocket) {
    this.styleNames = styleNames;
    this.styleSocket = styleSocket;

    tablePanel = new FlowPanel();
    tablePanel.setStyleName(this.styleNames.QP_TABLE());
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:9,代码来源:TableModule.java

示例5: FlashLocalMediaImpl

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
public FlashLocalMediaImpl(String name) {
    elementId = Document.get().createUniqueId();
    panelMain = new FlowPanel();
    panelMain.setStyleName("qp-" + name + "-flash-local");
    panelContent = new FlowPanel();
    panelContent.getElement().setId(elementId);
    panelMain.add(panelContent);

    initWidget(panelMain);
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:11,代码来源:FlashLocalMediaImpl.java

示例6: Item

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
@Inject
public Item(@Assisted DisplayContentOptions options, @Assisted ItemOutcomeStorageImpl outcomeStorage, @Assisted JSONArray stateArray,
            FeedbackModuleFactory feedbackModuleFactory, FlowActivityVariablesProcessor flowActivityVariablesProcessor,
            @PageScoped VariableProcessingAdapter variableProcessingAdapter, VariablesProcessingModulesInitializer variablesProcessingModulesInitializer,
            @PageScoped ItemResponseManager responseManager, ItemXMLWrapper xmlMapper, ItemExpressionParser expressionParser,
            AssessmentControllerFactory assessmentControllerFactory) {

    this.options = options;
    this.responseManager = responseManager;
    this.flowActivityVariablesProcessor = flowActivityVariablesProcessor;
    this.variableProcessor = variableProcessingAdapter;
    this.outcomeStorage = outcomeStorage;

    Element itemBodyNode = xmlMapper.getItemBody();
    expressionParser.parseAndConnectExpressions();

    new FeedbackAutoMarkInterpreter().interpretFeedbackAutoMark(itemBodyNode, responseManager);

    moduleSocket = assessmentControllerFactory.getItemModuleSocket(this);
    itemBody = assessmentControllerFactory.getItemBody(options, moduleSocket);
    moduleSocket.init(itemBody, state);

    InlineBodyGeneratorSocket inlineBodyGeneratorSocket = moduleSocket.getInlineBodyGeneratorSocket();
    this.moduleFeedbackProcessor = feedbackModuleFactory.getModuleFeedbackProcessor(inlineBodyGeneratorSocket);
    itemBodyView = new ItemBodyView(itemBody);

    setState(stateArray);
    itemBodyView.init(itemBody.init(itemBodyNode));

    variablesProcessingModulesInitializer.initializeVariableProcessingModules(responseManager, this.outcomeStorage);

    Node rootNode = xmlMapper.getAssessmentItems()
            .item(0);
    title = ((Element) rootNode).getAttribute("title");
    scorePanel = new FlowPanel();
    scorePanel.setStyleName("qp-feedback-hidden");
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:38,代码来源:Item.java

示例7: createMainPanel

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
private void createMainPanel() {
    mainPanel = new FlowPanel();
    mainPanel.setStyleName(styleNames.QP_INFO());
    mainPanel.add(contentPanel);
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:6,代码来源:InfoModule.java

示例8: createContentPanel

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
private void createContentPanel() {
    contentPanel = new FlowPanel();
    contentPanel.setStyleName(styleNames.QP_INFO_CONTENT());
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:5,代码来源:InfoModule.java

示例9: createMainPanel

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
private void createMainPanel() {
    mainPanel = new FlowPanel();
    mainPanel.setStyleName("qp-mathtext");
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:5,代码来源:MathTextModule.java

示例10: addMarkingPoint

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
private void addMarkingPoint(Area point) {
    FlowPanel pointPanel = new FlowPanel();
    pointPanel.setStyleName(markStyle);
    add(pointPanel, point.getX(), point.getY());
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:6,代码来源:AnswersMarkingPanel.java

示例11: installViews

import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
@Override
public void installViews(List<HasWidgets> placeholders) {

    responseIdentifier = XMLUtils.getAttributeAsString(moduleElement, "responseIdentifier");

    response = responseSocket.getResponse(responseIdentifier);
    shuffle = XMLUtils.getAttributeAsBoolean(moduleElement, "shuffle");
    String userClass = XMLUtils.getAttributeAsString(moduleElement, "class");

    listBox = new AccessibleListBox();
    if (shuffle) {
        initRandom(moduleElement);
    } else {
        init(moduleElement);
    }

    if (showEmptyOption) {
        listBox.setSelectedIndex(0);
    } else {
        listBox.setSelectedIndex(-1);
    }

    listBox.addChangeHandler(new ChangeHandler() {

        @Override
        public void onChange(ChangeEvent event) {
            listBoxChanged();
        }
    });

    container = new FlowPanel();
    container.add(listBox);

    placeholders.get(0)
            .add(container);

    container.setStyleName("qp-text-choice");
    if (userClass != null && !"".equals(userClass)) {
        container.addStyleName(userClass);
    }
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:42,代码来源:InlineChoiceDefaultController.java


注:本文中的com.google.gwt.user.client.ui.FlowPanel.setStyleName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。