• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ShowEvent类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.gwtbootstrap3.client.shared.event.ShowEvent的典型用法代码示例。如果您正苦于以下问题:Java ShowEvent类的具体用法?Java ShowEvent怎么用?Java ShowEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ShowEvent类属于org.gwtbootstrap3.client.shared.event包,在下文中一共展示了ShowEvent类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setDataTargetWidget

点赞 3

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的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

示例2: showHeader

点赞 3

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
@Override
public DataSetPanel.View showHeader(final String uuid, final String parentCollapseId, 
                                    final SafeUri dataSetTypeImageUri, final String dataSetTypeImageTitle, final String dataSetTitle) {
    typeIcon.setUrl(dataSetTypeImageUri);
    typeIcon.setTitle(dataSetTypeImageTitle);
    typeIcon.setAltText(dataSetTypeImageTitle);
    title.setText(dataSetTitle);
    setDynamicToggleId(uuid, parentCollapseId);
    collapsePanel.addShowHandler(new ShowHandler() {
        @Override
        public void onShow(final ShowEvent shownEvent) {
            presenter.open();
        }
    });
    return this;
}
 

开发者ID:kiegroup,
项目名称:appformer,
代码行数:17,
代码来源:DataSetPanelView.java

示例3: addExpandHandler

点赞 2

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
@Override
public void addExpandHandler(final Command command) {
    navBarCollapse.addShowHandler(new ShowHandler() {
        @Override
        public void onShow(final ShowEvent showEvent) {
            command.execute();
        }
    });
}
 

开发者ID:kiegroup,
项目名称:appformer,
代码行数:10,
代码来源:WorkbenchMenuBarView.java

示例4: addShowHandler

点赞 2

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
public HandlerRegistration addShowHandler(final ShowHandler showHandler) {
    return addHandler(showHandler, ShowEvent.getType());
}
 

开发者ID:gwtbootstrap3,
项目名称:gwtbootstrap3,
代码行数:4,
代码来源:NavbarCollapse.java

示例5: onShow

点赞 2

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
/**
 * Fired when the collapse is starting to show
 */
private void onShow(final Event evt) {
    fireEvent(new ShowEvent(evt));
}
 

开发者ID:gwtbootstrap3,
项目名称:gwtbootstrap3,
代码行数:7,
代码来源:NavbarCollapse.java

示例6: onShow

点赞 2

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void onShow(final Event e) {
    validatorMixin.setShowing(true);
    fireEvent(new ShowEvent(e));
}
 

开发者ID:gwtbootstrap3,
项目名称:gwtbootstrap3-extras,
代码行数:7,
代码来源:DatePickerBase.java

示例7: addShowHandler

点赞 2

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public HandlerRegistration addShowHandler(final ShowHandler showHandler) {
    return addHandler(showHandler, ShowEvent.getType());
}
 

开发者ID:gwtbootstrap3,
项目名称:gwtbootstrap3-extras,
代码行数:6,
代码来源:DatePickerBase.java

示例8: addShowHandler

点赞 1

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
/**
 * Adds a show handler to the Tooltip that will be fired when the Tooltip's show event is fired
 *
 * @param showHandler ShowHandler to handle the show event
 * @return HandlerRegistration of the handler
 */
public HandlerRegistration addShowHandler(final ShowHandler showHandler) {
    return widget.addHandler(showHandler, ShowEvent.getType());
}
 

开发者ID:gwtbootstrap3,
项目名称:gwtbootstrap3,
代码行数:10,
代码来源:AbstractTooltip.java

示例9: onShow

点赞 1

import org.gwtbootstrap3.client.shared.event.ShowEvent; //导入依赖的package包/类
/**
 * Can be override by subclasses to handle Tooltip's "show" event however
 * it's recommended to add an event handler to the tooltip.
 *
 * @param evt Event
 * @see org.gwtbootstrap3.client.shared.event.ShowEvent
 */
protected void onShow(final Event evt) {
    widget.fireEvent(new ShowEvent(evt));
}
 

开发者ID:gwtbootstrap3,
项目名称:gwtbootstrap3,
代码行数:11,
代码来源:AbstractTooltip.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)