本文整理匯總了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);
}
}