本文整理汇总了Java中org.gwtbootstrap3.client.ui.constants.IconType类的典型用法代码示例。如果您正苦于以下问题:Java IconType类的具体用法?Java IconType怎么用?Java IconType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IconType类属于org.gwtbootstrap3.client.ui.constants包,在下文中一共展示了IconType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDeleteColumn
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
private void addDeleteColumn() {
final ButtonCell deleteCell = new ButtonCell( ButtonType.DANGER, IconType.TRASH );
final Column<ListenerModel, String> column = new Column<ListenerModel, String>( deleteCell ) {
@Override
public String getValue( ListenerModel object ) {
return "";
}
};
column.setFieldUpdater( new FieldUpdater<ListenerModel, String>() {
@Override
public void update( int index,
ListenerModel model,
String value ) {
presenter.onDelete( model );
}
} );
column.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
dataGrid.addColumn( column,
CommonConstants.INSTANCE.Delete() );
dataGrid.setColumnWidth( column,
60,
Style.Unit.PX );
}
示例2: MainPanelView
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
@Inject
public MainPanelView(EventBus eventBus, ErrorFormatter errorFormatter,
LoadingMessagePopupPanel loadingMessagePopupPanel) {
initWidget(uiBinder.createAndBindUi(this));
eventBinder.bindEventHandlers(this, eventBus);
this.errorFormatter = errorFormatter;
this.loadingMessagePopupPanel = loadingMessagePopupPanel;
// webAppsButton.getElement().setClassName("glyphicon");
webAppsButton.setIcon(IconType.TH);
webAppsButton.setIconSize(IconSize.LARGE);
notificationButton.setIcon(IconType.BELL);
notificationButton.setIconSize(IconSize.LARGE);
wrenchButton.setIcon(IconType.WRENCH);
wrenchButton.setIconSize(IconSize.LARGE);
createPopOver();
logger.info("MainPanelView created...");
}
示例3: postConstruct
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
/**
* Called after construction.
*/
@PostConstruct
protected void postConstruct() {
fetchingDataMessage = i18n.format("query-resultpanel.status-fetch-data-message");
noRowsMessage = i18n.format("query-resultpanel.status-norows-message");
runQueryButton.setIcon( IconType.REFRESH );
statusText.setHTML(UiUtils.getStatusMessageHtml(Constants.BLANK,UiUtils.MessageType.INFO));
// Add properties panel and Select label to deckPanel
contentDeckPanel.add(statusText);
contentDeckPanel.add(queryResultsTablePaged);
contentDeckPanel.showWidget(0);
resultTableVisible=false;
// Tooltips
queryResultsTablePaged.setTitle(i18n.format("query-resultpanel.result-table.tooltip"));
}
示例4: postConstruct
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
/**
* Called after construction.
*/
@PostConstruct
protected void postConstruct() {
// SelectionModel to handle Source selection
dsSelectionModel = new SingleSelectionModel<String>();
viewSourceNamesTable.setSelectionModel(dsSelectionModel);
dsSelectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
public void onSelectionChange( SelectionChangeEvent event) {
String selectedRow = dsSelectionModel.getSelectedObject();
selectedSource = selectedRow;
if(selectedSource!=null) {
deleteButton.setEnabled(true);
} else {
deleteButton.setEnabled(false);
}
} });
// Initially disabled. Enables when user makes a selection
deleteButton.setEnabled(false);
// Tooltips
addButton.setTitle(i18n.format("viewsource-panel.addButton.tooltip"));
addButton.setIcon(IconType.PLUS);
deleteButton.setTitle(i18n.format("viewsource-panel.deleteButton.tooltip"));
deleteButton.setIcon(IconType.MINUS);
viewSourceNamesTable.setTitle(i18n.format("viewsource-panel.viewSourceNamesTable.tooltip"));
}
示例5: setNextReplaceButton
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
/**
* Set button text and enabled state
* @param type the button type
* @enabled 'true' if enabled, 'false' if not.
*/
public void setNextReplaceButton(NextReplaceButton type, boolean enabled) {
if(type==NextReplaceButton.NEXT) {
nextOrReplaceButton.setIcon(IconType.ANGLE_RIGHT);
nextOrReplaceButton.setIconPosition(IconPosition.RIGHT);
nextOrReplaceButton.setText(NEXT_BUTTON_TEXT);
nextOrReplaceButton.setEnabled(enabled);
} else {
nextOrReplaceButton.setIcon(IconType.ARROW_DOWN);
nextOrReplaceButton.setIconPosition(IconPosition.RIGHT);
nextOrReplaceButton.setText(REPLACE_BUTTON_TEXT);
nextOrReplaceButton.setEnabled(enabled);
}
if(enabled) {
nextOrReplaceButton.setType(ButtonType.PRIMARY);
} else {
nextOrReplaceButton.setType(ButtonType.DEFAULT);
}
}
示例6: postConstruct
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
/**
* Called after construction.
*/
@PostConstruct
protected void postConstruct() {
pgTitle = i18n.format("servicedetails.page-title");
// serviceInternal = i18n.format("servicedetails.page-title-internal");
// serviceExternal = i18n.format("servicedetails.page-title-external");
downloadIcon.setType(IconType.DOWNLOAD);
downloadClientJarAnchor.setText("teiid-jdbc.jar");
// Tooltips
editServiceButton.setTitle(i18n.format("servicedetails.editServiceButton.tooltip"));
downloadClientJarAnchor.setTitle(i18n.format("servicedetails.downloadClientJarAnchor.tooltip"));
jdbcSnippetArea.setTitle(i18n.format("servicedetails.jdbcSnippetArea.tooltip"));
restLinkTextBox.setTitle(i18n.format("servicedetails.restLinkTextBox.tooltip"));
odataLinkTextBox.setTitle(i18n.format("servicedetails.odataLinkTextBox.tooltip"));
openRestButton.setTitle(i18n.format("servicedetails.openRestButton.tooltip"));
openODataButton.setTitle(i18n.format("servicedetails.openODataButton.tooltip"));
}
示例7: onSelectionModeToggle
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
@UiHandler("selectionswitch")
void onSelectionModeToggle(ClickEvent event) {
if(!selectionmode) {
selectionmode = true;
selectionswitch.setIcon(IconType.CHECK_SQUARE_O);
table.addStyleName("selection-table");
}
else {
selectionmode = false;
selectionswitch.setIcon(IconType.SQUARE_O);
table.removeStyleName("selection-table");
// Remove all selections
selections.clear();
table.redraw();
updateCompareButton();
}
}
示例8: getPanelHeader
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
private PanelHeader getPanelHeader() {
PanelHeader header = new PanelHeader();
header.addStyleName("small-header");
header.setDataTarget("#" + this.target);
header.setDataToggle(Toggle.COLLAPSE);
header.setDataParent("#" + this.parentid);
anchor = new Anchor();
anchor.setIcon(IconType.FILTER);
anchor.setText(facetId);
anchor.setIconSize(IconSize.LARGE);
anchor.setDataToggle(Toggle.COLLAPSE);
anchor.setDataTarget("#" + this.target);
anchor.setDataParent("#" + this.parentid);
header.add(anchor);
return header;
}
示例9: processMessage
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
private void processMessage(MyMessage newMessage) {
ListGroupItem message = new ListGroupItem();
Icon icon = new Icon();
icon.setSize(IconSize.LARGE);
if (newMessage.getType().equals(MyMessage.MessageType.SYSTEM)) {
icon.setType(IconType.COG);
} else if (newMessage.getType().equals(MyMessage.MessageType.PUBLIC)) {
icon.setType(IconType.USER);
} else {
icon.setType(IconType.USER_SECRET);
}
message.insert(icon, 0);
message.setId("message_" + random.nextInt());
message.setText(" " + DateTimeFormat.getFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + " "
+ newMessage.getAuthor().getUsername() + " says : " + newMessage.getMessage());
message.getElement().addClassName(
"list-group-item-" + newMessage.getAuthor().getColor().toLowerCase());
chatList.add(message);
}
示例10: createRemoveAddOn
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
private static InputGroupButton createRemoveAddOn(final PropertyEditorFieldInfo field,
final PropertyEditorCategory category,
final PropertyEditorItemsWidget parent,
final Form categoryPanel) {
InputGroupButton groupButton = GWT.create(InputGroupButton.class);
Button button = GWT.create(Button.class);
button.setIcon(IconType.MINUS);
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
category.getFields().remove(field);
categoryPanel.remove(parent);
}
});
groupButton.add(button);
return groupButton;
}
示例11: createTimeSelector
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
protected AnchorListItem createTimeSelector(int time,
String name,
int configuredSeconds,
final AnchorListItem refreshDisableButton) {
final AnchorListItem oneMinuteRadioButton = GWT.create(AnchorListItem.class);
oneMinuteRadioButton.setText(name);
oneMinuteRadioButton.setIconFixedWidth(true);
final int selectedRefreshTime = time;
if (configuredSeconds == selectedRefreshTime) {
oneMinuteRadioButton.setIcon(IconType.CHECK);
}
oneMinuteRadioButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
oneMinuteRadioButton.setIcon(IconType.CHECK);
supportsRefreshInterval.onUpdateRefreshInterval(true,
selectedRefreshTime);
refreshDisableButton.setActive(false);
refreshDisableButton.setEnabled(true);
refreshDisableButton.setText(constants.Disable_autorefresh());
}
});
return oneMinuteRadioButton;
}
示例12: addButton
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
public void addButton(final String caption,
final Command command,
final IconType iconType,
final ButtonType buttonType) {
final Button button = new Button(caption,
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (command != null) {
command.execute();
}
}
});
button.setType(buttonType);
button.setIcon(iconType);
this.add(button);
}
示例13: setDataTargetWidget
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
@Override
public void setDataTargetWidget(final Widget widget) {
super.setDataTargetWidget(widget);
if (widget instanceof PanelCollapse) {
final PanelCollapse collapse = (PanelCollapse) widget;
collapse.addShowHandler(new ShowHandler() {
@Override
public void onShow(ShowEvent showEvent) {
caret.setType(IconType.CARET_UP);
}
});
collapse.addHiddenHandler(new HiddenHandler() {
@Override
public void onHidden(HiddenEvent event) {
caret.setType(IconType.CARET_DOWN);
}
});
}
}
示例14: setupCSS
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
private void setupCSS() {
if (position == UberfireDockPosition.SOUTH) {
titlePanel.addStyleName(CSS.CSS().dockExpandedContentPanelSouth());
title.addStyleName(CSS.CSS().dockExpandedLabelSouth());
collapse.addStyleName(CSS.CSS().dockExpandedButtonSouth());
collapse.setIcon(IconType.CHEVRON_DOWN);
} else if (position == UberfireDockPosition.WEST) {
title.addStyleName(CSS.CSS().dockExpandedLabelWest());
collapse.addStyleName(CSS.CSS().dockExpandedButtonWest());
collapse.setIcon(IconType.CHEVRON_LEFT);
} else if (position == UberfireDockPosition.EAST) {
title.addStyleName(CSS.CSS().dockExpandedLabelEast());
collapse.addStyleName(CSS.CSS().dockExpandedButtonEast());
collapse.setIcon(IconType.CHEVRON_RIGHT);
}
setupDockContentSize();
}
示例15: addDropdownTab
import org.gwtbootstrap3.client.ui.constants.IconType; //导入依赖的package包/类
/**
* Adds a new tab to this panel that doesn't have any contents itself, but can contain multiple items that appear in
* a dropdown menu when the tab is clicked. This dropdown menu is initially empty. Items can be added and removed
* using the {@link DropDownTab#addItem(String, Widget)} and
* {@link DropDownTab#removeItem(String, Widget)} methods.
* @param label The text that should appear on the dropdown tab.
* @return the container for the items that appear when the tab is clicked.
*/
public DropDownTab addDropdownTab(String label) {
AnchorListItem tab = new AnchorListItem(label);
// FIXME should actually subclass AnchorListItem and add a <b class=caret/> to the anchor elem
tab.setIcon(IconType.ANGLE_DOWN);
tab.setIconPosition(IconPosition.RIGHT);
tab.addStyleName(Styles.DROPDOWN_TOGGLE);
tab.setDataToggle(Toggle.DROPDOWN);
DropDownTab dropDownTab = new DropDownTab(tab);
tab.add(dropDownTab);
addDropdownTab(dropDownTab);
return dropDownTab;
}