com.extjs.gxt.ui.client.widget.button.Button.setIconStyle()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(223)

本文整理了Java中com.extjs.gxt.ui.client.widget.button.Button.setIconStyle()方法的一些代码示例,展示了Button.setIconStyle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setIconStyle()方法的具体详情如下:
包路径:com.extjs.gxt.ui.client.widget.button.Button
类名称:Button
方法名:setIconStyle

Button.setIconStyle介绍

暂无

代码示例

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

/**
 * Creates a "Save" button.<br/>
 * 
 * @param listener
 * @return the created button
 */
public Button createSaveButton(SelectionListener<ButtonEvent> listener) {
  Button button = new Button(messages.labelSave());
  button.setIconStyle(styles.iSave());
  button.addSelectionListener(listener);
  return button;
}

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

/**
 * Creates a icon "Save and close" button.<br/>
 * 
 * @param listener
 * @return the created button
 */
public Button createSaveAndCloseButton(SelectionListener<ButtonEvent> listener) {
  Button button = new Button(messages.labelSaveQuit());
  button.setIconStyle(styles.iSaveQuit());
  button.addSelectionListener(listener);
  return button;
}

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

/**
 * Creates a generic Button for the specified params.<br/> Does not add it to any container.<br/>
 * @param label text to display on the button
 * @param tooltip tooltip shown when hovering the button. May be <code>null</code>
 * @param style the button style. May be <code>null</code>
 * @param listener button selection listener. May be <code>null</code>
 * @return
 */
public Button createGenericButton(String label, String tooltip, String style,
  SelectionListener<ButtonEvent> listener) {
  Button b = new Button(label);
  if (!Util.emptyString(tooltip)) {
    b.setToolTip(tooltip);
  }
  if (style != null) {
    b.setIconStyle(style);
  }
  if (listener != null) {
    b.addSelectionListener(listener);
  }
  return b;
}

代码示例来源:origin: pl.touk/wonderful-security-lib

@Override
  protected Component constructTopComponent() {
    ToolBar toolbar = new ToolBar();

    Button addNewRole = new Button("Dodaj nową rolę");
    addNewRole.setIconStyle("icon-add");
    addNewRole.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce) {
        Dispatcher.get().dispatch(WsEvents.CREATE_NEW_ROLE);
      }

    });
    addNewRole.setEnabled(ClientSecurity.hasPermission(WsecPermission.WSEC_ADD_ROLE_BTN));
    toolbar.add( addNewRole);

    return toolbar;
  }
}

代码示例来源:origin: geoserver/geofence

/**
 * Adds the buttons.
 */
public void addButtons() {
  formPanel.setButtonAlign(HorizontalAlignment.LEFT);
  this.saveStatus = new SaveStaus();
  saveStatus.setAutoWidth(true);
  formPanel.getButtonBar().add(saveStatus);
  formPanel.getButtonBar().add(new FillToolItem());
  this.submit = new Button("SUBMIT");
  this.submit.addSelectionListener(new SelectionListener<ButtonEvent>() {
    @Override
    public void componentSelected(ButtonEvent ce) {
      if (formPanel.isValid())
        execute();
    }
  });
  submit.setIconStyle("x-geofence-submit");
  formPanel.addButton(submit);
  this.cancel = new Button("CANCEL");
  this.cancel.addSelectionListener(new SelectionListener<ButtonEvent>() {
    @Override
    public void componentSelected(ButtonEvent ce) {
      cancel();
    }
  });
  this.cancel.setIconStyle("x-geofence-cancel");
  formPanel.addButton(cancel);
}

代码示例来源:origin: geoserver/geofence

reset.setIconStyle("x-geofence-reset");
reset.addSelectionListener(new SelectionListener<ButtonEvent>()
login.setIconStyle("x-geofence-login");
login.disable();
login.addSelectionListener(new SelectionListener<ButtonEvent>()

代码示例来源:origin: geoserver/geofence

select.setIconStyle("x-geofence-select");
select.disable();
cancel.setIconStyle("x-geofence-cancel");

相关文章