本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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");
}
示例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);
}
示例8: createContentPanel
import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
private void createContentPanel() {
contentPanel = new FlowPanel();
contentPanel.setStyleName(styleNames.QP_INFO_CONTENT());
}
示例9: createMainPanel
import com.google.gwt.user.client.ui.FlowPanel; //导入方法依赖的package包/类
private void createMainPanel() {
mainPanel = new FlowPanel();
mainPanel.setStyleName("qp-mathtext");
}
示例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());
}
示例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);
}
}