public void updateFromController() { scBtnInstall.setVisible(moduleController.getStatus() == ExtensionModuleController.Status.NOT_INSTALLED); scBtnUninstall.setVisible(moduleController.getStatus() != ExtensionModuleController.Status.NOT_INSTALLED); scBtnUpdate.setVisible(moduleController.getStatus() == ExtensionModuleController.Status.UPDATE_REQUIRED); lblName.setText(moduleController.getName()); lblDescription.setText(moduleController.getDescription()); Skin skin = interfaceService.getSkin(); switch (moduleController.getStatus()) { case NOT_INSTALLED: frameTable.background(skin.getDrawable("custom/em-item-frame")); lblStatus.setText(localeService.getI18nBundle().get("emRepoStatusNotInstalled")); lblStatus.setColor(skin.getColor("text-grey")); break; case INSTALLED: frameTable.background(skin.getDrawable("custom/em-item-frame-installed")); lblStatus.setText(localeService.getI18nBundle().get("emRepoStatusInstalled")); lblStatus.setColor(skin.getColor("text-green")); break; case UPDATE_REQUIRED: frameTable.background(skin.getDrawable("custom/em-item-frame-outofdate")); lblStatus.setText(localeService.getI18nBundle().get("emRepoStatusUpdateRequired")); lblStatus.setColor(skin.getColor("text-yellow")); break; } }