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


Java IconType类代码示例

本文整理汇总了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 );
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:26,代码来源:ListenersPanelViewImpl.java

示例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...");
}
 
开发者ID:interseroh,项目名称:demo-gwt-springboot,代码行数:23,代码来源:MainPanelView.java

示例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"));
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:22,代码来源:QueryResultsPanel.java

示例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"));
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:30,代码来源:ViewSourcePanel.java

示例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);
	}
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:24,代码来源:ViewEditorWizardPanel.java

示例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"));
    }
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:22,代码来源:DataServiceDetailsScreen.java

示例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();
  }
}
 
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:19,代码来源:SoftwareListView.java

示例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;
}
 
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:19,代码来源:FacetSelector.java

示例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);
}
 
开发者ID:treblereel,项目名称:ErraiMessageBusChat,代码行数:21,代码来源:ChatClient.java

示例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;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:PropertyEditorHelper.java

示例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;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:27,代码来源:RefreshSelectorMenuBuilder.java

示例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);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:GenericModalFooter.java

示例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);
            }
        });
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:20,代码来源:TriggerWidget.java

示例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();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:DocksExpandedBar.java

示例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;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:26,代码来源:TabPanelWithDropdowns.java


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