本文整理汇总了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);
}};
}
示例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;
}
示例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);
}
示例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);
};
}
示例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 );
}
示例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++;
}
示例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;
}
示例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);
}