當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。