javafx.scene.control.Hyperlink.setGraphic()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(137)

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

Hyperlink.setGraphic介绍

暂无

代码示例

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void setVerlical() {
 FontIcon icon = new FontIcon("mdi-dots-vertical:20");
 icon.getStyleClass().add("grey-ikonli");
 ellipsisButton.setGraphic(icon);
 getChildren().add(ellipsisButton);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void setHorizontal() {
 FontIcon icon = new FontIcon("mdi-dots-horizontal:20");
 icon.getStyleClass().add("grey-ikonli");
 ellipsisButton.setGraphic(icon);
 getChildren().add(ellipsisButton);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
  * @{inheritedDoc}
  */
 @Override
 public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
  super.buildFrom(controller, configuration);
  FontIcon fontIcon = new FontIcon("mdi-chevron-down:18");
  action.setGraphic(fontIcon);
 }
}

代码示例来源:origin: net.sf.sf3jswing/kernel-core

try {
  Image image = images[i] = new Image(linksImages[i].openStream());
  hpl.setGraphic(new ImageView(image));
} catch (IOException ex) {
  Logger.getLogger(JXAenvUtils.LOGGER_NAME).log(Level.SEVERE, null, ex);

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

protected void buildCloseButton() {
 boolean showAsDialog = Boolean.valueOf(configuration.getPropertyValue(XMLConstants.DIALOG));
 if(showAsDialog) {
  Hyperlink link = new Hyperlink();
  link.getStyleClass().add("transparent-focus");
  FontIcon icon = new FontIcon("mdi-close:32");
  link.setGraphic(icon);
  icon.getStyleClass().add("wizard-close-icon");
  layout.getChildren().addAll(NodeHelper.horizontalSpacer(), link);
  if (controller instanceof WizardViewController) {
   link.setOnAction(e -> ((WizardViewController) controller).hide());
  }
 }
 else {
  layout.getChildren().addAll(NodeHelper.horizontalSpacer());
 }
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public CheckboxInputView() {
 super();
 StackedFontIcon fontIcon = new StackedFontIcon();
 unselectedIcon = new FontIcon("fa-toggle-off:26");
 selectedIcon = new FontIcon("fa-toggle-on:26");
 fontIcon.getChildren().addAll(unselectedIcon, selectedIcon);
 theCheckbox.setGraphic(fontIcon);
 unselectedIcon.visibleProperty().bind(Bindings.not(selected));
 selectedIcon.visibleProperty().bind(selected);
}

相关文章