• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Column类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: makeEventTypeCheckBox

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
private Widget makeEventTypeCheckBox(final String eventType,
                                     final Boolean isEnabled) {
    final CheckBox chkEventType = new CheckBox(AuditLogEntryCellHelper.getEventTypeDisplayText(eventType));
    chkEventType.setValue(Boolean.TRUE.equals(isEnabled));
    chkEventType.addValueChangeHandler((ValueChangeEvent<Boolean> event) -> {
        auditLog.getAuditLogFilter().getAcceptedTypes().put(eventType,
                                                            event.getValue());
    });

    // BZ-996942: Use one column layout.
    chkEventType.setWordWrap(false);

    return new Column(ColumnSize.MD_2) {{
        add(chkEventType);
    }};
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:17,代码来源:AuditLogViewImpl.java


示例2: createPanelContent

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
private static Form createPanelContent(final PanelBody panelBody) {
    final Container container = GWT.create(Container.class);
    container.setFluid(true);
    final Row row = GWT.create(Row.class);
    final Column column = new Column(ColumnSize.MD_12);
    final Form form = GWT.create(Form.class);
    form.setType(FormType.HORIZONTAL);
    container.add(row);
    row.add(column);
    column.add(form);
    panelBody.add(container);
    return form;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:PropertyEditorHelper.java


示例3: addMedia

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
public void addMedia(final Media media) {

        final Column column = new Column(ColumnSize.XS_4);

        final Button trash = new Button();
        trash.setIcon(IconType.TRASH);

        final ThumbnailPanel thumbnail = new ThumbnailPanel() {{
            add(new Image(media.getPreviewURI()) {{
                setType(ImageType.CIRCLE);
                setHeight("140px");
                setWidth("140px");
            }});
            add(new Caption() {{
                add(new Paragraph(media.getExternalURI()) {{
                    getElement().getStyle().setProperty("maxWidth",
                                                        "180px");
                }});
                add(new Paragraph() {{
                    add(trash);
                }});
            }});
        }};

        trash.addClickHandler(getTrashClickHandler(media,
                                                   column));

        column.add(thumbnail);
        library.add(column);

        mediaRef.put(media.getPath(),
                     column);
    }
 
开发者ID:kiegroup,项目名称:appformer,代码行数:34,代码来源:MediaLibraryWidget.java


示例4: getTrashClickHandler

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
private ClickHandler getTrashClickHandler(final Media media,
                                          final Column column) {
    return event -> {
        mediaRef.remove(media.getPath());
        updateMediaOnSaveCommands.add(new Command() {
            @Override
            public void execute() {
                onMediaDelete.execute(media);
            }
        });
        library.remove(column);
    };
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:MediaLibraryWidget.java


示例5: initAddItemPanel

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
private void initAddItemPanel() {

        Row addItemRow = new Row();
        addItemPanel.add( addItemRow );

        Column addItemEditorColumn = new Column( ColumnSize.MD_10 );

        //addItemContainer.setVerticalAlignment( HasVerticalAlignment.ALIGN_BOTTOM );
        addItemEditor = presenter.createValuePairEditor( valuePairDefinition );
        addItemEditor.showValuePairName( false );

        addItemEditorColumn.add( addItemEditor );
        addItemRow.add( addItemEditorColumn );

        Column addItemButtonColumn = new Column( ColumnSize.MD_2 );

        Button addItemButton = new Button( Constants.INSTANCE.advanced_domain_multiple_value_pair_editor_action_add() );
        addItemButton.setType( ButtonType.PRIMARY );
        addItemButton.setIcon( IconType.PLUS );
        addItemButton.addClickHandler( new ClickHandler() {
            @Override
            public void onClick( ClickEvent event ) {
                presenter.onAddItem();
            }
        } );

        addItemButtonColumn.add( addItemButton );
        addItemRow.add( addItemButtonColumn );

        addItemPanel.add( addItemRow );
    }
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:32,代码来源:MultipleValuePairEditorViewImpl.java


示例6: addItem

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
private void addItem(final IsWidget widget) {
    if (null == currentRow || (itemCounter == 4)) {
        resetRow();
    }
    final Column column = new Column(ColumnSize.MD_3);
    column.add(widget);
    currentRow.add(column);
    itemCounter++;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:10,代码来源:BootstrapNavigatorView.java


示例7: addItemEditor

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
@Override
public Integer addItemEditor( ValuePairEditor<?> valuePairEditor ) {

    Row itemEditorRow = new Row();
    Column itemEditorColumn = new Column( ColumnSize.MD_10 );

    final Integer itemId = nextItemId();
    valuePairEditor.showValuePairName( false );
    valuePairEditor.addEditorHandler( new ValuePairEditorHandler() {
        @Override
        public void onValidate() {

        }

        @Override
        public void onValueChange() {
            presenter.onValueChange( itemId );
        }
    } );

    itemEditorColumn.add( valuePairEditor );
    itemEditorRow.add( itemEditorColumn );

    Column deleteButtonColumn = new Column( ColumnSize.MD_2 );

    Button deleteButton = new Button( Constants.INSTANCE.advanced_domain_multiple_value_pair_editor_action_delete() );
    deleteButton.setType( ButtonType.LINK );
    deleteButton.addClickHandler( new ClickHandler() {
        @Override
        public void onClick( ClickEvent event ) {
            presenter.onRemoveItem( itemId );
        }
    } );

    deleteButtonColumn.add( deleteButton );
    itemEditorRow.add( deleteButtonColumn );


    itemsPanel.add( itemEditorRow );

    indexToEditor.put( itemId, valuePairEditor );
    indexToEditorWidget.put( itemId, itemEditorRow );
    return itemId;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:45,代码来源:MultipleValuePairEditorViewImpl.java


示例8: init

import org.gwtbootstrap3.client.ui.Column; //导入依赖的package包/类
public void init(final Presenter presenter) {
    this.presenter = presenter;
    container.setFluid(true);
    container.add(row);
    row.add(column);
    setTitle(StunnerFormsClientFieldsConstants.INSTANCE.Data_IO());
    inputAssignmentsWidget.setVariableType(Variable.VariableType.INPUT);
    inputAssignmentsWidget.setAllowDuplicateNames(false,
                                                  StunnerFormsClientFieldsConstants.INSTANCE.A_Data_Input_with_this_name_already_exists());
    column.add(inputAssignmentsWidget.getWidget());
    outputAssignmentsWidget.setVariableType(Variable.VariableType.OUTPUT);
    outputAssignmentsWidget.setAllowDuplicateNames(true,
                                                   "");
    column.add(outputAssignmentsWidget.getWidget());
    final Row btnRow = new Row();
    btnRow.getElement().getStyle().setMarginTop(10,
                                                Style.Unit.PX);
    final Column btnColumn = new Column(ColumnSize.MD_12);
    btnRow.add(btnColumn);
    btnSave = new Button(StunnerFormsClientFieldsConstants.INSTANCE.Save());
    btnSave.setType(ButtonType.PRIMARY);
    btnSave.setIcon(IconType.SAVE);
    btnSave.setPull(Pull.RIGHT);
    btnSave.addClickHandler(
            new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {
                    presenter.handleSaveClick();
                }
            }
    );
    btnColumn.add(btnSave);
    btnCancel = new Button(StunnerFormsClientFieldsConstants.INSTANCE.Cancel());
    btnCancel.setPull(Pull.RIGHT);
    btnCancel.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(final ClickEvent event) {
            presenter.handleCancelClick();
        }
    });
    btnColumn.add(btnCancel);
    container.add(btnRow);
    setBody(container);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:45,代码来源:ActivityDataIOEditorViewImpl.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ValueMetaAndData类代码示例发布时间:2022-05-22
下一篇:
Java DatabaseDataSourceConnection类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap