private void setTitle(final String titleText) { if (titleText == null || titleText.isEmpty()) { view.setProjectModelTitleText(); } else { view.setTitleText(titleText); } }
public void setArtifactID(final String artifactID) { view.setArtifactID(artifactID); }
@Inject public POMEditorPanel(final POMEditorPanelView view, final SyncBeanManager iocManager) { this.view = view; this.iocManager = iocManager; view.setPresenter(this); }
public void setPOM(POM model, boolean isReadOnly) { if (isReadOnly) { view.setReadOnly(); } this.model = model; view.setName(model.getName()); view.setDescription(model.getDescription()); if (model.hasParent()) { view.setParentGAV(model.getParent()); view.showParentGAV(); view.disableGroupID(""); view.disableVersion(""); } else { view.hideParentGAV(); view.enableGroupID(); view.enableVersion(); } view.setGAV(model.getGav()); view.addArtifactIdChangeHandler( new ArtifactIdChangeHandler() { @Override public void onChange(String newArtifactId) { setTitle(newArtifactId); } }); setTitle(model.getGav().getArtifactId()); }
@Override public void setValidArtifactID(final boolean isValid) { view.setValidArtifactID(isValid); }
@Override public void setValidVersion(final boolean isValid) { view.setValidVersion(isValid); }
@Override public void setValidGroupID(final boolean isValid) { view.setValidGroupID(isValid); }
@Override public void setValidName(final boolean isValid) { view.setValidName(isValid); }
@Override public void disableVersion(final String reason) { view.disableVersion(reason); }
@Override public void disableGroupID(final String reason) { view.disableGroupID(reason); }
@Override public Widget asWidget() { return view.asWidget(); }