本文整理匯總了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$
}