Exemplo n.º 1
0
  /**
   * 安装皮肤
   *
   * @param skinService
   */
  @Override
  public void installSkin(SkinService skinService) {
    super.installSkin(skinService);
    this.contentPane.installSkin(skinService);
    setIconImage(skinService.getIconByKey("window/titleWIcon").getImage());

    // 更新每个tab中panel的皮肤
    for (int i = 0; i < tabbedPane.getTabCount(); i++) {
      BasicPanel entityPanel = (BasicPanel) tabbedPane.getComponentAt(i);
      entityPanel.installSkin(skinService);
    }
  }
Exemplo n.º 2
0
 /**
  * 安装皮肤
  *
  * @param skinService
  */
 @Override
 public void installSkin(SkinService skinService) {
   super.installSkin(skinService);
   this.contentPane.installSkin(skinService);
   setIconImage(skinService.getIconByKey("window/titleWIcon").getImage());
 }