本文整理汇总了Java中org.jboss.errai.databinding.client.api.InitialState类的典型用法代码示例。如果您正苦于以下问题:Java InitialState类的具体用法?Java InitialState怎么用?Java InitialState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InitialState类属于org.jboss.errai.databinding.client.api包,在下文中一共展示了InitialState类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateMetaData
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the deployment is loaded.
* @param deployment
*/
protected void updateMetaData(DeploymentBean deployment) {
this.deployment.setModel(deployment, InitialState.FROM_MODEL);
deploymentLoading.getElement().addClassName("hide"); //$NON-NLS-1$
if (deployment.hasMavenInfo()) {
mavenPropsWrapper.removeClassName("hide"); //$NON-NLS-1$
} else {
mavenPropsWrapper.addClassName("hide"); //$NON-NLS-1$
}
pageContent.removeClassName("hide"); //$NON-NLS-1$
}
示例2: updateTaskMetaData
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the task is loaded.
* @param task
*/
protected void updateTaskMetaData(TaskBean task) {
this.task.setModel(task, InitialState.FROM_MODEL);
taskLoading.getElement().addClassName("hide"); //$NON-NLS-1$
pageContent.removeClassName("hide"); //$NON-NLS-1$
if (task.getTaskForm() != null) {
taskFormWrapper.setHTML(task.getTaskForm());
taskFormWrapper.setData(task.getTaskData());
} else {
taskFormWrapper.setHTML(""); //$NON-NLS-1$
taskFormWrapper.setData(new HashMap<String, String>());
}
}
示例3: updateMetaData
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the situation is loaded.
* @param situation
*/
protected void updateMetaData(SituationBean situation) {
this.situation.setModel(situation, InitialState.FROM_MODEL);
severity.setStyleName("icon"); //$NON-NLS-1$
severity.addStyleName("details-icon"); //$NON-NLS-1$
severity.addStyleName("icon-severity-" + situation.getSeverity()); //$NON-NLS-1$
loading.getElement().addClassName("hide"); //$NON-NLS-1$
pageContent.removeClassName("hide"); //$NON-NLS-1$
this.messageTabAnchor.setVisible(situation.hasMessage());
if (situation.hasMessage()) {
messageEditor.setValue(situation.getMessage().getContent());
} else {
messageEditor.setValue(""); //$NON-NLS-1$
}
resubmitButton.setEnabled(situation.isResubmitPossible());
messageEditor.setReadOnly(!situation.isResubmitPossible());
if (situation.getResubmitBy() != null) {
resubmitDetails.setText(i18n.format("situation-details.resubmit-details",
situation.getResubmitBy(), situation.getResubmitAt(), situation.getResubmitResult()));
resubmitDetails.setTitle(situation.getResubmitErrorMessage());
} else {
resubmitDetails.setTitle("");
resubmitDetails.setText("");
}
if (situation.isResubmitError()) {
resubmitDetails.getElement().addClassName("text-error"); //$NON-NLS-1$
} else {
resubmitDetails.getElement().removeClassName("text-error"); //$NON-NLS-1$
}
if (situation.isAssignedToCurrentUser() || (situation.getAssignedTo() != null && situation.isTakeoverPossible())) {
if (situation.isAssignedToCurrentUser()) {
assignButton.getElement().addClassName("hide");
} else {
assignButton.getElement().removeClassName("hide");
}
closeButton.getElement().removeClassName("hide"); //$NON-NLS-1$
ResolutionState resolutionState = ResolutionState.valueOf(situation.getResolutionState());
if (ResolutionState.UNRESOLVED == resolutionState
|| ResolutionState.WAITING == resolutionState
|| ResolutionState.REOPENED == resolutionState) {
startButton.getElement().removeClassName("hide");
} else {
startButton.getElement().addClassName("hide");
}
if (ResolutionState.IN_PROGRESS == resolutionState) {
stopButton.getElement().removeClassName("hide");
resolveButton.getElement().removeClassName("hide");
} else {
resolveButton.getElement().addClassName("hide");
stopButton.getElement().addClassName("hide");
}
if (ResolutionState.RESOLVED == resolutionState) {
reopenButton.getElement().removeClassName("hide");
} else {
reopenButton.getElement().addClassName("hide");
}
} else {
closeButton.getElement().addClassName("hide");
startButton.getElement().addClassName("hide");
reopenButton.getElement().addClassName("hide");
stopButton.getElement().addClassName("hide");
resolveButton.getElement().addClassName("hide");
assignButton.getElement().removeClassName("hide");
}
}
示例4: updateMetaData
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the reference is loaded.
* @param reference
*/
protected void updateMetaData(ReferenceBean reference) {
this.reference.setModel(reference, InitialState.FROM_MODEL);
loading.getElement().addClassName("hide"); //$NON-NLS-1$
pageContent.removeClassName("hide"); //$NON-NLS-1$
}
示例5: updateMetaData
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the service is loaded.
* @param service
*/
protected void updateMetaData(ServiceBean service) {
this.service.setModel(service, InitialState.FROM_MODEL);
loading.getElement().addClassName("hide"); //$NON-NLS-1$
pageContent.removeClassName("hide"); //$NON-NLS-1$
}
示例6: setModel
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setModel(T model) {
dataBinder.setModel(model, InitialState.FROM_MODEL);
}
示例7: setModel
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setModel(PortableConference model) {
dataBinder.setModel(model, InitialState.FROM_MODEL);
resolveTalks();
}
示例8: setModel
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setModel(PortableConference model) {
dataBinder.setModel(model, InitialState.FROM_MODEL);
}
示例9: setValue
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* @see com.google.gwt.user.client.ui.HasValue#setValue(java.lang.Object, boolean)
*/
@Override
public void setValue(DerivedArtifactsBean value, boolean fireEvents) {
this.value.setModel(value, InitialState.FROM_MODEL);
}
示例10: setValue
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* @see com.google.gwt.user.client.ui.HasValue#setValue(java.lang.Object, boolean)
*/
@Override
public void setValue(HistoryEventSummaryBean value, boolean fireEvents) {
this.value.setModel(value, InitialState.FROM_MODEL);
setIcon(value);
}
示例11: setValue
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* @see com.google.gwt.user.client.ui.HasValue#setValue(java.lang.Object, boolean)
*/
@Override
public void setValue(ExpandedArtifactSummaryBean value, boolean fireEvents) {
this.value.setModel(value, InitialState.FROM_MODEL);
this.browseButton.setHref(configService.getUiConfig().createSrampUiUrl("details", "uuid", value.getUuid())); //$NON-NLS-1$ //$NON-NLS-2$
}
示例12: update
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the history is loaded.
* @param deployment
*/
protected void update(ExpandedArtifactsBean bean) {
loading.getElement().addClassName("hide"); //$NON-NLS-1$
pageContent.removeClassName("hide"); //$NON-NLS-1$
this.deploymentContentsBean.setModel(bean, InitialState.FROM_MODEL);
}
示例13: update
import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* Called when the history is loaded.
* @param deployment
*/
protected void update(ArtifactHistoryBean bean) {
this.historyBean.setModel(bean, InitialState.FROM_MODEL);
historyLoading.getElement().addClassName("hide"); //$NON-NLS-1$
pageContent.removeClassName("hide"); //$NON-NLS-1$
}